CVE-2018-6341

published 31 Dec 2018 · updated 6 May 2025

React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time

6.1MediumCVSS 6.1EPSS 3%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. Fixed in unspecified.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Facebook=16.0.1, =16.1.2, =16.2.1, =16.3.3, =16.4.2, >=16.0.0 <unspecified, >=16.1.0 <unspecified, >=16.2.0 <unspecified, >=16.3.0 <unspecified, >=16.4.0 <unspecifiedunspecified

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2018-6341 severity on Zeptric[![CVE-2018-6341](https://zeptric.io/badge/cve/CVE-2018-6341.svg)](https://zeptric.io/cve/CVE-2018-6341)