
CVE catalog
CVE-2025-23207
KaTeX vulnerabilities
- Severity
- Medium · CVSS 6.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.41% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-katex | sid | 0.16.10+~cs6.1.0-10 | fixed |
| Debian | node-katex | forky | 0.16.10+~cs6.1.0-10 | fixed |
| Debian | node-katex | trixie | 0.16.10+~cs6.1.0-2 | vulnerable |
| Debian | node-katex | bookworm | 0.16.4+~cs6.1.0-1 | vulnerable |
| Ubuntu | node-katex | noble | Not reported | vulnerable |
| Ubuntu | node-katex | noble | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | fixed |
| Ubuntu | fonts-katex | noble | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | fixed |
| Ubuntu | katex | noble | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | fixed |
| Ubuntu | libjs-katex | noble | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | fixed |
| Ubuntu | node-katex | pro | 0.16.4+~cs6.1.0-1 | vulnerable |
| Ubuntu | node-katex | pro | 0.16.10+~cs6.1.0-2 | vulnerable |
| Ubuntu | node-katex | pro | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | fixed |
| Ubuntu | node-katex | 25.10 | 0.16.10+~cs6.1.0-2 | vulnerable |
| Ubuntu | node-katex | 25.10 | 0.16.10+~cs6.1.0-2ubuntu1 | fixed |
| Ubuntu | node-katex | 26.04 | 0.16.10+~cs6.1.0-2ubuntu1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-katex | source | sid | 0.16.10+~cs6.1.0-7 | not yet assigned | Not reported | [1093446] |
| Debian | node-katex | source | forky | 0.16.10+~cs6.1.0-7 | not yet assigned | Not reported | [1093446] |
| Debian | node-katex | source | trixie | (unfixed) | not yet assigned | Not reported | [1093446] |
| Debian | node-katex | source | bookworm | (unfixed) | not yet assigned | Not reported | [1093446] |
| Ubuntu | node-katex | deb | noble | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | fonts-katex | deb | noble | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | katex | deb | noble | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libjs-katex | deb | noble | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | node-katex | deb | pro | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | Not reported | UBUNTU-CVE-2025-23207 | Not reported |
| Ubuntu | node-katex | deb | 25.10 | 0.16.10+~cs6.1.0-2ubuntu1 | Not reported | UBUNTU-CVE-2025-23207 | Not reported |
| Ubuntu | node-katex | deb | 26.04 | 0.16.10+~cs6.1.0-2ubuntu1 | Not reported | UBUNTU-CVE-2025-23207 | Not reported |
Notes
[trixie] node-katex: Minor issue [bookworm] node-katex: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [fonts-katex]Affected
Source package: [node-katex]
Details (2)
0.16.4+~cs6.1.0-1· all · bookwormAffected
usn · node-katex · debian · bookworm; usn · node-katex · debian · 12
0.16.4+~cs6.1.0-1· all · bookwormAffected
usn · node-katex · debian · bookworm; usn · node-katex · debian · 12
- [katex]Affected
Source package: [node-katex]
Details (2)
0.16.4+~cs6.1.0-1· all · bookwormAffected
usn · node-katex · debian · bookworm; usn · node-katex · debian · 12
0.16.4+~cs6.1.0-1· all · bookwormAffected
usn · node-katex · debian · bookworm; usn · node-katex · debian · 12
- [libjs-katex]Affected
Source package: [node-katex]
Details (2)
0.16.4+~cs6.1.0-1· all · bookwormAffected
usn · node-katex · debian · bookworm; usn · node-katex · debian · 12
0.16.4+~cs6.1.0-1· all · bookwormAffected
usn · node-katex · debian · bookworm; usn · node-katex · debian · 12
[Debian 13 (Trixie)]
- [fonts-katex]Affected
Source package: [node-katex]
Details (2)
0.16.10+~cs6.1.0-2· all · trixieAffected
usn · node-katex · debian · 13
0.16.10+~cs6.1.0-2· all · trixieAffected
usn · node-katex · debian · 13
- [katex]Affected
Source package: [node-katex]
Details (2)
0.16.10+~cs6.1.0-2· all · trixieAffected
usn · node-katex · debian · 13
0.16.10+~cs6.1.0-2· all · trixieAffected
usn · node-katex · debian · 13
- [libjs-katex]Affected
Source package: [node-katex]
Details (2)
0.16.10+~cs6.1.0-2· all · trixieAffected
usn · node-katex · debian · 13
0.16.10+~cs6.1.0-2· all · trixieAffected
usn · node-katex · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-23207]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2025-23207]
- [https://security-tracker.debian.org/tracker/CVE-2025-23207]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-23207.json]
- [https://ubuntu.com/security/notices/USN-7572-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2025/wid-sec-w-2025-0557.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [Ubuntu Security Notices (USN)]