CVE-2018-6341
Description
React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time. That lack of escaping could lead to a cross-site scripting vulnerability. This issue affected minor releases 16.0.x, 16.1.x, 16.2.x, 16.3.x, and 16.4.x. It was fixed in 16.0.1, 16.1.2, 16.2.1, 16.3.3, and 16.4.2.
Severity
MEDIUM
CVSS v3
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N · source adp
Exploit chance (EPSS)
3.426%
chance of exploitation in the next 30 days
higher than 89.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-05-06 |
Timeline
- 2018-12-31Published by the CNA22:00 UTC
- 2019-01-04GitHub advisory published (GHSA-mvjj-gqq2-p4hw)4 days after publication
- 2025-05-06CISA SSVC decision recorded2318 days after publication
Exploit and advisory records
GitHub advisory GHSA-mvjj-gqq2-p4hw, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm react-dom | from 16.0.0 before 16.0.1 | 16.0.1 |
| npm react-dom | from 16.1.0 before 16.1.2 | 16.1.2 |
| npm react-dom | from 16.2.0 before 16.2.1 | 16.2.1 |
| npm react-dom | from 16.3.0 before 16.3.3 | 16.3.3 |
| npm react-dom | from 16.4.0 before 16.4.2 | 16.4.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| facebook react | from 16.0.0 before 16.0.1fixed in 16.0.1from 16.1.0 before 16.1.2fixed in 16.1.2from 16.2.0 before 16.2.1fixed in 16.2.1from 16.3.0 before 16.3.3fixed in 16.3.3from 16.4.0 before 16.4.2fixed in 16.4.2 | 16.0.116.1.216.2.116.3.316.4.2 |
References
- https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html
- https://twitter.com/reactjs/status/1024745321987887104
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-6341'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-6341'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-6341'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-6341'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).