Bug 2338681 (CVE-2025-23207) - CVE-2025-23207 katex: \htmlData does not validate attribute names in KaTeX
Summary: CVE-2025-23207 katex: \htmlData does not validate attribute names in KaTeX
Keywords:
Status: NEW
Alias: CVE-2025-23207
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-17 22:01 UTC by OSIDB Bzimport
Modified: 2025-03-13 14:07 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:2753 0 None None None 2025-03-13 14:07:23 UTC

Description OSIDB Bzimport 2025-01-17 22:01:07 UTC
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.

Comment 2 errata-xmlrpc 2025-03-13 14:07:22 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Dev Spaces 3 Containers

Via RHSA-2025:2753 https://access.redhat.com/errata/RHSA-2025:2753


Note You need to log in before you can comment on or make changes to this bug.