CVE-2018-6341 json
Cross-Site Scripting in react-dom
published 7y ago modified 4mo ago also GHSA-mvjj-gqq2-p4hw , EUVD-2019-0190
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.4%
- EPSS 3.4% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm react-dom 16.0.1, 16.1.2, 16.2.1, 16.3.3, 16.4.2
- facebook react 16.0.1, 16.1.2, 16.2.1, 16.3.3, 16.4.2
Is CVE-2018-6341 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
3.43% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | 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 |
16.0.1 16.1.2 16.2.1 16.3.3 16.4.2 |
Affected products
- Facebook react-dom
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
reactjs.org
/blog/2018/08/01/react-v-16-4-2.html
web, vendor-advisory
-
twitter.com
/reactjs/status/1024745321987887104
web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-6341
advisory
-
github.com
/advisories/GHSA-mvjj-gqq2-p4hw
advisory
-
snyk.io
/vuln/npm:react-dom:20180802
web
-
npmjs.com
/advisories/1421
web
Sources
- CVE List CVE-2018-6341
- GitHub Advisory GHSA-mvjj-gqq2-p4hw
- NVD CVE-2018-6341
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.