katex
0.19.1 · 23 Oct 2026MIT47.8M / weekRepositoryHomepagenpmAtom feed
Upgrading katex From 0.13.17 to 0.19.1
79 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking0.19.0
- Breaking0.18.0
- Breaking0.17.0
- Breaking0.16.0
- Breaking0.15.0
- Breaking0.14.0
Security
Fixes 5 advisories affecting 0.13.17
- 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 `\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
- Fixed
Allow percent sign in raw argument type
- Fixed
- Breaking
Missing character metrics now reported via strict with error code symbolNotInFont, changing warning formatting, calling any strict callbacks, and producing errors in strict: "error" mode. Also, strict callbacks returning undefined or null now warn instead of ignoring the issue (and no longer typecheck); return false or "ignore" to suppress warnings.
- Breaking
- New
Handle character metrics warnings via
strict
- New
- New
Make KaTeX fallback to browsr math font before Times New Roman
- New
- New
types: add contrib module declarations
- New
- Fixed
array: preserve trailing rows in align
- Fixed
- New
Add \reflectbox and \mapsfrom support
- New
- Fixed
array: preserve tags on empty final rows
- Fixed
2 internal lines (docs, tests, tooling) left out.
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.