Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-28246— KaTeX is missing normalization of the protocol in URLs allows bypassing forbidden protocols

Quick assessment

Affected
KaTeX KaTeX
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

KaTeX是一个快速、易于使用的 JavaScript 库,用于在网络上进行 TeX 数学渲染。 KaTeX v0.16.10 版本之前存在安全漏洞,该漏洞源于使用 KaTeX 的 trust 选项的代码,特别是提供将某些 URL 协议列入黑名单的功能的代码,可能会被在协议中使用大写字符的恶意输入中的 URL 所欺骗。

CVSS 5.5 · Medium EPSS 0.41% · P33

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-28246

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
KaTeX is missing normalization of the protocol in URLs allows bypassing forbidden protocols
Source: CVE Program / CVE List V5
Vulnerability Description
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) => context.protocol !== 'javascript'`. Upgrade to KaTeX v0.16.10 to remove this vulnerability.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
不完整的黑名单
Source: CVE Program / CVE List V5
Vulnerability Title
KaTeX 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
KaTeX是一个快速、易于使用的 JavaScript 库,用于在网络上进行 TeX 数学渲染。 KaTeX v0.16.10 版本之前存在安全漏洞,该漏洞源于使用 KaTeX 的 trust 选项的代码,特别是提供将某些 URL 协议列入黑名单的功能的代码,可能会被在协议中使用大写字符的恶意输入中的 URL 所欺骗。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
KaTeX KaTeX >= 0.11.0, < 0.16.10 -

II. Public POCs for CVE-2024-28246

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-28246

登录查看更多情报信息。

Patches & Fixes for CVE-2024-28246 (1)

Vendor Advisories for CVE-2024-28246 (1)

Same Patch Batch · KaTeX · 2024-03-25 · 4 CVEs total

CVE-2024-28243 6.5 MEDIUM KaTeX's maxExpand bypassed by \edef
CVE-2024-28244 6.5 MEDIUM KaTeX's maxExpand bypassed by Unicode sub/superscripts
CVE-2024-28245 6.3 MEDIUM KaTeX's \includegraphics does not escape filename

IV. Related Vulnerabilities

V. Comments for CVE-2024-28246

No comments yet


Leave a comment