CVE-2021-31373 in Juniper Junos and 27 more products
A persistent Cross-Site Scripting (XSS) vulnerability in Juniper Networks Junos OS on SRX Series, J-Web interface may allow a remote authenticated user to inject persistent and malicious scripts. An attacker can exploit this vulnerability to steal sensitive data and credentials from a web administration session, or hijack another user's active session to perform administrative actions. This issue affects: Juniper Networks Junos OS on SRX Series: 18.2 versions prior to 18.2R3-S8; 18.3 versions prior to 18.3R3-S5; 18.4 versions prior to 18.4R3-S8; 19.1 versions prior to 19.1R3-S5; 19.2 versions prior to 19.2R1-S7, 19.2R3-S3; 19.3 versions prior to 19.3R2-S6, 19.3R3-S3; 19.4 versions prior to 19.4R1-S4, 19.4R2-S4, 19.4R3-S3; 20.1 versions prior to 20.1R2-S2, 20.1R3; 20.2 versions prior to 20.2R3-S1; 20.3 versions prior to 20.3R2-S1, 20.3R3.
Affects 28 products from 1 vendor. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, low privileges required, requires user interaction, can impact systems beyond the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Juniper | Junos | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX1500 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX240H2 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX300 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX320 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX340 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX345 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX380 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX4000 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX4100 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX4200 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX4600 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX5000 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX5400 | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX550 Hm | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
| Juniper | SRX550M | 18.2 18.3 18.4 19.1 19.2 19.3+4 more19.4 20.1 20.2 20.3 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Juniper SRX100, Juniper SRX110, Juniper SRX1400, Juniper SRX210, Juniper SRX220, Juniper SRX240, Juniper SRX3400, Juniper SRX3600, Juniper SRX550, Juniper SRX5600, Juniper SRX5800, Juniper SRX650
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2021-31373 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-266952-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Published | 2021-10-19 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.