Juniper Junos Space
CVE-2025-59981
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess Junos Space template editor
-
DeliveryInject script into Device Template Definition
-
ExploitAdministrator opens affected page
-
ExecutionScript executes in admin session
-
ImpactRun commands with administrator 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 the attacker to inject script tags into the Device Template Definition page of Junos Space, which presupposes the ability to create or edit device template definitions in the management console. A second, separate user - ideally an administrator - must then visit that page for the stored payload to execute (UI:A). Limiting factors: the attack is passive-interaction-dependent (no effect until a victim views the page), is confined to users of the Junos Space web UI with template access, and only yields the privileges of whichever user triggers it; it affects all versions before 24.1R4 and is remediated by upgrading to 24.1R4. |
| Impact | This is a stored (persistent) cross-site scripting flaw (CWE-79) in Junos Space's Device Template Definition page, vendor-scored CVSS 4.0 5.1 (Medium). Real-world risk is moderate and context-dependent, not an emergency. Supporting signals: EPSS is 0.27% (18th percentile) - low predicted exploitation probability; there is no CISA KEV listing and no public exploit identified at time of analysis, so exploitation is neither confirmed nor demonstrated. The 4.0 vector (VC:N/VI:N/VA:N, SC:L/SI:L) correctly reflects that the vulnerable system itself is not directly compromised; impact lands on a subsequent system - the victim's authenticated session, potentially an administrator's. CONFLICT TO VERIFY: the vendor vector sets PR:N (unauthenticated), yet a stored XSS that requires injecting script into the Device Template Definition page realistically requires some authenticated access to create/edit template definitions - PR:L is more defensible; verify the exact access model with Juniper. Also note UI:A (passive user interaction) means a victim must view the poisoned page, which bounds automatability. Net: a credible privilege-escalation/session-hijack vector within Junos Space, but gated by required user interaction and (likely) prior platform access, keeping it below high-priority absent evidence of active exploitation. |
| Exploit ScenarioDerived | A lower-privileged Junos Space user with access to the Device Template Definition feature injects malicious script tags into a template definition. When an administrator later views that page, the script executes in the admin's authenticated browser context and issues commands with administrator permissions, effectively escalating the attacker's privileges. No public exploit code is identified at time of analysis. |
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 Junos Space (all versions before 24.1R4) allows authenticated attackers to inject script tags into the Device Template Definition page, which then execute in the context of any user-including an administrator-who views the compromised template. Exploitation requires the attacker to have privileges to create or edit device templates and a separate victim to visit the page, granting the attacker the victim's permissions. No public exploit code exists at time of analysis, and EPSS is low at 0.27% (18th percentile), though the vendor has released a patch in version 24.1R4.
RemediationAI
Upgrade to Juniper Junos Space 24.1R4, which contains the vendor-released patch. Refer to the vendor advisory JSA103140 (https://supportportal.juniper.net/JSA103140) for detailed instructions. As temporary mitigations if upgrade is not immediately possible, restrict access to the Device Template Definition page to only fully trusted administrators who require it, and audit existing device templates for any unexpected or suspicious script content. Note that restricting template editing privileges may impede legitimate management workflows, and auditing requires manual effort. No other workarounds are provided by the vendor.
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 vulnerability is a stored cross-site scripting (XSS) flaw (CWE-79) in the web management interface of Juniper Junos Space, a network management platform. The Device Template Definition page fails to properly neutralize user-supplied input before rendering it, allowing an attacker with template editing privileges to persist malicious script tags that execute when another user views the page. The CVSS 4.0 vector from the vendor indicates network attack, low complexity, no privileges required, and user interaction active, with subsequent system confidentiality and integrity impact low; however, our independent assessment using CVSS 3.1 rates it as requiring low privileges (PR:L) and user interaction (UI:R), with scope change (S:C) and low confidentiality/integrity impact. The discrepancy likely stems from different assumptions about whether template editing is considered an unauthenticated action or requires existing credentials; the independent assessment assumes the latter. The EPSS score of 0.27% (18th percentile) suggests a low likelihood of exploitation in the wild.
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 needs template-edit access (PR:L) and a victim viewing the page (UI:R); payload runs in another user's session 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 the Device Template Definition 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