CVE-2025-66400

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-66400
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-66400.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-66400
Aliases
Published
2025-12-01T22:17:42.705Z
Modified
2025-12-05T10:21:56.570924Z
Severity
  • 6.9 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
mdast-util-to-hast unsanitized class attribute
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-20",
        "CWE-915"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66400.json"
}
References

Affected packages

Git / github.com/syntax-tree/mdast-util-to-hast

Affected ranges

Type
GIT
Repo
https://github.com/syntax-tree/mdast-util-to-hast
Events

Affected versions

13.*

13.0.0
13.0.1
13.0.2
13.1.0
13.2.0