CVE-2024-28246
published medium CVSS 3.1 · 5.5KaTeX is missing normalization of the protocol in URLs allows bypassing forbidden protocols
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| KaTeX | — | KaTeX>= 0.11.0, < 0.16.10 | 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 |
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.
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
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/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.11.0, < 0.16.10 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-184 CWE-184: Incomplete List of Disallowed Inputs
- CWE-697 CWE-697: Incorrect Comparison
References
2Provider assertions
3GitHub_M · cna
KaTeX is missing normalization of the protocol in URLs allows bypassing forbidden protocols
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9125a45119d78f0dd5b20e542757375e4ab22af85aceaad3d7f4653976fc5274
- Ingested
- 23 Sep 2026, 08:21:01 UTC
- Source record
- Official CVE record