CVE-2024-28246 KaTeX is missing normalization of the protocol in URLs allows bypassing forbidden protocols
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
KaTeX is a JavaScript library for TeX math rendering on the web. Code that uses KaTeX's trust option, specifically that provides a function to blacklist certain URL protocols, can be fooled by URLs in malicious inputs that use uppercase characters in the protocol. In particular, this can allow for malicious input to generate javascript: links in the output, even if the trust function tries to forbid this protocol via trust: (context) => context.protocol !== 'javascript'. Upgrade to KaTeX v0.16.10 to remove this vulnerability.
Upgrade path
7 packages: 6 fixed, 1 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 +8 more | No fix listed | No fix yet |
| debian/node-katex(Debian 13) | < 0.16.10+~cs6.1.0-1 | 0.16.10+~cs6.1.0-1 | Fixed |
| debian/node-katex(Debian 14) | < 0.16.10+~cs6.1.0-1 | 0.16.10+~cs6.1.0-1 | Fixed |
| KaTeX | = >= 0.11.0, < 0.16.10; >= 0.11.0, < 0.16.10 | 0.16.10 | Fixed |
| npm katex(npm) | >= 0.11.0, < 0.16.10 | 0.16.10 | 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 Pro 22.04) | < 0.13.11+~cs6.0.0-2ubuntu0.1~esm1; = 0.10.2+dfsg-8; = 0.10.2+dfsg-9; = 0.10.2+dfsg-10 +1 more | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm katex(npm) | >= 0.11.0, < 0.16.10 | 0.16.10 |
| 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-10 | 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) | < 0.16.10+~cs6.1.0-1 | 0.16.10+~cs6.1.0-1 |
| debian/node-katex(Debian:14) | < 0.16.10+~cs6.1.0-1 | 0.16.10+~cs6.1.0-1 |
| ubuntu/node-katex(Ubuntu:22.04) | < 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 |
| KaTeX | = >= 0.11.0, < 0.16.10 | No fix listed |
| KaTeX | >= 0.11.0, < 0.16.10 | 0.16.10 |
| ubuntu/node-katex(Ubuntu:Pro:22.04) | < 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 | 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 |
| ubuntu/node-katex(Ubuntu:Pro:22.04) | = 0.10.2+dfsg-8 | No fix listed |
| ubuntu/node-katex(Ubuntu:Pro:22.04) | = 0.10.2+dfsg-9 | No fix listed |
| ubuntu/node-katex(Ubuntu:Pro:22.04) | = 0.10.2+dfsg-10 | No fix listed |
| ubuntu/node-katex(Ubuntu:Pro:22.04) | = 0.13.11+~cs6.0.0-2 | No fix listed |
References
- https://github.com/KaTeX/KaTeX/security/advisories/GHSA-3wc5-fcw2-2329 issue-tracking mitigation third-party-advisory vendor-advisory
- https://github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de issue-tracking patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Debian Security Tracker CVE-2024-28246 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-7572-1 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- github.com product