CVE-2018-6341
MEDIUM 6.1CVSS 3.1Cross-Site Scripting in react-dom
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
- 31 Dec 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve-assign@fb.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-mvjj-gqq2-p4hw
- Sources
- NVDJSONOSV GHSA-mvjj-gqq2-p4hwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | reactcpe:2.3:a:facebook:react:*:*:*:*:*:*:*:* |
>= 16.0.0, < 16.0.1 | 16.0.1 | |
| NVD | reactcpe:2.3:a:facebook:react:*:*:*:*:*:*:*:* |
>= 16.1.0, < 16.1.2 | 16.1.2 | |
| NVD | reactcpe:2.3:a:facebook:react:*:*:*:*:*:*:*:* |
>= 16.2.0, < 16.2.1 | 16.2.1 | |
| NVD | reactcpe:2.3:a:facebook:react:*:*:*:*:*:*:*:* |
>= 16.3.0, < 16.3.3 | 16.3.3 | |
| NVD | reactcpe:2.3:a:facebook:react:*:*:*:*:*:*:*:* |
>= 16.4.0, < 16.4.2 | 16.4.2 | |
| OSV | npm | react-dom | >= 16.0.0, < 16.0.1 | 16.0.1 |
| OSV | npm | react-dom | >= 16.1.0, < 16.1.2 | 16.1.2 |
| OSV | npm | react-dom | >= 16.2.0, < 16.2.1 | 16.2.1 |
| OSV | npm | react-dom | >= 16.3.0, < 16.3.3 | 16.3.3 |
| OSV | npm | react-dom | >= 16.4.0, < 16.4.2 | 16.4.2 |
References
- https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html · Vendor Advisory, WEB
- https://twitter.com/reactjs/status/1024745321987887104 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-6341 · ADVISORY
- https://github.com/advisories/GHSA-mvjj-gqq2-p4hw · ADVISORY
- https://snyk.io/vuln/npm:react-dom:20180802 · WEB
- https://www.npmjs.com/advisories/1421 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 31 Dec 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Jan 2019)