SecurityContext

CVE-2021-31355: Juniper Networks Junos OS - Stored XSS

  • Cve: CVE-2021-31355
  • Name: Juniper Networks Junos OS - Stored XSS
  • 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.
  • Impact: Attackers can steal sensitive data and credentials by injecting malicious scripts, potentially leading to session hijacking or administrative actions.
  • Remediation: Update to the latest supported versions, specifically versions 12.3X48-D105, 15.1X49-D220, 18.3R3-S5, 18.4R3-S9, 19.1R3-S7, 19.2R3-S3, 19.3R3-S4, 19.4R3-S6, 20.1R3, 20.2R1-S1, 20.2R2, 20.3R2, 20.4R2, 21.1R2 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec, information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker needs to be authenticated on the device
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00807
  • Epss percentile: 0.57767
  • Assignee: [email protected]
  • Published at: 2021-10-19T19:15:08Z
  • Age in days: 1862
  • Modified at: 2026-06-17T03:51:36Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-31355
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://kb.juniper.net/JSA11220nvdPatch, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
juniper:junos= 15.1x49 d210, = 15.1x49 d200, = 15.1x49 d190, = 15.1x49 d180, = 15.1x49 d170, = 15.1x49 d160, = 15.1x49 d150, = 15.1x49 d140, = 15.1x49 d131, = 15.1x49 d130, = 15.1x49 d120, = 15.1x49 d110, = 12.3x48 d100, = 15.1x49 d100, = 12.3x48 d95, = 12.3x48 d90, = 15.1x49 d90, = 12.3x48 d85, = 12.3x48 d80, = 15.1x49 d80, = 12.3x48 d75, = 15.1x49 d75, = 12.3x48 d70, = 15.1x49 d70, = 12.3x48 d66, = 12.3x48 d65, = 15.1x49 d65, = 12.3x48 d60, = 15.1x49 d60, = 12.3x48 d55, = 15.1x49 d55, = 12.3x48 d51, = 12.3x48 d50, = 15.1x49 d50, = 15.1x49, = 15.1x49 d10, = 15.1x49 d15, = 15.1x49 d20, = 15.1x49 d25, = 15.1x49 d30, = 15.1x49 d35, = 15.1x49 d40, = 15.1x49 d45, = 12.3x48, = 12.3x48 d10, = 12.3x48 d15, = 12.3x48 d20, = 12.3x48 d25, = 12.3x48 d30, = 12.3x48 d35, = 12.3x48 d40, = 12.3x48 d45, = 21.1 r1, = 21.1 r1-s1, = 20.4 r1, = 20.4 r1-s1, = 20.3 r1, = 20.3 r1-s1, = 20.2 r1, = 20.2 r2, = 20.1 r1, = 20.1 r1-s1, = 20.1 r1-s2, = 20.1 r1-s3, = 20.1 r1-s4, = 20.1 r2, = 20.1 r2-s1, = 20.1 r2-s2, = 19.4 r1, = 19.4 r1-s1, = 19.4 r1-s2, = 19.4 r2, = 19.4 r2-s1, = 19.3, = 19.3 r1, = 19.3 r1-s1, = 19.3 r2, = 19.3 r2-s1, = 19.3 r2-s2, = 19.3 r2-s3, = 19.2, = 19.2 r1, = 19.2 r1-s1, = 19.2 r1-s2, = 19.2 r1-s3, = 19.2 r1-s4, = 19.2 r2, = 19.2 r2-s1, = 19.1, = 19.1 r1, = 19.1 r1-s1, = 19.1 r1-s2, = 19.1 r1-s3, = 19.1 r1-s4, = 19.1 r1-s5, = 19.1 r2, = 19.1 r2-s1, = 19.1 r3, = 19.1 r3-s1, = 18.4, = 18.4 r1, = 18.4 r1-s1, = 18.4 r1-s2, = 18.4 r1-s3, = 18.4 r1-s4, = 18.4 r1-s5, = 18.4 r1-s6, = 18.4 r1-s7, = 18.4 r2, = 18.4 r2-s1, = 18.4 r2-s2, = 18.4 r2-s3, = 18.4 r2-s4, = 18.4 r3, = 18.4 r3-s1, = 18.4 r3-s2, = 18.4 r3-s3, = 18.3, = 18.3 r1, = 18.3 r1-s1, = 18.3 r1-s2, = 18.3 r1-s3, = 18.3 r1-s4, = 18.3 r1-s5, = 18.3 r1-s6, = 18.3 r2, = 18.3 r2-s1, = 18.3 r2-s2, = 18.3 r2-s3, = 18.3 r3, = 18.3 r3-s1, = 18.3 r3-s2nonvd/v1/products/juniper/junos

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 23086
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports