{"id":"CVE-2025-66400","published":"2025-12-01T22:17:42Z","modified":"2025-12-02T15:34:24Z","title":"mdast-util-to-hast unsanitized class attribute","vendor":"syntax-tree","product":"mdast-util-to-hast","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00676,"percentile":0.47334,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"}],"references":[{"url":"https://github.com/syntax-tree/mdast-util-to-hast/security/advisories/GHSA-4fh9-h7wg-q85m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/syntax-tree/mdast-util-to-hast/commit/6fc783ae6abdeb798fd5a68e7f3f21411dde7403","tags":["x_refsource_MISC"]},{"url":"https://github.com/syntax-tree/mdast-util-to-hast/commit/ab3a79570a1afbfa7efef5d4a0cd9b5caafbc5d7","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":9.47},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"syntax-tree","affectedVersions":[{"vendor":"syntax-tree","product":"mdast-util-to-hast","versions":[">= 13.0.0, < 13.2.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-12-02T15:34:16.267018Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"mdast-util-to-hast","vulnerableRanges":[">=13.0.0, <13.2.1"],"patched":["13.2.1"],"from":["GHSA-4fh9-h7wg-q85m"],"provenance":"source"}],"summary":{"text":"The mdast-util-to-hast package (vendor syntax-tree), an mdast-to-hast transformation utility, contains an unsanitized class attribute flaw in versions 13.0.0 through before 13.2.1, where character references in markdown source can inject multiple unprefixed class names into the output. An attacker who can supply markdown that is later rendered needs no privileges, authentication, or user interaction over the network, and can use this to make user-supplied code elements take on the styling of the surrounding page, which affects integrity only.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:20Z"},"euvd":{"id":"EUVD-2025-200113","exploited":false,"provenance":"source"}}