Approved changes feed: RSS · Atom

cpe:2.3:a:katex:katex:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorKatex (84ba7515-8746-51b1-8026-c8216fc63e2d)
ProductKatex (6144f913-5e53-53ae-9f27-d85d06306796)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*

Notes

Imported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/katex/katex purl2cpe 2026-06-01 10:14:02.993074
pkg:maven/org.webjars.npm/katex purl2cpe 2026-06-01 10:14:02.993076
pkg:npm/katex purl2cpe 2026-06-01 10:14:02.993078

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2025-23207 vulnerable 2026-06-08 07:10:55.336126 \htmlData does not validate attribute names in KaTeX
MEDIUM (6.3)
KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions with `renderToString` could encounter malicious input using `\htmlData` that runs arbitrary JavaScript, or generate invalid HTML. Users are advised to upgrade to KaTeX v0.16.21 to remove this vulnerability. Users unable to upgrade should avoid use of or turn off the `trust` option, or set it to forbid `\htmlData` commands, forbid inputs containing the substring `"\\htmlData"` and sanitize HTML output from KaTeX.
Published: 2025-01-17T21:25:05.746Z
Updated: 2025-01-17T21:32:24.984Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-28246 vulnerable 2026-06-08 06:33:26.803852 KaTeX is missing normalization of the protocol in URLs allows bypassing forbidden protocols
MEDIUM (5.5)
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.
Published: 2024-03-25T20:00:17.211Z
Updated: 2024-08-02T00:48:49.457Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-28245 vulnerable 2026-06-08 06:33:26.803433 KaTeX's \includegraphics does not escape filename
MEDIUM (6.3)
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.
Published: 2024-03-25T19:53:01.320Z
Updated: 2024-08-02T00:48:49.569Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-28244 vulnerable 2026-06-08 06:33:26.801283 KaTeX's maxExpand bypassed by Unicode sub/superscripts
MEDIUM (6.5)
KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\def` or `\newcommand` that causes a near-infinite loop, despite setting `maxExpand` to avoid such loops. KaTeX supports an option named maxExpand which aims to prevent infinitely recursive macros from consuming all available memory and/or triggering a stack overflow error. Unfortunately, support for "Unicode (sub|super)script characters" allows an attacker to bypass this limit. Each sub/superscript group instantiated a separate Parser with its own limit on macro executions, without inheriting the current count of macro executions from its parent. This has been corrected in KaTeX v0.16.10.
Published: 2024-03-25T19:45:50.907Z
Updated: 2024-08-02T00:48:49.553Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-28243 vulnerable 2026-06-08 06:33:26.798854 KaTeX's maxExpand bypassed by \edef
MEDIUM (6.5)
KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\edef` that causes a near-infinite loop, despite setting `maxExpand` to avoid such loops. This can be used as an availability attack, where e.g. a client rendering another user's KaTeX input will be unable to use the site due to memory overflow, tying up the main thread, or stack overflow. Upgrade to KaTeX v0.16.10 to remove this vulnerability.
Published: 2024-03-25T19:40:00.843Z
Updated: 2026-02-05T15:26:36.281Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.

Inspect record JSON

Open JSON directly

Open this panel to browse, search, copy or download the JSON record.