katex
0.19.1 · 23 Oct 2026MIT47.8M / weekRepositoryHomepagenpmAtom feed
Upgrading katex From 0.16.14 to 0.18.2
37 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 2 advisories affecting 0.16.14
- KaTeX: Existing prototype pollution can bypass trust restrictionslow · GHSA-238p-pmpm-9mq7
- KaTeX \htmlData does not validate attribute namesmoderate · GHSA-cg87-wmx4-v546
- 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.