SCA: security update for mermaid (GHSA-87f9-hvmw-gh4p)

medium Tenable Self-Hosted Container Security Plugin ID 441743

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts.
Prior to 10.9.6 and 11.15.0, Mermaid's default configuration allows injecting CSS that applies outside of
the Mermaid diagram via the fontFamily, themeCSS, and altFontFamily configuration options. The injected
CSS exploits stylis's & (scope reference) handling. :not(&) escapes the #mermaid-xxx automatic scoping,
applying styles to all page elements. Global at-rules (@font-face, @keyframes, @counter-style) are also
injectable as stylis hoists them to top level. This allows page defacement and DOM attribute exfiltration
via CSS :has() selectors. This vulnerability is fixed in 10.9.6 and 11.15.0. (CVE-2026-41159)

Solution

Update the mermaid library and its related packages to version 10.9.6 or later.

See Also

https://github.com/advisories/GHSA-87f9-hvmw-gh4p

Plugin Details

Severity: Medium

ID: 441743

Version: Revision 1.9

Type: Local

Family: SCA Checks

Published: 5/12/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2026-41159

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.6

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 5.3

Threat Score: 1.3

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/11/2026

Vulnerability Publication Date: 5/11/2026

Reference Information

CVE: CVE-2026-41159

cwe: CWE-94