katex
0.19.1 · 23 Oct 2026MIT47.8M / weekRepositoryHomepagenpmAtom feed
Upgrading katex From 0.16.7 to 0.18.2
44 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking0.18.0
- Breaking0.17.0
Security
Fixes 6 advisories affecting 0.16.7
- KaTeX: Existing prototype pollution can bypass trust restrictionslow · GHSA-238p-pmpm-9mq7
- KaTeX missing normalization of the protocol in URLs allows bypassing forbidden protocolsmoderate · GHSA-3wc5-fcw2-2329
- KaTeX's maxExpand bypassed by `\edef`moderate · GHSA-64fm-8hw2-v72w
- KaTeX \htmlData does not validate attribute namesmoderate · GHSA-cg87-wmx4-v546
- KaTeX's maxExpand bypassed by Unicode sub/superscriptsmoderate · GHSA-cvr6-37gx-v8wc
- KaTeX's `\includegraphics` does not escape filenamemoderate · GHSA-f98w-7cxr-ff2h
- 0.18.2
Prevent prototype pollution in settings
- 0.16.21
See security advisory github.com/KaTeX/KaTeX/security/advisories/GHSA…
Release by release
- Security
Prevent prototype pollution in settings
- Security
- Breaking
Users who apply custom styles or have allowlists targeting KaTeX's internal classes must update their selectors.
- New
Prefix css classes
- Breaking
- Breaking
The internal API for
__defineFunctionchanged: you should no longer wrap properties inprops. - New
Simplify
defineFunctionto avoid destructuring, improve typing
- Breaking
- Fixed
Remove extra \jot space at bottom of align/gather/etc.
- Fixed
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.