CVE-2018-6341: facebook react Cross-site Scripting
Vulnerability summary
CVE-2018-6341 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in facebook react. EPSS estimates a 3.43% chance of exploitation in the next 30 days, higher than 88.7% of scored vulnerabilities.
Timeline
- 31-12-2018PublishedVulnerability first disclosed.
- 06-05-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 3 sources · 3 versions- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · NpmEcosystem advisory · calculated6.1MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
3.43%
Chance of exploitation in the next 30 days
Percentile
89%
Versus all other CVEs
30-day change
0.00 pp
From 3.43% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Facebook2 products
Npm1 product
- react-dom≥ 16.0.0, < 16.0.1 | ≥ 16.1.0, < 16.1.2 | ≥ 16.2.0, < 16.2.1 | ≥ 16.3.0, < 16.3.3 | ≥ 16.4.0, < 16.4.2
2 vendors · 3 products