Juniper Junos Space
CVE-2025-59995
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain access to Junos Space UI
-
DeliveryInject script tags into Quick Template
-
ExploitStore malicious template payload
-
ExecutionAdministrator opens poisoned template
-
ImpactScript runs with admin permissions
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 specifically targets the Quick Template page of Junos Space: an attacker must be able to inject/store script tags into a Quick Template, and a second user (per UI:A, ideally an administrator) must then visit that page for the payload to fire in their session. Limiting factors: success depends entirely on a privileged victim opening the attacker-controlled template (no victim view = no impact); impact is bounded to the victim's web-UI session and privileges rather than the underlying host; and realistically the attacker needs prior access to the Junos Space management interface to plant the template, despite the input vector's PR:N. Affected: all Junos Space versions before 24.1R4 (fixed in 24.1R4). |
| Impact | This is a stored/reflected cross-site scripting flaw (CWE-79) in the Quick Template page of Juniper Junos Space, carrying a moderate CVSS 4.0 base score of 5.1. All exploitation signals point to LOW real-world urgency rather than an active priority: EPSS is only 0.22% (12th percentile), the CVE is NOT on CISA KEV, and no public proof-of-concept is identified in the provided data. The exploitation status is therefore 'no public exploit identified at time of analysis.' The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A) lists PR:N, meaning the vendor scored it as requiring no privileges, but this conflicts with the description, which implies the attacker must first reach and write to the Quick Template page of an authenticated management application - verify authentication prerequisites with Juniper, as an unauthenticated attacker realistically cannot store a payload in a template. The vector requires UI:A (a second user, ideally an administrator, must visit the poisoned page), which meaningfully limits automatability and makes this targeted rather than opportunistic. Impact is confined to the victim's browser session (SC:L/SI:L in 4.0, i.e. a scope change to a subsequent system) with no direct impact on the vulnerable host itself (VC:N/VI:N/VA:N); the 'execute commands with the target's permissions' phrasing refers to actions in the web UI context, not native code execution. Net: a genuine but low-to-moderate risk best treated as routine patching, elevated modestly because the victim can be an administrator. |
| Exploit ScenarioDerived | An attacker with access to the Junos Space UI stores malicious script tags in a Quick Template, which lie dormant until another operator opens that template. When an administrator subsequently views the poisoned Quick Template page, the injected JavaScript runs in their authenticated session and performs actions with the administrator's permissions. No public exploit code is identified, and successful exploitation depends on an administrator or privileged user actually viewing the crafted template (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 the Quick Template page of Juniper Junos Space (all versions before 24.1R4) lets an attacker plant script tags that execute in the browser session of any other user who later opens the template, allowing command execution with that victim's privileges, including an administrator's. Exploitation is a two-step affair: the payload must first be stored in a Quick Template, and a second user (per the UI:A metric) must visit the page for it to fire, so impact is bounded to the victim's web-UI session rather than the underlying host. No public exploit code or active exploitation has been identified at time of analysis, and EPSS is low at 0.22% (12th percentile), consistent with a moderate CVSS 4.0 base score of 5.1.
RemediationAI
Apply the vendor fix by upgrading Junos Space to 24.1R4 or later, as documented in Juniper advisory JSA103140 (https://supportportal.juniper.net/JSA103140); no intermediate workaround is provided that fully removes the flaw, so patching is the primary action. Where immediate upgrade is not possible, reduce exposure by restricting network access to the Junos Space management interface to trusted administrator networks, since the attack requires a victim to load the attacker-controlled Quick Template page, and by auditing and clearing untrusted or unexpected Quick Templates. As general hardening against stored XSS in the UI, ensure browser-side content security controls and session protections are enabled and force re-authentication of administrative sessions after suspected exposure; these compensating controls lower the likelihood of a successful visit but do not eliminate the underlying injection, and restricting management access may hinder legitimate remote administration.
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 flaw is CWE-79 (Improper Neutralization of Input During Web Page Generation, i.e. cross-site scripting) in the Quick Template feature of Juniper Junos Space's management web interface. User-supplied content is rendered into the Quick Template page without adequate output encoding or sanitization, so attacker-controlled markup - script tags in particular - is stored and re-rendered to subsequent visitors. Because the injected script executes in the origin and session context of Junos Space, it can issue authenticated actions on behalf of the victim, which is why the CVSS 4.0 vector assigns Low Confidentiality and Integrity impact to the subsequent system (SC:L/SI:L) while the vulnerable system itself shows no direct CIA impact. The CPE data confirms all Junos Space builds are in scope, with explicit entries for the 24.1 R1, R2, and R3 releases in addition to the wildcard 'before 24.1R4' range. Note that the supplied CVSS 4.0 vector lists PR:N, whereas our independent assessment models the attacker as requiring prior access to the management interface (PR:L); authentication requirements should therefore be treated as not definitively confirmed from the available 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 template payload requires authenticated UI access (PR:L) and a victim must view the page (UI:R); XSS executing in the victim's browser is a scope change (S:C) with limited confidentiality/integrity 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 Quick Template 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