Juniper Junos Space
CVE-2025-59986
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess Junos Space Model Devices feature
-
DeliveryInject script tags into model device input field
-
ExploitAdministrator opens poisoned entry
-
ExecutionPayload executes in admin session
-
ImpactRun management commands as administrator
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the ability to create or edit a Model Devices entry in the Junos Space web UI and to store script content in one of its input fields; the vendor vector marks this PR:N (unauthenticated), but the feature is normally an authenticated management operation, so verify reachability without credentials. Exploitation further requires that another user - ideally an administrator - subsequently open/view the poisoned entry (UI:A), making this a targeted rather than automatable attack. Impact scales with the viewing user's privileges; it affects all Junos Space versions before 24.1R4 and is remediated in 24.1R4. |
| Impact | This is a stored cross-site scripting (CWE-79) flaw in Juniper Junos Space with a vendor-assigned CVSS 4.0 base score of 5.1 (Medium). The signals converge on a modest-but-real priority rather than an emergency. Exploitation status: no public exploit identified at time of analysis, no CISA KEV listing, and EPSS is very low at 0.22% (12th percentile), indicating no observed or predicted widespread exploitation. The CVSS 4.0 vector shows network attack vector (AV:N), low complexity (AC:L), and only subsequent-system confidentiality/integrity impact at Low (SC:L/SI:L) with no impact to the Junos Space system itself (VC/VI/VA:N) - consistent with XSS executing in a victim's browser rather than compromising the server directly. Two signals are in tension and should be verified: the vector asserts PR:N (unauthenticated), yet the description requires an attacker to 'inject script tags in the input fields in Model Devices,' which in Junos Space is an authenticated management operation - verify with Juniper whether Model Device creation is reachable without authentication. The vector also requires UI:A (a victim must view the poisoned page), which materially limits automated/mass exploitation. The payoff, however, is significant: if a targeted victim is an administrator, the injected script executes commands with that administrator's permissions, effectively escalating a lower-privileged injector to admin-equivalent actions within the management plane. |
| Exploit ScenarioDerived | An attacker with access to the Junos Space Model Devices feature stores a malicious <script> payload in an input field of a model device entry. When an administrator later opens that entry in the Junos Space web console, the script executes in the admin's authenticated session and issues management actions with administrator permissions. No public proof-of-concept is known, and success depends on a privileged user actually viewing the poisoned record (UI:A). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Stored cross-site scripting (XSS) in Juniper Junos Space before 24.1R4 allows an attacker who can inject script tags into Model Devices input fields to execute arbitrary commands with the privileges of any user who views the poisoned entry, including an administrator. The vendor assigned CVSS 4.0 base score 5.1 (Medium) with a vector that lists PR:N, but the independent assessment notes the feature is normally authenticated (PR:L) and requires user interaction (UI:A), making exploitation targeted. No public exploit code has been identified, and EPSS is 0.22% (12th percentile).
RemediationAI
Upgrade to Juniper Junos Space 24.1R4, which contains the vendor's fix per advisory JSA103140 (https://supportportal.juniper.net/JSA103140). Until upgrading is feasible, restrict access to the Model Devices feature to trusted administrators only, as this reduces the attack surface by preventing untrusted users from injecting script content; however, this may disrupt legitimate provisioning workflows. Enforce strict input validation and output encoding on Model Devices fields if custom modifications are possible, but do not rely on this as a permanent fix. Deploy a web application firewall with XSS detection rules to block malicious payloads, though such controls can be bypassed and add latency. Monitor Model Devices entries for suspicious script content and review logs for unauthorized changes. Note that no workaround fully eliminates the risk without the patched release.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a stored (persistent) cross-site scripting flaw, class CWE-79, in the web management interface of Juniper Junos Space. The Model Devices feature fails to neutralize user-supplied input, allowing script tags to be stored and later rendered in another user's browser session without proper escaping. The vendor's CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N) indicates the attack is network-accessible with low complexity, no attack requirements, and requires active user interaction (UI:A); the scope is changed (S:C) with low confidentiality and integrity impact on the subsequent system (SC:L/SI:L), meaning the attacker can act with the victim's privileges but cannot directly read or modify data in the vulnerable component. The independent assessment rates it as CVSS 3.1 with PR:L, reflecting that creating or editing a Model Devices entry is normally an authenticated management operation, and emphasizes that exploitation requires a second user-ideally an administrator-to view the poisoned entry. Affected CPEs cover all versions of juniper:junos_space before 24.1R4, including specific 24.1 R1, R2, and R3 releases.
Know when Junos Space gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Storing the payload in Model Devices requires authenticated application access (PR:L); victim must view the entry (UI:R); script runs in the victim browser context (S:C) with limited C/I impact and no availability loss.
Primary rating from Vendor (juniper).
CVSS VectorVendor: juniper
DescriptionCVE.org
An Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Juniper Networks Junos Space allows an attacker to inject script tags in the input fields in Model Devices that, when visited by another user, enables the attacker to execute commands with the target's permissions, including an administrator.This issue affects all versions of Junos Space before 24.1R4.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
More in Junos Space
View allAn authentication bypass vulnerability in Juniper Networks Junos Space Network Management Platform may allow a remote un
Unspecified vulnerability in Oracle Java SE 5.0u61, SE 6u71, 7u51, and 8; JRockit R27.8.1 and R28.3.1; and Java SE Embed
Heap-based buffer overflow in the PCNET controller in QEMU allows remote attackers to execute arbitrary code by sending
Unspecified vulnerability in Oracle Java SE 5.0u61, 6u71, 7u51, and 8; JRockit R27.8.1 and R28.3.1; and Java SE Embedded
Unspecified vulnerability in Oracle Java SE 5.0u61, 6u71, 7u51, and 8; JavaFX 2.2.51; and Java SE Embedded 7u51 allows r
Unspecified vulnerability in Oracle Java SE 6u71, 7u51, and 8, and Java SE Embedded 7u51, allows remote attackers to aff
Unspecified vulnerability in Juniper Junos Space before 13.3R1.8, when the firewall in disabled, allows remote attackers
Insufficient authentication vulnerability in Junos Space before 15.2R2 allows remote network based users with access to
A remote unauthenticated network based attacker with access to Junos Space may execute arbitrary code on Junos Space or
Stored cross-site scripting in Juniper Networks Junos Space (all versions before 24.1R4) allows an authenticated attacke
Command injection vulnerability in Junos Space before 15.2R2 allows attackers to execute arbitrary code as a root user.
On Juniper Networks Junos Space versions prior to 16.1R1, due to an insufficient authorization check, readonly users on
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB