CVE-2018-6341

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.

Severity
MEDIUM
CVSS v3
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N · source adp
Exploit chance (EPSS)
3.426%
chance of exploitation in the next 30 days
higher than 89.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impactpartial
Scored2025-05-06

Timeline

  1. 2018-12-31Published by the CNA22:00 UTC
  2. 2019-01-04GitHub advisory published (GHSA-mvjj-gqq2-p4hw)4 days after publication
  3. 2025-05-06CISA SSVC decision recorded2318 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-mvjj-gqq2-p4hw, affected packages:

PackageVulnerable versionsFixed in
npm react-domfrom 16.0.0 before 16.0.116.0.1
npm react-domfrom 16.1.0 before 16.1.216.1.2
npm react-domfrom 16.2.0 before 16.2.116.2.1
npm react-domfrom 16.3.0 before 16.3.316.3.3
npm react-domfrom 16.4.0 before 16.4.216.4.2

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
facebook reactfrom 16.0.0 before 16.0.1fixed in 16.0.1from 16.1.0 before 16.1.2fixed in 16.1.2from 16.2.0 before 16.2.1fixed in 16.2.1from 16.3.0 before 16.3.3fixed in 16.3.3from 16.4.0 before 16.4.2fixed in 16.4.216.0.116.1.216.2.116.3.316.4.2

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources