CVE-2021-31355

Junos OS: Stored Cross-Site Scripting (XSS) vulnerability in captive portal

MEDIUM
5.4
CVSS Score
Published: October 19, 2021 at 06:16 PM UTC
Updated: June 17, 2026 at 03:51 AM UTC
1 product affected across 1 vendorJunos

Using Junos OS by Juniper Networks?

Get instant alerts when new vulnerabilities affect Junos OS - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.4
Exploit prediction
EPSS 0.8%

Description

A persistent cross-site scripting (XSS) vulnerability in the captive portal graphical user interface of Juniper Networks Junos OS may allow a remote authenticated user to inject web script or HTML and steal sensitive data and credentials from a web administration session, possibly tricking a follow-on administrative user to perform administrative actions on the device. This issue affects Juniper Networks Junos OS: All versions, including the following supported releases: 12.3X48 versions prior to 12.3X48-D105; 15.1X49 versions prior to 15.1X49-D220; 18.3 versions prior to 18.3R3-S5; 18.4 versions prior to 18.4R3-S9; 19.1 versions prior to 19.1R3-S7; 19.2 versions prior to 19.2R3-S3; 19.3 versions prior to 19.3R3-S4; 19.4 versions prior to 19.4R3-S6; 20.1 versions prior to 20.1R3; 20.2 versions prior to 20.2R1-S1, 20.2R2; 20.3 versions prior to 20.3R2; 20.4 versions prior to 20.4R2; 21.1 versions prior to 21.1R2.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

12.3X48 ≤ v < 12.3X48-D10515.1X49 ≤ v < 15.1X49-D22018.3 ≤ v < 18.3R3-S518.4 ≤ v < 18.4R3-S919.1 ≤ v < 19.1R3-S719.2 ≤ v < 19.2R3-S319.3 ≤ v < 19.3R3-S419.4 ≤ v < 19.4R3-S620.1 ≤ v < 20.1R320.2 ≤ v < 20.2R1-S1, 20.2R220.3 ≤ v < 20.3R220.4 ≤ v < 20.4R221.1 ≤ v < 21.1R212.3X4812.3x4812.3x48 d1012.3x48 d10012.3x48 d1512.3x48 d2012.3x48 d2512.3x48 d3012.3x48 d3512.3x48 d4012.3x48 d4512.3x48 d5012.3x48 d5112.3x48 d5512.3x48 d6012.3x48 d6512.3x48 d6612.3x48 d7012.3x48 d7512.3x48 d8012.3x48 d8512.3x48 d9012.3x48 d9515.1X4915.1x4915.1x49 d1015.1x49 d10015.1x49 d11015.1x49 d12015.1x49 d13015.1x49 d13115.1x49 d14015.1x49 d1515.1x49 d15015.1x49 d16015.1x49 d17015.1x49 d18015.1x49 d19015.1x49 d2015.1x49 d20015.1x49 d21015.1x49 d2515.1x49 d3015.1x49 d3515.1x49 d4015.1x49 d4515.1x49 d5015.1x49 d5515.1x49 d6015.1x49 d6515.1x49 d7015.1x49 d7515.1x49 d8015.1x49 d9018.318.3 r118.3 r1-s118.3 r1-s218.3 r1-s318.3 r1-s418.3 r1-s518.3 r1-s618.3 r218.3 r2-s118.3 r2-s218.3 r2-s318.3 r318.3 r3-s118.3 r3-s218.418.4 r118.4 r1-s118.4 r1-s218.4 r1-s318.4 r1-s418.4 r1-s518.4 r1-s618.4 r1-s718.4 r218.4 r2-s118.4 r2-s218.4 r2-s318.4 r2-s418.4 r318.4 r3-s118.4 r3-s218.4 r3-s319.119.1 r119.1 r1-s119.1 r1-s219.1 r1-s319.1 r1-s419.1 r1-s519.1 r219.1 r2-s119.1 r319.1 r3-s119.219.2 r119.2 r1-s119.2 r1-s219.2 r1-s319.2 r1-s419.2 r219.2 r2-s119.319.3 r119.3 r1-s119.3 r219.3 r2-s119.3 r2-s219.3 r2-s319.419.4 r119.4 r1-s119.4 r1-s219.4 r219.4 r2-s120.120.1 r120.1 r1-s120.1 r1-s220.1 r1-s320.1 r1-s420.1 r220.1 r2-s120.1 r2-s220.220.2 r120.2 r220.320.3 r120.3 r1-s120.420.4 r120.4 r1-s121.121.1 r121.1 r1-s1
Affected range stops below 12.3X48-D105, so it looks safe — our inference, not a vendor statement
Affected range stops below 15.1X49-D220, so it looks safe — our inference, not a vendor statement
Affected range stops below 18.3R3-S5, so it looks safe — our inference, not a vendor statement
Affected range stops below 18.4R3-S9, so it looks safe — our inference, not a vendor statement
Affected range stops below 19.1R3-S7, so it looks safe — our inference, not a vendor statement
Affected range stops below 19.2R3-S3, so it looks safe — our inference, not a vendor statement
Affected range stops below 19.3R3-S4, so it looks safe — our inference, not a vendor statement
Affected range stops below 19.4R3-S6, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.1R3, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.2R1-S1, 20.2R2, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.3R2, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.4R2, so it looks safe — our inference, not a vendor statement
Affected range stops below 21.1R2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (1)

x_refsource_CONFIRMPatchVendor Advisory
https://kb.juniper.net/JSA11220

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card