CVE-2025-66400

MEDIUM CVSS 4.0: 6.9 EPSS 0.33%
Updated Oct 18, 2026
Unifiedjs
Parameter Value
CVSS 6.9 (MEDIUM)
Affected Versions 13.0.0 — 13.2.1
Fixed In 13.2.1
Type CWE-915, CWE-20 (Improper Input Validation)
Vendor Unifiedjs
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Unifiedjs Mdast-Util-To-Hast
cpe:2.3:a:unifiedjs:mdast-util-to-hast:*:*:*:*:*:node.js:*:*
13.0.0 13.2.1