{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2018-6341","id":"CVE-2018-6341","title":"Cross-Site Scripting in react-dom","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.","descriptionLong":"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.","published":"2018-12-31T22:00:00.000Z","updated":"2026-10-24T10:30:37.522053751Z","reserved":"2018-01-26T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"facebook","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["Facebook react-dom"],"affectedProducts":[{"vendor":"Facebook","product":"react-dom","defaultStatus":null,"versions":[{"status":"affected","version":"16.4.2"},{"lessThan":"unspecified","status":"affected","version":"16.4.0","versionType":"custom"},{"status":"affected","version":"16.3.3"},{"lessThan":"unspecified","status":"affected","version":"16.3.0","versionType":"custom"},{"status":"affected","version":"16.2.1"},{"lessThan":"unspecified","status":"affected","version":"16.2.0","versionType":"custom"},{"status":"affected","version":"16.1.2"},{"lessThan":"unspecified","status":"affected","version":"16.1.0","versionType":"custom"},{"status":"affected","version":"16.0.1"},{"lessThan":"unspecified","status":"affected","version":"16.0.0","versionType":"custom"},{"lessThan":"16.0.0","status":"unaffected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"react-dom","purl":"pkg:npm/react-dom","ranges":[">=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"],"fixed":["16.0.1","16.1.2","16.2.1","16.3.3","16.4.2"],"advisory":"GHSA-mvjj-gqq2-p4hw"}],"cwes":["CWE-79"],"aliases":["GHSA-mvjj-gqq2-p4hw"],"references":[{"url":"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://twitter.com/reactjs/status/1024745321987887104","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-6341","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mvjj-gqq2-p4hw","tags":["advisory"]},{"url":"https://snyk.io/vuln/npm:react-dom:20180802","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1421","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.03426,"epssPercentile":0.89167,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2018-6341","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-6341","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2018-6341","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mvjj-gqq2-p4hw","ok":true,"note":"GHSA-mvjj-gqq2-p4hw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2018-6341","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["react"],"critical":[],"attention":null}