CVE-2025-23207
published medium CVSS 3.1 · 6.3\htmlData does not validate attribute names in KaTeX
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| KaTeX | — | KaTeX>= 0.12.0, < 0.16.21 | Affected | Not stated | GitHub_M |
| Ubuntu | jammy | fonts-katex | Advisory build | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | USN-7572-1 |
| Ubuntu | jammy | katex | Advisory build | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | USN-7572-1 |
| Ubuntu | jammy | libjs-katex | Advisory build | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | USN-7572-1 |
| Ubuntu | jammy | node-katex | Advisory build | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | USN-7572-1 |
| Ubuntu | noble | fonts-katex | Advisory build | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | USN-7572-1 |
| Ubuntu | noble | katex | Advisory build | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | USN-7572-1 |
| Ubuntu | noble | libjs-katex | Advisory build | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | USN-7572-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | node-katex | Advisory build | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | USN-7572-1 |
Description
KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions with `renderToString` could encounter malicious input using `\htmlData` that runs arbitrary JavaScript, or generate invalid HTML. Users are advised to upgrade to KaTeX v0.16.21 to remove this vulnerability. Users unable to upgrade should avoid use of or turn off the `trust` option, or set it to forbid `\htmlData` commands, forbid inputs containing the substring `"\\htmlData"` and sanitize HTML output from KaTeX.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| KaTeX | KaTeX | >= 0.12.0, < 0.16.21 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-116 CWE-116: Improper Encoding or Escaping of Output
References
2Provider assertions
2GitHub_M · cna
\htmlData does not validate attribute names in KaTeX
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- dc5ac7ac2d191134fc5f08442c8d53b2ffd70ad96c7bc434f5b310d534d7ff34
- Ingested
- 23 Sep 2026, 08:40:42 UTC
- Source record
- Official CVE record