mathlive@0.109.2

A web component for math input

  • latest version

    0.110.0

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    1 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mathlive package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-site Scripting (XSS)

    mathlive is an A web component for math input

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the Box.toMarkup method (src/core/box.ts) and the MathML serializer (src/formats/atom-to-math-ml.ts), which emit literal characters from LaTeX text-mode commands into HTML markup without escaping. An attacker can execute arbitrary JavaScript in a victim's browser by supplying a math expression whose \text{} or \mbox{} content includes HTML such as <img src=x onerror=alert(1)>, which is rendered into the page unchanged. Exploitation requires the application to render untrusted LaTeX or math input with mathlive, for example through the <math-span> or <math-div> static elements.

    Note: This is a bypass of the fix for the vulnerability described in CVE-2025-29049.

    How to fix Cross-site Scripting (XSS)?

    Upgrade mathlive to version 0.110.0 or higher.

    <0.110.0