Skip to content
OpenAdvisories
Medium · 6.1 Public exploit CVE-2018-6341 EUVD-2019-0190GHSA-mvjj-gqq2-p4hw

Cross-Site Scripting in react-dom

Published Dec 31, 2018 · Updated May 6, 2025 · Assigned by facebook

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.

Affected products

VendorProductAffectedFixed
Facebook react-dom 16.4.2, 16.4.0 – < unspecified, 16.3.3, 16.3.0 – < unspecified, 16.2.1, 16.2.0 – < unspecified, 16.1.2, 16.1.0 – < unspecified, 16.0.1, 16.0.0 – < unspecified unspecified

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm react-dom >= 16.0.0, < 16.0.1 16.0.1 GHSA-mvjj-gqq2-p4hw
npm react-dom >= 16.1.0, < 16.1.2 16.1.2 GHSA-mvjj-gqq2-p4hw
npm react-dom >= 16.2.0, < 16.2.1 16.2.1 GHSA-mvjj-gqq2-p4hw
npm react-dom >= 16.3.0, < 16.3.3 16.3.3 GHSA-mvjj-gqq2-p4hw
npm react-dom >= 16.4.0, < 16.4.2 16.4.2 GHSA-mvjj-gqq2-p4hw

Advisories 1

References