CVE-2024-28246: KaTeX - Stored XSS
- Cve: CVE-2024-28246
- Name: KaTeX - Stored XSS
- 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.
- Impact: Attackers can inject 'javascript:' links, potentially leading to cross-site scripting (XSS) attacks.
- Remediation: Upgrade to KaTeX v0.16.10 to fix the vulnerability.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- Epss score: 0.00406
- Epss percentile: 0.35633
- Assignee: [email protected]
- Published at: 2024-03-25T20:15:08Z
- Age in days: 974
- Modified at: 2026-06-17T07:21:15Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-28246
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-184 | Incomplete List of Disallowed Inputs |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de | nvd | Patch |
| https://github.com/KaTeX/KaTeX/security/advisories/GHSA-3wc5-fcw2-2329 | nvd | Mitigation, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| katex:katex | >= 0.11.0, < 0.16.10 | no | nvd | /v1/products/katex/katex |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| KaTeX/KaTeX | commit, fix, package, security_advisory | yes | /v1/repositories/KaTeX/KaTeX |
Index
- Repositories: 72
- Repositories high signal: 43
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts