Read the docs
TI-2024-39061 Aliases GHSA-m4gq-x24j-jpmf

Prototype pollution vulnerability found in Mermaid's bundled version of DOMPurify

Priority LOW 38CWE-1321Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

The following bundled files within the Mermaid NPM package contain a bundled version of DOMPurify that is vulnerable to https://github.com/cure53/DOMPurify/security/advisories/GHSA-mmhx-hmjr-r674, potentially resulting in an XSS attack. This affects the built: - `dist/mermaid.min.js` - `dist/mermaid.js` - `dist/mermaid.esm.mjs` - `dist/mermaid.esm.min.mjs` This will also affect users that use the above files via a CDN link, e.g. `https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js` **Users that use the default NPM export of `mermaid`, e.g. `import mermaid from 'mermaid'`, or the `dist/mermaid.core.mjs` file, do not use this bundled version of DOMPurify, and can easily update using their package manager with something like `npm audit fix`.** ### Patches - `develop` branch: 6c785c93166c151d27d328ddf68a13d9d65adc00 - backport to v10: 92a07ffe40aab2769dd1c3431b4eb5beac282b34

Why it matters now

Fix Fixed mermaid (npm): 10.9.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—mermaid (npm)before 10.9.310.9.3Patch availableGHSA-m4gq-x24j-jpmf
  • mermaid (npm) Vendor— Affected before 10.9.3 Fixed in 10.9.3 Patch available GHSA-m4gq-x24j-jpmf

Remediation

  • Fix · GHSA-m4gq-x24j-jpmf mermaid (npm) Fixed in 10.9.3 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-m4gq-x24j-jpmf

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences