Vulnerability library
Security checkOctober 05, 2026

KaTeX: Existing prototype pollution can bypass trust restrictions

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmkatex

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

KaTeX can act as a read-side prototype pollution gadget in applications where Object.prototype has already been polluted, or where an attacker can influence the prototype of the renderer options object. (KaTeX does not enable said prototype pollution.

Recommendation

Update the katex package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 0.11.0, < 0.18.2
  • Patched version(s): 0.18.2

References

Could your website be exposed too?

SmartScanner can check your website for KaTeX: Existing prototype pollution can bypass trust restrictions and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 05, 2026