Junos Space
CVE-2025-59997
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain access to Junos Space UI
-
DeliveryInject script tags into CLI Configlet
-
ExploitAdministrator opens Configlets page
-
ExecutionPayload executes in admin session
-
ImpactRun 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 | Exploitation requires the attacker to inject script tags into the CLI Configlets pages of Junos Space, and a second user - ideally an administrator - must subsequently open that Configlets page for the payload to fire (UI:A, active user interaction). The feature-specific prerequisite is use of the CLI Configlets functionality; impact scales with the privileges of the victim who views the page, with administrator sessions yielding command execution at administrator level. Limiting factors: the requirement for a victim to visit the page, the likely need for some level of access to author/store a configlet (despite the vector's PR:N), and the confinement of impact to the affected Junos Space web session. Affected: all Junos Space versions before 24.1R4. |
| Impact | This is a stored cross-site scripting (CWE-79) flaw in the Junos Space CLI Configlets feature, rated MEDIUM at CVSS 5.1 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A). Multiple low-risk signals converge: EPSS is only 0.22% (12th percentile), it is NOT on CISA KEV, and no public exploit code was identified in the provided data, so exploitation status is 'no public exploit identified at time of analysis.' The CVSS 4.0 vector reports PR:N (unauthenticated), but this CONFLICTS with the description, which describes injecting script tags into the CLI Configlets administrative pages - a feature that in practice requires an authenticated session to populate; verify the true privilege requirement with Juniper (JSA103140). The vector also requires active user interaction (UI:A): a second user, ideally an administrator, must visit the poisoned page, and impact is confined to the victim's browser session (VC:N/VI:N/VA:N but subsequent-system SC:L/SI:L). Net assessment: a genuine but lower-priority stored-XSS privilege-escalation issue - real because it can yield admin-equivalent command execution, but gated by user interaction and likely some level of access, and not currently showing signs of active or widespread exploitation. |
| Exploit ScenarioDerived | An attacker with access to the Junos Space CLI Configlets functionality embeds malicious <script> tags in a configlet. When a legitimate administrator later opens the affected Configlets page, the script executes in the admin's authenticated browser session and silently issues commands with that administrator's privileges. No public proof-of-concept was identified in the provided data, and success depends on the targeted user actually viewing the poisoned 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 CLI Configlets lets an attacker inject script tags that execute when another user opens the affected Configlets page, enabling command execution with the victim's permissions, including an administrator's. All Junos Space versions before 24.1R4 are affected, and the issue is rated MEDIUM at CVSS 5.1 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A); the independent assessment notes that a victim must view the crafted page and that authoring or storing a configlet is a practical prerequisite despite the vector's PR:N. EPSS is 0.22% (12th percentile) and no public exploit identified at time of analysis.
RemediationAI
Upgrade Junos Space to 24.1R4 or later, the vendor-released fixed version; Juniper's advisory JSA103140 at https://supportportal.juniper.net/JSA103140 should be consulted for the authoritative update path. If immediate upgrade is not possible, restrict access to the Junos Space management interface and the CLI Configlets feature to trusted administrators on trusted networks, because the attack requires a victim to view the crafted Configlets page and reducing exposure limits opportunity for exploitation; the trade-off is that this can disrupt legitimate administrative workflows and does not fix the underlying encoding flaw. Also inventory and review existing CLI Configlets for unexpected script tags or HTML and remove suspicious content, though this is a detection-and-cleanup measure that may miss obfuscated payloads. Additional compensating controls include enforcing least privilege so fewer users can author configlets and monitoring web/server logs for anomalous configlet edits or access to Configlets pages, with the trade-off of increasing operational overhead. No vendor-issued workaround beyond upgrading was identified in the provided data, and no public exploit identified at time of analysis.
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
Junos Space is Juniper's network management platform, and its CLI Configlets feature allows administrators to create reusable CLI command templates that are rendered in a web interface. CVE-2025-59997 is a CWE-79 improper neutralization of input during web page generation (cross-site scripting) flaw in those CLI Configlets pages: the application fails to safely encode or sanitize attacker-controlled content before it is included in generated HTML, so injected script tags are stored and later executed in the browser context of any user who views the page. The provided CPE entries identify Junos Space with a wildcard version before 24.1R4 and specifically 24.1R1, 24.1R2, and 24.1R3 as vulnerable; the independent assessment adds that impact is confined to the Junos Space web session, requires a victim to open the crafted Configlets page (UI:A), and scales with that victim's privileges, with administrator sessions yielding command execution at administrator level. The CVSS 4.0 vector reports PR:N, but the independent assessment notes a likely need for some level of access to author or store a configlet, so authentication requirements are not fully settled from the provided data.
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 a configlet realistically needs an authenticated session (PR:L); a victim must view the page (UI:R); payload executing in another user's session crosses a trust boundary (S:C) with limited C/I impact, no availability effect.
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 CLI Configlets pages that, when visited by another user, enable 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