Junos Space
CVE-2025-59987
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious script payload for device search field
-
ExploitLure authenticated Junos Space admin to view it
-
ExecutionScript executes in victim's session
-
ImpactRun commands with target's 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 requires that a victim who is a logged-in Junos Space user - ideally an administrator - view attacker-controlled content rendered in the device search field, at which point the injected script executes in that user's authenticated browser session (UI:A is the explicit limiting factor). The impact is bounded to actions the victim is authorized to perform in Junos Space; there is no direct confidentiality/integrity/availability impact to the underlying host (VC/VI/VA:N). Affected: all Junos Space versions before 24.1R4; upgrading to 24.1R4 or later removes the condition. The requirement for a privileged victim to interact meaningfully limits mass/opportunistic exploitation. |
| Impact | This is a moderate, not critical, priority. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:A) with only subsequent-system low impacts (SC:L/SI:L, VC/VI/VA all N) yields a base score of 5.1 (medium), which is consistent with a cross-site scripting flaw whose impact lands in a victim's browser session rather than the server itself. Exploitation signals are weak and mutually consistent: EPSS is 0.22% (12th percentile), the CVE is NOT on CISA KEV, and no public exploit is identified - so there is no public exploit identified at time of analysis. The one aggravating factor is the described consequence: script execution in the context of a logged-in user who may be an administrator of a network-management platform, which could translate XSS into privileged actions against managed Juniper devices. The key caveat is PR:N combined with UI:A: the vector models an unauthenticated attacker whose payload must be rendered to a victim who takes an action (classic reflected/stored XSS delivery). The description's phrasing ('inject script tags in the arbitrary device search field') does not make clear whether injecting the payload itself requires an authenticated session in the Junos Space console - verify the delivery path with Juniper advisory JSA103140, as this materially affects whether PR:N is justified. |
| Exploit ScenarioDerived | An attacker crafts a malicious script payload targeting the Junos Space device search field and lures an authenticated Junos Space operator or administrator into viewing it (e.g., via a crafted link or a planted search entry). When the victim's browser renders the field, the injected script runs in their session and can issue commands with that user's permissions, including administrative actions. No public exploit code is known, and successful exploitation requires the victim to take an action (UI:A). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Cross-site scripting in Juniper Networks Junos Space (all versions before 24.1R4) lets a remote attacker inject script tags into the arbitrary device search field which render when another Junos Space user visits the affected content, executing in that victim's authenticated session and allowing actions with the victim's permissions - including an administrator's. The CVSS 4.0 vector shows a network-reachable, no-privilege attack (PR:N) gated on victim interaction (UI:A), which is the limiting factor; the independent assessment scores it CVSS 3.1 5.1 (S:C, C:L/I:L) and characterizes it as a moderate, not critical, priority. No public exploit code has been identified at time of analysis, EPSS is low at 0.22% (12th percentile), and upgrading to 24.1R4 removes the condition.
RemediationAI
Vendor-released patch: upgrade Junos Space to 24.1R4 or later, which is the fix identified in Juniper advisory JSA103140 (https://supportportal.juniper.net/JSA103140); all pre-24.1R4 builds, including 24.1R1/R2/R3 and the legacy release train, remain vulnerable. Where immediate upgrade is not possible, compensating controls should target the interaction prerequisite and the UI exposure: restrict access to the Junos Space web interface to a trusted management network or jump host (side effect: remote and administrative access paths must be re-routed, and any internet- or partner-facing exposure is lost), limit the number of users who can populate or view the device search field and keep browser sessions short with re-authentication (side effect: reduced administrative convenience and possible workflow disruption), and harden the client side by enforcing a Content-Security-Policy that blocks inline/third-party script execution in the Junos Space domain (side effect: CSP can break legitimate UI functionality and must be validated in a test environment first). Note that no public exploit code has been identified at time of analysis, so rush-to-patch pressure is driven by the vendor fix rather than observed exploitation, but because the payload targets privileged sessions the patch should still be scheduled promptly.
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 CWE-79 improper neutralization of input during web page generation flaw in Juniper's Junos Space network management platform, where the arbitrary device search field fails to properly encode or sanitize user-supplied input before it is emitted into a generated web page. Because the payload is rendered in the context of the Junos Space web UI, the injected script runs in the browser of whichever user views it, inheriting that user's session and authorization - hence the scope change (S:C) in the assessed CVSS:3.1 vector and the sub-system-only impact in the CVE's CVSS:4.0 vector (VC:N/VI:N/VA:N, SC:L/SI:L/SA:N). UI:A in the vector explicitly encodes the requirement that a privileged victim interact with attacker-controlled content, and PR:N indicates no prior authentication is needed to deliver the payload. CPE data confirms the entire junos_space product line is affected (cpe:2.3:a:juniper:junos_space:* including 24.1:r1, 24.1:r2 and 24.1:r3), with 24.1R4 being the first fixed release.
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
Network-delivered XSS requiring victim interaction (UI:R); PR:N mirrors the vendor assignment, S:C because script runs in another user's session, with low 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 the arbitrary device search field 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