CVE-2025-66400
published medium CVSS 4.0 · 6.9mdast-util-to-hast unsanitized class attribute
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| syntax-tree | — | mdast-util-to-hast>= 13.0.0, < 13.2.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| syntax-tree | mdast-util-to-hast | >= 13.0.0, < 13.2.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-20 CWE-20: Improper Input Validation
- CWE-915 CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
References
3Provider assertions
2GitHub_M · cna
mdast-util-to-hast unsanitized class attribute
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f73f59915ed1212d4dc17b4088b76c9d880ebf82616b1962597e079eafd5b85b
- Ingested
- 23 Sep 2026, 08:56:35 UTC
- Source record
- Official CVE record