Install
katex
Fast math typesetting for the web.
0.19.1Latest, 23 Oct 2026
197MDownloads, last month
0Advisories on the latest
6Advisories, all versions
MITLicence
21KStars
4.5/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Low | KaTeX: Existing prototype pollution can bypass trust restrictions CVE-2026-103923 | Fixed in 0.18.2 | 5 Oct 2026 |
| Moderate | KaTeX \htmlData does not validate attribute names CVE-2025-23207 | Fixed in 0.16.21 | 17 Jan 2025 |
| Moderate | KaTeX missing normalization of the protocol in URLs allows bypassing forbidden protocols CVE-2024-28246 | Fixed in 0.16.10 | 25 Mar 2024 |
| Moderate | KaTeX's maxExpand bypassed by `\edef` CVE-2024-28243 | Fixed in 0.16.10 | 25 Mar 2024 |
| Moderate | KaTeX's maxExpand bypassed by Unicode sub/superscripts CVE-2024-28244 | Fixed in 0.16.10 | 25 Mar 2024 |
| Moderate | KaTeX's `\includegraphics` does not escape filename CVE-2024-28245 | Fixed in 0.16.10 | 25 Mar 2024 |
In the news
- Stop Using KaTeX/MathJax: Render Math in 3.5KB with Native MathML dev.to, 3 Dec 2026
- laradocs KaTeX SSR command injection depends on a trusted path, and that is why it matters dev.to, 25 Nov 2026
- Lazy-loading KaTeX, Mermaid and highlight.js in a markdown preview dev.to, 25 Nov 2026
- Why I Built @omkar-kamat/quill-keditor: A Modern, Free React WYSIWYG with Native KaTeX and HTML Output dev.to, 23 Nov 2026
- Katex is not working in Angular 18 but works in console stackoverflow.com, 23 Aug 2024
On Hacker News
- KaTeX: Math typesetting for the web 481 points, 98 comments, 15 Sep 2014
- KaTeX – Fast math typesetting library for the web 217 points, 40 comments, 24 Mar 2019
- KaTeX – The fastest math typesetting library for the web 203 points, 87 comments, 10 Oct 2020
- RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust 188 points, 105 comments, 4 May 2026
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.