{"answers":{"affected":"10 open source packages ship an affected version, including react-dom. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-6341 in the wild and no public exploit code.","fix":"Upgrade react-dom to a fixed version for your release line: 16.0.1, 16.1.2, 16.2.1 or 16.3.3.","what":"CVE-2018-6341 is a medium-severity cross-site scripting vulnerability in Facebook react-dom, published on 31 Dec 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2018-6341 and fix it if it is affected.\n\nWhat it is: CVE-2018-6341 is a medium-severity cross-site scripting vulnerability in Facebook react-dom, published on 31 Dec 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2018-6341 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- react-dom (npm): affected from 16.0.0; fixed in 16.0.1\n- react-dom (npm): affected from 16.0.0; fixed in 16.0.1\n- react-dom (npm): affected from 16.1.0; fixed in 16.1.2\n- react-dom (npm): affected from 16.1.0; fixed in 16.1.2\n- react-dom (npm): affected from 16.2.0; fixed in 16.2.1\n- react-dom (npm): affected from 16.2.0; fixed in 16.2.1\n- react-dom (npm): affected from 16.3.0; fixed in 16.3.3\n- react-dom (npm): affected from 16.3.0; fixed in 16.3.3\n- react-dom (npm): affected from 16.4.0; fixed in 16.4.2\n- react-dom (npm): affected from 16.4.0; fixed in 16.4.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-6341/ (Markdown: https://insights.sbomify.com/CVE-2018-6341/index.md)","id":"CVE-2018-6341","markdown":"https://insights.sbomify.com/CVE-2018-6341/index.md","name":"CVE-2018-6341","record":{"aliases":["CLSA-2026-1775521831","CLSA-2026-1792161467","CLSA-2026-1792161489","CLSA-2026-1792267914","CLSA-2026-1792287259","GHSA-mvjj-gqq2-p4hw"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"React DOM library","requires_auth":"none","summary":"Attackers can execute arbitrary scripts in user browsers via unescaped attribute names in server-rendered React applications.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"facebook","cpe":[{"product":"react","vendor":"facebook"}],"cvss":{"score":6.1,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2023-03-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-03-20T23:50:29Z","kind":"github_poc","ref":"https://github.com/diwangs/react16-ssr","stars":0,"title":"CVE-2018-6341"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Cross-Site Scripting in react-dom","id":"CVE-2018-6341","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2018"},"n_packages":10,"n_references":2,"next":{"headline":"react-dev-utils on Windows vulnerable to Remote Code Execution","id":"CVE-2018-6342"},"packages":[{"ecosystem":"npm","fixed":["16.0.1"],"introduced":["16.0.0"],"last_affected":[],"package":"react-dom","purl":null,"source":"GHSA-mvjj-gqq2-p4hw"},{"ecosystem":"npm","fixed":["16.0.1"],"introduced":["16.0.0"],"last_affected":[],"package":"react-dom","purl":"pkg:npm/react-dom","source":"GHSA-mvjj-gqq2-p4hw"},{"ecosystem":"npm","fixed":["16.1.2"],"introduced":["16.1.0"],"last_affected":[],"package":"react-dom","purl":null,"source":"GHSA-mvjj-gqq2-p4hw"},{"ecosystem":"npm","fixed":["16.1.2"],"introduced":["16.1.0"],"last_affected":[],"package":"react-dom","purl":"pkg:npm/react-dom","source":"GHSA-mvjj-gqq2-p4hw"},{"ecosystem":"npm","fixed":["16.2.1"],"introduced":["16.2.0"],"last_affected":[],"package":"react-dom","purl":null,"source":"GHSA-mvjj-gqq2-p4hw"},{"ecosystem":"npm","fixed":["16.2.1"],"introduced":["16.2.0"],"last_affected":[],"package":"react-dom","purl":"pkg:npm/react-dom","source":"GHSA-mvjj-gqq2-p4hw"},{"ecosystem":"npm","fixed":["16.3.3"],"introduced":["16.3.0"],"last_affected":[],"package":"react-dom","purl":null,"source":"GHSA-mvjj-gqq2-p4hw"},{"ecosystem":"npm","fixed":["16.3.3"],"introduced":["16.3.0"],"last_affected":[],"package":"react-dom","purl":"pkg:npm/react-dom","source":"GHSA-mvjj-gqq2-p4hw"},{"ecosystem":"npm","fixed":["16.4.2"],"introduced":["16.4.0"],"last_affected":[],"package":"react-dom","purl":null,"source":"GHSA-mvjj-gqq2-p4hw"},{"ecosystem":"npm","fixed":["16.4.2"],"introduced":["16.4.0"],"last_affected":[],"package":"react-dom","purl":"pkg:npm/react-dom","source":"GHSA-mvjj-gqq2-p4hw"}],"prev":{"headline":"Information disclosure in HHVM","id":"CVE-2018-6340"},"products":["react-dom"],"published":"2018-12-31","related":[{"cvss_score":10,"headline":"Meta React Server Components Remote Code Execution","id":"CVE-2025-55182","kev_date_added":"2025-12-05","published":"2025-12-03"},{"cvss_score":7.5,"headline":"React Server Components have multiple Denial of Service Vulnerabilities","id":"CVE-2026-23864","kev_date_added":null,"published":"2026-01-26"},{"cvss_score":7.5,"headline":"Denial of Service Vulnerability in React Server Components","id":"CVE-2025-55184","kev_date_added":null,"published":"2025-12-11"},{"cvss_score":7.5,"headline":"Denial of Service Vulnerability in React Server Components","id":"CVE-2025-67779","kev_date_added":null,"published":"2025-12-11"},{"cvss_score":5.3,"headline":"Source Code Exposure Vulnerability in React Server Components","id":"CVE-2025-55183","kev_date_added":null,"published":"2025-12-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-06","vendors":["Facebook"]},"summary":"Attackers can execute arbitrary scripts in user browsers via unescaped attribute names in server-rendered React applications.","url":"https://insights.sbomify.com/CVE-2018-6341/"}