{"cve":"CVE-2018-6341","nvd":{"published":"2018-12-31T22:29:00.387","modified":"2026-06-17T02:01:41.990","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html","https://twitter.com/reactjs/status/1024745321987887104","https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html","https://twitter.com/reactjs/status/1024745321987887104"],"products":["facebook:react"],"source":"nvd","synced_at":"2026-10-19T20:54:36.112582389+00:00"},"epss":{"cve":"CVE-2018-6341","score":0.03426,"percentile":0.88922,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mvjj-gqq2-p4hw","url":"https://osv.dev/vulnerability/GHSA-mvjj-gqq2-p4hw","summary":"Cross-Site Scripting in react-dom","modified":"2023-11-08T04:00:21.209483Z","packages":[{"ecosystem":"npm","name":"react-dom","purl":"pkg:npm/react-dom","ranges":[">=16.0.0 <16.0.1"],"fixed":["16.0.1"]},{"ecosystem":"npm","name":"react-dom","purl":"pkg:npm/react-dom","ranges":[">=16.1.0 <16.1.2"],"fixed":["16.1.2"]},{"ecosystem":"npm","name":"react-dom","purl":"pkg:npm/react-dom","ranges":[">=16.2.0 <16.2.1"],"fixed":["16.2.1"]},{"ecosystem":"npm","name":"react-dom","purl":"pkg:npm/react-dom","ranges":[">=16.3.0 <16.3.3"],"fixed":["16.3.3"]},{"ecosystem":"npm","name":"react-dom","purl":"pkg:npm/react-dom","ranges":[">=16.4.0 <16.4.2"],"fixed":["16.4.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}