CVE-2024-28246 Affecting node-katex package, versions <0.16.10+~cs6.1.0-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.41% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-NODEKATEX-20385326
  • published2 Oct 2026
  • disclosed25 Mar 2024

Introduced: 25 Mar 2024

CVE-2024-28246  (opens in a new tab)

How to fix?

Upgrade Echo:latest node-katex to version 0.16.10+~cs6.1.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-katex package and not the node-katex package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

KaTeX is a JavaScript library for TeX math rendering on the web. Code that uses KaTeX's trust option, specifically that provides a function to blacklist certain URL protocols, can be fooled by URLs in malicious inputs that use uppercase characters in the protocol. In particular, this can allow for malicious input to generate javascript: links in the output, even if the trust function tries to forbid this protocol via trust: (context) =&gt; context.protocol !== &#39;javascript&#39;. Upgrade to KaTeX v0.16.10 to remove this vulnerability.

CVSS Base Scores

version 3.1