Skip to content

CVE-2025-23207 (Medium) detected in katex-0.16.11.tgz #228

Open
@mend-bolt-for-github

Description

@mend-bolt-for-github

CVE-2025-23207 - Medium Severity Vulnerability

Vulnerable Library - katex-0.16.11.tgz

Library home page: https://registry.npmjs.org/katex/-/katex-0.16.11.tgz

Path to dependency file: /ui/package.json

Path to vulnerable library: /ui/package.json

Dependency Hierarchy:

  • @postgres.ai/platform-1.0.0.tgz (Root Library)
    • mermaid-11.0.2.tgz
      • katex-0.16.11.tgz (Vulnerable Library)

Found in base branch: master

Vulnerability Details

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.

Publish Date: 2025-01-17

URL: CVE-2025-23207

CVSS 3 Score Details (6.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-cg87-wmx4-v546

Release Date: 2025-01-17

Fix Resolution: katex - 0.16.21


Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions