katex
0.19.1 · 23 Oct 2026MIT47.8M / weekRepositoryHomepagenpmAtom feed
Your version
0.19.1 is the newest release of 0.16.x.
In short
4 fixed
Security
Fixes 4 advisories that affected 0.16.9
- ModerateKaTeX missing normalization of the protocol in URLs allows bypassing forbidden protocolsGHSA-3wc5-fcw2-2329 · 25 Mar 2024Fixed in 0.16.10
- ModerateKaTeX's `\includegraphics` does not escape filenameGHSA-f98w-7cxr-ff2h · 25 Mar 2024Fixed in 0.16.10
- ModerateKaTeX's maxExpand bypassed by Unicode sub/superscriptsGHSA-cvr6-37gx-v8wc · 25 Mar 2024Fixed in 0.16.10
- ModerateKaTeX's maxExpand bypassed by `\edef`GHSA-64fm-8hw2-v72w · 25 Mar 2024Fixed in 0.16.10
2 advisories affect 0.16.10; 0.18.2 fixes them
- ModerateKaTeX \htmlData does not validate attribute namesGHSA-cg87-wmx4-v546 · 17 Jan 2025Fixed in 0.16.21
- LowKaTeX: Existing prototype pollution can bypass trust restrictionsGHSA-238p-pmpm-9mq7 · 5 Oct 2026Fixed in 0.18.2
Release note
Bug Fixes
\edef bypassing maxExpand via exponential blowup
Escape \includegraphics src and alt
Force protocol to be lowercase for better protocol filtering (fc5af64), closes /datatracker.ietf.org/doc/html/rfc3986#section-3
maxExpand limit with Unicode sub/superscripts
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.