CVE-2025-23207 \htmlData does not validate attribute names in KaTeX
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 6 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-katex(Debian 12) | = 0.16.4+~cs6.1.0-1; = 0.16.10+~cs6.1.0-1; = 0.16.10+~cs6.1.0-2; = 0.16.10+~cs6.1.0-3 +7 more | No fix listed | No fix yet |
| debian/node-katex(Debian 13) | = 0.16.10+~cs6.1.0-2; = 0.16.10+~cs6.1.0-3; = 0.16.10+~cs6.1.0-4; = 0.16.10+~cs6.1.0-5 +5 more | No fix listed | No fix yet |
| debian/node-katex(Debian 14) | < 0.16.10+~cs6.1.0-7; = 0.16.10+~cs6.1.0-2; = 0.16.10+~cs6.1.0-3; = 0.16.10+~cs6.1.0-4 +2 more | 0.16.10+~cs6.1.0-7 | Fixed |
| KaTeX | = >= 0.12.0, < 0.16.21; >= 0.12.0, < 0.16.21 | 0.16.21 | Fixed |
| npm katex(npm) | >= 0.12.0, < 0.16.21; >= 0.12.0, <= 0.16.20 | 0.16.21 | Fixed |
| ubuntu/node-katex(Ubuntu 22.04) | < 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | Fixed |
| ubuntu/node-katex(Ubuntu 24.04) | < 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | Fixed |
| ubuntu/node-katex(Ubuntu 26.04) | < 0.16.10+~cs6.1.0-2ubuntu1 | 0.16.10+~cs6.1.0-2ubuntu1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/node-katex(Debian:12) | All versions | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-1 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-2 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-3 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-4 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-5 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-6 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-7 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-8 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.10+~cs6.1.0-9 | No fix listed |
| debian/node-katex(Debian:12) | = 0.16.4+~cs6.1.0-1 | No fix listed |
| debian/node-katex(Debian:13) | All versions | No fix listed |
| debian/node-katex(Debian:13) | = 0.16.10+~cs6.1.0-2 | No fix listed |
| debian/node-katex(Debian:13) | = 0.16.10+~cs6.1.0-3 | No fix listed |
| debian/node-katex(Debian:13) | = 0.16.10+~cs6.1.0-4 | No fix listed |
| debian/node-katex(Debian:13) | = 0.16.10+~cs6.1.0-5 | No fix listed |
| debian/node-katex(Debian:13) | = 0.16.10+~cs6.1.0-6 | No fix listed |
| debian/node-katex(Debian:13) | = 0.16.10+~cs6.1.0-7 | No fix listed |
| debian/node-katex(Debian:13) | = 0.16.10+~cs6.1.0-8 | No fix listed |
| debian/node-katex(Debian:13) | = 0.16.10+~cs6.1.0-9 | No fix listed |
| debian/node-katex(Debian:14) | < 0.16.10+~cs6.1.0-7 | 0.16.10+~cs6.1.0-7 |
| debian/node-katex(Debian:14) | = 0.16.10+~cs6.1.0-2 | No fix listed |
| debian/node-katex(Debian:14) | = 0.16.10+~cs6.1.0-3 | No fix listed |
| debian/node-katex(Debian:14) | = 0.16.10+~cs6.1.0-4 | No fix listed |
| debian/node-katex(Debian:14) | = 0.16.10+~cs6.1.0-5 | No fix listed |
Show 8 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/node-katex(Debian:14) | = 0.16.10+~cs6.1.0-6 | No fix listed |
| npm katex(npm) | >= 0.12.0, <= 0.16.20 | No fix listed |
| KaTeX | = >= 0.12.0, < 0.16.21 | No fix listed |
| ubuntu/node-katex(Ubuntu:22.04) | < 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 |
| ubuntu/node-katex(Ubuntu:24.04) | < 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 | 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 |
| ubuntu/node-katex(Ubuntu:26.04) | < 0.16.10+~cs6.1.0-2ubuntu1 | 0.16.10+~cs6.1.0-2ubuntu1 |
| KaTeX | >= 0.12.0, < 0.16.21 | 0.16.21 |
| npm katex(npm) | >= 0.12.0, < 0.16.21 | 0.16.21 |
References
- Debian Security Tracker CVE-2025-23207 vendor-advisory
- https://github.com/KaTeX/KaTeX/security/advisories/GHSA-cg87-wmx4-v546 third-party-advisory vendor-advisory
- https://github.com/KaTeX/KaTeX/commit/ff289955e81aab89086eef09254cbf88573d415c patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- USN-7572-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- github.com product