CVE-2024-28245 json
KaTeX's \includegraphics does not escape filename
published 2y ago modified 2mo ago also EUVD-2024-0914 , GHSA-f98w-7cxr-ff2h
- cvss
- 6.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 35%
- public exploits
- 0
- none known
Summary
KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\includegraphics` that runs arbitrary JavaScript, or generate invalid HTML. Upgrade to KaTeX v0.16.10 to remove this vulnerability.
Patch / fix
- npm katex 0.16.10
- KaTeX KaTeX 0.16.10
- node-katex Debian 14, Debian 13 0.16.10+~cs6.1.0-1
debian advisories DEBIAN-CVE-2024-28245
- node-katex Ubuntu Pro 22.04 LTS 0.13.11+~cs6.0.0-2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-28245
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2024-28245 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-28245 updated cvss 6.3
katex: runs arbitrary JavaScript, or generate invalid HTML
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
0.41% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | katex | >=0.11.0, <0.16.10 |
0.16.10 |
Affected products
- KaTeX KaTeX
Classification
- Weakness
-
- CWE-116 Improper Encoding or Escaping of Output
References
-
github.com
/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770
web, patch
-
github.com
/KaTeX/KaTeX/security/advisories/GHSA-f98w-7cxr-ff2h
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-28245
advisory
-
github.com
/KaTeX/KaTeX
package
Sources
- CVE List CVE-2024-28245
- GitHub Advisory GHSA-f98w-7cxr-ff2h
- NVD CVE-2024-28245
- Maintainer advisory GHSA-f98w-7cxr-ff2h
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of KaTeX/KaTeX published their own advisory on GitHub. Reviewed sources take precedence over it.