Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-6341
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:15 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-6341
Complete source record
{
"id": "a92aec5e609a9d40f058219b92483a1154f0caa3449457f4e45c9d1acf976eda",
"url": "https://osv.dev/vulnerability/CVE-2018-6341",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-6341",
"summary": "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.",
"evidence": "osv:CVE-2018-6341",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-6341",
"aliases": [
"CVE-2018-6341",
"GHSA-mvjj-gqq2-p4hw"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/react/react",
"type": "GIT",
"events": [
{
"introduced": "8765d608935a81ba5019f6cde6dce3367d392f0c"
},
{
"fixed": "54adb2674afe16ec603e0c54bf46ccf1afa42308"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:facebook:react:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "16.4.0"
},
{
"fixed": "16.4.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v16.4.1",
"v16.4.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6341.json"
}
}
],
"modified": "2026-10-24T10:30:37.522053751Z",
"provider": "osv",
"references": [
"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html",
"https://twitter.com/reactjs/status/1024745321987887104"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:facebook:react:*:*:*:*:*:*:*:*"
],
"vendor_product": "facebook:react",
"extracted_events": [
{
"range": [
{
"introduced": "16.0.0"
},
{
"fixed": "16.0.1"
},
{
"introduced": "16.1.0"
},
{
"fixed": "16.1.2"
},
{
"introduced": "16.2.0"
},
{
"fixed": "16.2.1"
},
{
"introduced": "16.3.0"
},
{
"fixed": "16.3.3"
}
],
"source": "CPE_RANGE"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-6341",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 434239,
"published_at": "2018-12-31T22:29:00.387+00:00"
}