Junos Space
CVE-2025-59985
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Junos Space console
-
DeliveryInject script into Purging Policy field
-
ExploitAdministrator views affected page
-
ExecutionScript runs in admin session
-
ImpactExecute management commands as admin
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 | Exploitation requires the attacker to write a malicious script payload into a specific field on the Junos Space 'Purging Policy' page, and then requires a second user - ideally an administrator - to view that page for the stored script to execute (UI:A). This is a stored/persistent XSS limited to the Junos Space web management interface on any version before 24.1R4 (24.1R1, R2, and R3 are affected). Although the vendor vector states PR:N, reaching the Purging Policy field in practice presumes access to the management console, so realistic exploitation assumes at least a low-privileged authenticated session plus a privileged victim who visits the page. Impact is confined to the victim's browser session context (execution of commands with the victim's permissions), not direct unauthenticated server compromise. |
| Impact | This is a moderate, lower-priority issue rather than an urgent one. The vendor-assigned CVSS 4.0 score is 5.1 (Medium), and crucially the impact is limited to confidentiality and integrity of a SUBSEQUENT system (SC:L/SI:L) with no availability or vulnerable-system impact - consistent with a stored cross-site scripting flaw that runs in a victim's browser session rather than directly compromising the server. EPSS reinforces low real-world risk: 0.22% probability at only the 12th percentile. The CVE is NOT on CISA KEV and no public exploit is identified, so there is no evidence of active exploitation. One signal to verify: the vendor vector lists PR:N (no privileges), but the attack requires injecting script into a field on the Junos Space 'Purging Policy' administrative page, which in practice implies the attacker already has some authenticated access to the management UI - PR:N likely overstates ease of access, so the realistic prerequisite is a low-privileged authenticated user, not a fully anonymous attacker. The flaw also requires UI:A (a victim, ideally an administrator, must view the malicious page), further limiting opportunistic mass exploitation. Net: a real but conditional privilege-escalation-style XSS in a management plane, best handled on a normal patch cycle unless the Junos Space instance is exposed to untrusted users. |
| Exploit ScenarioDerived | A low-privileged user with access to the Junos Space web console injects a malicious <script> payload into a field on the Purging Policy page. When an administrator later opens that page, the script executes in the administrator's authenticated session and issues management commands with the administrator's permissions. No public proof-of-concept is known, and success depends on luring or waiting for a higher-privileged user to view the affected page (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 in Juniper Networks Junos Space (all versions before 24.1R4, including 24.1R1, R2 and R3) lets an attacker inject script content into a field on the Purging Policy page of the web management interface, which then executes in the browser of any user - including an administrator - who subsequently views that page, running commands with the victim's permissions. Exploitation is not confirmed as active (no CISA KEV listing) and no public exploit code has been identified at time of analysis; EPSS is low at 0.22% (12th percentile), consistent with this being a moderate, lower-priority issue requiring a privileged victim to open the poisoned page. The vendor has released a fix in 24.1R4.
RemediationAI
The primary fix is to upgrade Junos Space to 24.1R4, the first release in which the Purging Policy page sanitizes input and the stored-XSS condition is removed; see Juniper advisory JSA103140 at https://supportportal.juniper.net/JSA103140 for the official upgrade guidance and any release-specific notes. Because the payload persists until it is viewed and can execute with administrative privileges, defenders should also review and clear any suspicious or unrecognized entries in Purging Policy fields on existing installations, since an upgrade protects new input but may not retroactively clean data already stored. As compensating controls until patching is possible, restrict access to the Junos Space web management interface to a dedicated management network or jump host and limit it to trusted operators (trade-off: reduces legitimate remote administration flexibility), and require re-authentication or session termination for administrators after handling policy pages. Because the exploit path depends on a privileged user visiting a poisoned page, minimizing the number of users with rights to edit Purging Policy content and monitoring for unexpected changes to that page will reduce exposure, though these are mitigations rather than fixes and the only complete resolution is applying 24.1R4 or later.
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
The root cause is CWE-79, improper neutralization of input during web page generation, realized here as a persistent (stored) XSS in the Junos Space network management platform's web UI. Rather than reflecting attacker input in a response, the payload is written into a field associated with the Purging Policy page and later served back to other operators without adequate encoding, so the malicious script executes in the security context of the victim's session. The CPE data confirms the affected tree as cpe:2.3:a:juniper:junos_space across all unspecified versions plus the discrete 24.1 R1, R2 and R3 releases, meaning the code base up to and including 24.1R3 fails to sanitize this input. Impact is confined to a victim's browser session - script can perform actions as that user, up to and including full administrative operations - rather than providing direct server-side or unauthenticated remote code execution. The vendor's CVSS 4.0 vector (5.1) records UI:A with subsequent low confidentiality/integrity impact (SC:L/SI:L) and no availability impact, which matches the browser-scoped stored-XSS model described in the independent assessment.
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
Stored XSS reached via an admin console field implies low-privileged access (PR:L) and a victim viewing the page (UI:R); payload runs in another user's context so S:C with limited C/I and no availability impact.
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 a field on the Purging Policy page 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