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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-23207— \htmlData does not validate attribute names in KaTeX

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是KaTeX开源的一个快速、易于使用的 JavaScript 库,用于在网络上进行 TeX 数学渲染。 KaTeX v0.16.21版本之前存在安全漏洞,该漏洞源于 htmlData 命令允许嵌入 HTML 数据,而 trust 选项的不当配置使得攻击者可以利用该命令注入恶意代码。攻击者可以通过不可信的输入执行任意 JavaScript,从而引发跨站脚本攻击。

CVSS 6.3 · Medium EPSS 0.41% · P34

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-23207

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
\htmlData does not validate attribute names in KaTeX
Source: CVE Program / CVE List V5
Vulnerability Description
KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions with `renderToString` could encounter malicious input using `\htmlData` that runs arbitrary JavaScript, or generate invalid HTML. Users are advised to upgrade to KaTeX v0.16.21 to remove this vulnerability. Users unable to upgrade should avoid use of or turn off the `trust` option, or set it to forbid `\htmlData` commands, forbid inputs containing the substring `"\\htmlData"` and sanitize HTML output from KaTeX.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/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是KaTeX开源的一个快速、易于使用的 JavaScript 库,用于在网络上进行 TeX 数学渲染。 KaTeX v0.16.21版本之前存在安全漏洞,该漏洞源于 htmlData 命令允许嵌入 HTML 数据,而 trust 选项的不当配置使得攻击者可以利用该命令注入恶意代码。攻击者可以通过不可信的输入执行任意 JavaScript,从而引发跨站脚本攻击。
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.12.0, < 0.16.21 -

II. Public POCs for CVE-2025-23207

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-23207

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-23207 (1)

Vendor Advisories for CVE-2025-23207 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2025-23207

No comments yet


Leave a comment