---
title: "katex security advisories"
description: "6 known security advisories for katex, with the versions they affect and the version that fixes each."
url: https://inlinr.com/packages/katex/security
lang: en
---

[Packages](https://inlinr.com/packages)

# katex

0.19.1 · 23 Oct 2026 MIT 47.8M / week [Repository](https://github.com/KaTeX/KaTeX) [Homepage](https://katex.org/) [npm](https://www.npmjs.com/package/katex) [Atom feed](https://inlinr.com/packages/feed/katex)

Your version 

## Security advisories

From OSV, open ones first. Each release line gets its own fix: an older major is fixed by a patch on that major, not by moving to the newest one.

| Line | Newest  | Where it stands                                                                |
| ---- | ------- | ------------------------------------------------------------------------------ |
|      | 0.19.1  | No known advisory                                                              |
|      | 0.18.11 | Safe from 0.18.2                                                               |
|      | 0.17.0  | 1 open advisory, worst low                                                     |
|      | 0.16.47 | 1 open advisory, worst low                                                     |
|      | 0.15.6  | 24 open advisories, worst moderate  · last release May 2022, no longer updated |

- Moderate  
[KaTeX \\htmlData does not validate attribute names](https://inlinr.com/advisories/GHSA-cg87-wmx4-v546)GHSA-cg87-wmx4-v546 · 17 Jan 2025  
fixed in 0.16.21
- Moderate  
[KaTeX missing normalization of the protocol in URLs allows bypassing forbidden protocols](https://inlinr.com/advisories/GHSA-3wc5-fcw2-2329)GHSA-3wc5-fcw2-2329 · 25 Mar 2024  
fixed in 0.16.10
- Moderate  
[KaTeX's \`\\includegraphics\` does not escape filename](https://inlinr.com/advisories/GHSA-f98w-7cxr-ff2h)GHSA-f98w-7cxr-ff2h · 25 Mar 2024  
fixed in 0.16.10
- Moderate  
[KaTeX's maxExpand bypassed by Unicode sub/superscripts](https://inlinr.com/advisories/GHSA-cvr6-37gx-v8wc)GHSA-cvr6-37gx-v8wc · 25 Mar 2024  
fixed in 0.16.10
- Moderate  
[KaTeX's maxExpand bypassed by \`\\edef\`](https://inlinr.com/advisories/GHSA-64fm-8hw2-v72w)GHSA-64fm-8hw2-v72w · 25 Mar 2024  
fixed in 0.16.10
- Low  
[KaTeX: Existing prototype pollution can bypass trust restrictions](https://inlinr.com/advisories/GHSA-238p-pmpm-9mq7)GHSA-238p-pmpm-9mq7 · 5 Oct 2026  
fixed in 0.18.2

### Quality and security signals

What [npm](https://www.npmjs.com/package/katex) and [deps.dev](https://deps.dev/npm/katex) say about the latest release. Signals, not a verdict.

Reading npm and deps.dev…

Reading releases, release notes and advisories…

Registry facts last checked 20 Nov 2026\. Releases and advisories last read 20 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
