CyberRota Analysis
AI-GeneratedThe vulnerability affects the KaTeX library versions 0.11.0 to 0.18.2, where improper handling of JavaScript property access allows for prototype pollution, enabling attackers to manipulate trust settings and execute cross-site scripting (XSS) attacks through unsanitized mathematical expressions. This could lead to unauthorized user interactions or the loading of malicious external resources in applications that utilize KaTeX for rendering. Organizations using affected versions of KaTeX should prioritize updating to version 0.18.2 to mitigate potential security risks.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web. From 0.11.0 until 0.18.2, KaTeX uses ordinary JavaScript property access for the renderer options object, the trust setting, default and processor setting metadata, and namespace lookup and group restoration, allowing inherited properties to be treated as explicitly supplied values. When Object.prototype is already polluted or an attacker controls the options object's prototype, attacker-controlled mathematical expressions can use an inherited trust value to enable trusted rendering and produce links capable of user-interaction cross-site scripting or loading attacker-selected external resources in a consuming application that inserts unsanitized KaTeX output into a page. KaTeX does not itself create the prototype pollution, and rendering an expression alone does not execute script. This issue is fixed in version 0.18.2.