BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-54881 in Diagrams products

No CVSS score published

Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. In the default configuration of mermaid 10.9.0-rc.1 to 11.9.0, user supplied input for sequence diagram labels is passed to innerHTML during calculation of el...

Affects 0 products from 3 vendors. Facts below cite their sources.

CVSS v45.3
EPSS1.1%
EPSS percentile66th
FixUnknown

Affected products and versions

VendorProductAffected versions
Diagrams — —
Element — —
Javascript — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. In the default configuration of mermaid 10.9.0-rc.1 to 11.9.0, user supplied input for sequence diagram labels is passed to innerHTML during calculation of element size, causing XSS.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-54881
BreachSpider IDBS-2025-GLOBAL-275721-I
Published2025-08-19
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-79: Cross-Site Scripting (XSS)

Attacker injects malicious scripts into web pages viewed by other users, executing in the victim's browser context.

Related attack patterns (CAPEC)

CAPEC-85 AJAX Footprinting via CWE-79

CAPEC-209 XSS Using MIME Type Mismatch via CWE-79

CAPEC-588 DOM-Based XSS via CWE-79

CAPEC-591 Reflected XSS via CWE-79

CAPEC-592 Stored XSS via CWE-79

Show all 6

CAPEC-63 Cross-Site Scripting (XSS) via CWE-79

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A Cross-Site Scripting (XSS) vulnerability exists in Mermaid versions 10.9.0-rc.1 to 11.9.0 due to improper handling of user-supplied input for sequence diagram labels, which is passed to innerHTML during element size calculation.

An attacker can exploit this vulnerability by injecting malicious scripts into sequence diagram labels. When a user views the affected diagram, the script executes in the context of the user's browser, potentially leading to unauthorized actions or data theft.

Questions

What is CVE-2025-54881?

A Cross-Site Scripting (XSS) vulnerability exists in Mermaid versions 10.9.0-rc.1 to 11.9.0 due to improper handling of user-supplied input for sequence diagram labels, which is passed to innerHTML during element size calculation.

Is CVE-2025-54881 actively exploited?

No confirmed active exploitation of CVE-2025-54881 as of 2026-09-25.

How do I remediate CVE-2025-54881?

Priority: HIGH.

What systems are affected by CVE-2025-54881?

CVE-2025-54881 affects Diagrams; Element; Javascript.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Diagrams","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.