PT-2024-22361

CVE-2024-28246

·

Published

2024-03-25

·

Updated

2025-09-02

Description by

CVSS 3.1
5.5
Medium
MetricsAV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
Name of the Vulnerable Software and Affected Versions KaTeX versions prior to 0.16.10
Description KaTeX is a JavaScript library for TeX math rendering on the web. Code that uses KaTeX's trust option can be fooled by URLs in malicious inputs that use uppercase characters in the protocol, allowing for malicious input to generate javascript: links in the output. This issue arises because KaTeX did not normalize the protocol entry of the context object provided to a user-specified trust function, which could be a mix of lowercase and/or uppercase letters.
Recommendations Upgrade to KaTeX v0.16.10 to remove this vulnerability. As a temporary workaround, consider using an allow-list instead of block-listing protocols in your trust function. Manually lowercase context.protocol via context.protocol.toLowerCase() before attempting to check for certain protocols. Avoid use of or turn off the trust option.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-3WC5-FCW2-2329
USN-7572-1
Found an issue in the description? Have something to add? Feel free to write us 👾