CVE-2024-28246
KaTeX JavaScript: Protocol Blacklisting Evasion
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.
INFO
Published Date :
March 25, 2024, 8:15 p.m.
Last Modified :
Sept. 2, 2025, 4:36 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | MEDIUM | [email protected] | ||||
CVSS 3.1 | MEDIUM | [email protected] |
Solution
- There is no known solution at this time.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-28246
.
URL | Resource |
---|---|
https://github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de | Patch |
https://github.com/KaTeX/KaTeX/security/advisories/GHSA-3wc5-fcw2-2329 | Third Party Advisory Mitigation |
https://github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de | Patch |
https://github.com/KaTeX/KaTeX/security/advisories/GHSA-3wc5-fcw2-2329 | Third Party Advisory Mitigation |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-28246
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-28246
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-28246
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-28246
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Sep. 02, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N Added CPE Configuration OR *cpe:2.3:a:katex:katex:*:*:*:*:*:*:*:* versions from (including) 0.11.0 up to (excluding) 0.16.10 Added Reference Type CVE: https://github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de Types: Patch Added Reference Type GitHub, Inc.: https://github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de Types: Patch Added Reference Type CVE: https://github.com/KaTeX/KaTeX/security/advisories/GHSA-3wc5-fcw2-2329 Types: Mitigation, Third Party Advisory Added Reference Type GitHub, Inc.: https://github.com/KaTeX/KaTeX/security/advisories/GHSA-3wc5-fcw2-2329 Types: Mitigation, Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de Added Reference https://github.com/KaTeX/KaTeX/security/advisories/GHSA-3wc5-fcw2-2329 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Received by [email protected]
Mar. 25, 2024
Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://github.com/KaTeX/KaTeX/security/advisories/GHSA-3wc5-fcw2-2329 [No types assigned] Added Reference GitHub, Inc. https://github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de [No types assigned] Added CWE GitHub, Inc. CWE-184 Added CWE GitHub, Inc. CWE-697 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L