CVE-2025-66400

MEDIUM
Published Dec 1, 2025 Modified Feb 6, 2026 CWE-20 CWE-915

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.

CVSS v3.1 Score

5.3
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Weakness Type (CWE)

CWE-20 Improper Input Validation
CWE-915 CWE-915

Affected Products

Vendor Product
unifiedjs mdast-util-to-hast

References

Frequently Asked Questions

What is CVE-2025-66400? +
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. It has a CVSS v3.1 base score of 5.3 (MEDIUM).
How severe is CVE-2025-66400? +
CVE-2025-66400 has a CVSS v3.1 score of 5.3 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2025-66400? +
CVE-2025-66400 affects products from unifiedjs, specifically: mdast-util-to-hast. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-66400? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-66400 — free, no signup required.

Start Free Scan