Medium severity · published Dec 31, 2018
CVE-2018-6341
React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time
6.1
CVSS
3.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)3.4% · higher than 89% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RE
React · Facebook
16.0.0 before 16.0.1; 16.1.0 before 16.1.2; 16.2.0 before 16.2.1; 16.3.0 before 16.3.3; 16.4.0 before 16.4.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-6341
CVE.org
https://www.cve.org/CVERecord?id=CVE-2018-6341
Vendor Advisory
https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html
Vendor Advisory
https://twitter.com/reactjs/status/1024745321987887104
More from React
10.0
CVE-2025-55182
Meta React Server Components Remote Code Execution Vulnerability
7.5
CVE-2026-23864
Multiple denial of service vulnerabilities exist in React Server Components, affecting the following packages: react-server-dom-parcel, react-server-dom-turbopack,…
7.5
CVE-2025-67779
It was found that the fix addressing CVE-2025-55184 in React Server Components was incomplete and does not prevent a denial of service attack in a specific case
7.5
CVE-2025-55184
A pre-authentication denial of service vulnerability exists in React Server Components versions 19.0.0, 19.0.1 19.1.0, 19.1.1, 19.1.2, 19.2.0 and 19.2.1, including the following…
5.3
CVE-2025-55183
An information leak vulnerability exists in specific configurations of React Server Components versions 19.0.0, 19.0.1 19.1.0, 19.1.1, 19.1.2, 19.2.0 and 19.2.1, including the…
