Skip to main content
Public proof of conceptFix available

CVE-2018-6341

A public proof of concept exists; no exploitation attested.

  • Published2018-12-31
  • Fixed in16.4.2 · 16.3.3 · 16.2.1 · 16.1.2 · 16.0.1
  • WeaknessCWE-79

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2018-12-3122:29CVE publishedNVD
  2. 2026-10-2319:23First public proof of conceptPoC-in-GitHub

Versions per branch

NVD · OSV
Facebook react
BranchAffectedFixed in
16.4≥ 16.4.0, < 16.4.216.4.2
16.3≥ 16.3.0, < 16.3.316.3.3
16.2≥ 16.2.0, < 16.2.116.2.1
16.1≥ 16.1.0, < 16.1.216.1.2
16.0≥ 16.0.0, < 16.0.116.0.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As facebook, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Facebook react-dom
    Affected
    • = 16.4.2no fix stated
    • = 16.4.0no fix statedcustom
    • = 16.3.3no fix stated
    • = 16.3.0no fix statedcustom
    • = 16.2.1no fix stated
    • = 16.2.0no fix statedcustom
    • = 16.1.2no fix stated
    • = 16.1.0no fix statedcustom

    3 more version lines in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2018-12-31

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • reactTuxCare:npmfrom 16.4.1-tuxcare.0 · fixed in 16.4.1-tuxcare.1and 5 other packages

Full record on NVD

Fix

  1. Update Facebook react to 16.4.2 · 16.3.3 · 16.2.1 · 16.1.2 · 16.0.1

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2025-05-06
  • CISA-ADPCVSS 3.16.12025-05-06
  • NVDCVSS 3.06.1read 2026-10-23
  • NVDCVSS 2.04.3read 2026-10-23
  • CNAweakness (CWE)CWE-79known since 2026-10-23
  • NVDweakness (CWE)CWE-79read 2026-10-23
  • FIRST EPSSEPSS score3.4 %2026-11-08
  • PoC-in-GitHubproof of concept1known since 2026-11-01
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryMODERATE2020-06-16

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
2018-12-31
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-mvjj-gqq2-p4hw

Frequently asked questions

What is CVE-2018-6341?

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.

Is CVE-2018-6341 actively exploited?

Active exploitation of CVE-2018-6341 has not been confirmed. Its EPSS score was 3.4% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-6341?

CVE-2018-6341 has a CVSS v3 base score of 6.1 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Running react? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record