# CVE-2024-28246: KaTeX is missing normalization of the protocol in URLs allows bypassing forbidden protocols

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 36% of CVEs (2026-12-01)
- Published: 2024-03-25T19:38:37.000Z
- Modified: 2026-09-10T03:50:09.938Z
- Also known as: GHSA-3wc5-fcw2-2329
- Weaknesses: CWE-184, CWE-697
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- KaTeX KaTeX: >= 0.11.0, < 0.16.10; from 0.11.0 before 0.16.10
- katex (npm): from 0.11.0 before 0.16.10

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/KaTeX/KaTeX/security/advisories/GHSA-3wc5-fcw2-2329> (mitigation, third-party-advisory, web)
- <https://github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28246> (advisory)
- <https://github.com/KaTeX/KaTeX> (package)

## Sources

- CVE List: [CVE-2024-28246](https://www.cve.org/CVERecord?id=CVE-2024-28246), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-3wc5-fcw2-2329](https://github.com/advisories/GHSA-3wc5-fcw2-2329), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-28246](https://nvd.nist.gov/vuln/detail/CVE-2024-28246), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-28246 · Whole record: https://cve.day/CVE-2024-28246.json · Rebuilt by cve.day 2026-11-25T22:58:37.886Z
