{"answers":{"affected":"2 open source packages ship an affected version, including mdast-util-to-hast. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-66400 in the wild and no public exploit code.","fix":"Upgrade mdast-util-to-hast to 13.2.1 or later.","what":"CVE-2025-66400 is a medium-severity cross-site scripting vulnerability in syntax-tree mdast-util-to-hast, published on 1 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-66400 and fix it if it is affected.\n\nWhat it is: CVE-2025-66400 is a medium-severity cross-site scripting vulnerability in syntax-tree mdast-util-to-hast, published on 1 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-66400 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mdast-util-to-hast (npm): affected from 13.0.0; fixed in 13.2.1\n- mdast-util-to-hast (npm): affected from 13.0.0; fixed in 13.2.1\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-2025-66400/ (Markdown: https://insights.sbomify.com/CVE-2025-66400/index.md)","id":"CVE-2025-66400","markdown":"https://insights.sbomify.com/CVE-2025-66400/index.md","name":"CVE-2025-66400","record":{"aliases":["GHSA-4fh9-h7wg-q85m","MINI-3q6c-x3c8-36q7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript markdown library","requires_auth":"none","summary":"Attackers can inject unprefixed class names into rendered markdown, potentially disguising malicious elements as legitimate page content.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mdast-util-to-hast","vendor":"unifiedjs"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"mdast-util-to-hast is an mdast utility to transform to hast. From 13.0.0 to before 13.2.1, multiple (unprefixed) classnames could be added in markdown source by using character references. This could make rendered user supplied markdown code elements appear like the rest of the page. This vulnerability is fixed in 13.2.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"mdast-util-to-hast unsanitized class attribute","id":"CVE-2025-66400","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":2,"n_references":3,"next":{"headline":"MCP Watch has a Critical Command Injection in cloneRepo allows Remote Code Execution (RCE) via malicious URL","id":"CVE-2025-66401"},"packages":[{"ecosystem":"npm","fixed":["13.2.1"],"introduced":["13.0.0"],"last_affected":[],"package":"mdast-util-to-hast","purl":null,"source":"GHSA-4fh9-h7wg-q85m"},{"ecosystem":"npm","fixed":["13.2.1"],"introduced":["13.0.0"],"last_affected":[],"package":"mdast-util-to-hast","purl":"pkg:npm/mdast-util-to-hast","source":"GHSA-4fh9-h7wg-q85m"}],"prev":{"headline":"SNMP Command Injection leads to RCE in Cacti","id":"CVE-2025-66399"},"products":["mdast-util-to-hast"],"published":"2025-12-01","related":[],"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)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-12-02","vendors":["syntax-tree"]},"summary":"Attackers can inject unprefixed class names into rendered markdown, potentially disguising malicious elements as legitimate page content.","url":"https://insights.sbomify.com/CVE-2025-66400/"}