Skip to main content

Junos Space CVE-2025-59997

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-10-09 sirt@juniper.net
5.1
CVSS 4.0 · Vendor: juniper
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain access to Junos Space UI
  2. Delivery
    Inject script tags into CLI Configlet
  3. Exploit
    Administrator opens Configlets page
  4. Execution
    Payload executes in admin session
  5. Impact
    Run 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).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (juniper) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (juniper).

CVSS VectorVendor: juniper

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
enterprise network-management platform, common in Juniper shops but not everywhere
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:juniper:junos_space:*:*:*:*:*:*:*:*
cpe:2.3:a:juniper:junos_space:24.1:r1:*:*:*:*:*:*
cpe:2.3:a:juniper:junos_space:24.1:r2:*:*:*:*:*:*
cpe:2.3:a:juniper:junos_space:24.1:r3:*:*:*:*:*:*
CVE-2017-10622 CRITICAL
9.8 Oct 13

An authentication bypass vulnerability in Juniper Networks Junos Space Network Management Platform may allow a remote un

CVE-2014-0457 CRITICAL
10.0 Apr 16

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

CVE-2015-3209 HIGH
7.5 Jun 15

Heap-based buffer overflow in the PCNET controller in QEMU allows remote attackers to execute arbitrary code by sending

CVE-2014-0429 CRITICAL
10.0 Apr 16

Unspecified vulnerability in Oracle Java SE 5.0u61, 6u71, 7u51, and 8; JRockit R27.8.1 and R28.3.1; and Java SE Embedded

CVE-2014-2421 CRITICAL
10.0 Apr 16

Unspecified vulnerability in Oracle Java SE 5.0u61, 6u71, 7u51, and 8; JavaFX 2.2.51; and Java SE Embedded 7u51 allows r

CVE-2014-0456 CRITICAL
10.0 Apr 16

Unspecified vulnerability in Oracle Java SE 6u71, 7u51, and 8, and Java SE Embedded 7u51, allows remote attackers to aff

CVE-2014-3412 CRITICAL
10.0 May 20

Unspecified vulnerability in Juniper Junos Space before 13.3R1.8, when the firewall in disabled, allows remote attackers

CVE-2016-4926 CRITICAL
9.8 Mar 20

Insufficient authentication vulnerability in Junos Space before 15.2R2 allows remote network based users with access to

CVE-2016-1265 CRITICAL
9.8 Oct 13

A remote unauthenticated network based attacker with access to Junos Space may execute arbitrary code on Junos Space or

CVE-2025-59978 CRITICAL
9.4 Oct 09

Stored cross-site scripting in Juniper Networks Junos Space (all versions before 24.1R4) allows an authenticated attacke

CVE-2016-4929 HIGH
8.8 Mar 20

Command injection vulnerability in Junos Space before 15.2R2 allows attackers to execute arbitrary code as a root user.

CVE-2017-2306 HIGH
8.8 May 30

On Juniper Networks Junos Space versions prior to 16.1R1, due to an insufficient authorization check, readonly users on

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy