Skip to content

Commit 67d3472

Browse files
1 parent 973ada4 commit 67d3472

1 file changed

Lines changed: 34 additions & 5 deletions

File tree

advisories/unreviewed/2026/02/GHSA-cgmm-x5ww-q5cr/GHSA-cgmm-x5ww-q5cr.json renamed to advisories/github-reviewed/2026/02/GHSA-cgmm-x5ww-q5cr/GHSA-cgmm-x5ww-q5cr.json

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,40 @@
11
{
22
"schema_version": "1.4.0",
33
"id": "GHSA-cgmm-x5ww-q5cr",
4-
"modified": "2026-02-13T18:31:25Z",
4+
"modified": "2026-02-13T21:04:19Z",
55
"published": "2026-02-13T18:31:25Z",
66
"aliases": [
77
"CVE-2026-26226"
88
],
9+
"summary": "beautiful-mermaid contains an SVG attribute injection issue that can lead to cross-site scripting (XSS)",
910
"details": "beautiful-mermaid versions prior to 0.1.3 contain an SVG attribute injection issue that can lead to cross-site scripting (XSS) when rendering attacker-controlled Mermaid diagrams. User-controlled values from Mermaid style and classDef directives are interpolated into SVG attribute values without proper escaping, allowing crafted input to break out of an attribute context and inject arbitrary SVG elements/attributes into the rendered output. When the generated SVG is embedded in a web page, this can result in script execution in the context of the embedding origin.",
1011
"severity": [
1112
{
1213
"type": "CVSS_V4",
13-
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
14+
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "npm",
21+
"name": "beautiful-mermaid"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "0.1.3"
32+
}
33+
]
34+
}
35+
]
1436
}
1537
],
16-
"affected": [],
1738
"references": [
1839
{
1940
"type": "ADVISORY",
@@ -23,6 +44,14 @@
2344
"type": "WEB",
2445
"url": "https://github.com/lukilabs/beautiful-mermaid/pull/8"
2546
},
47+
{
48+
"type": "WEB",
49+
"url": "https://github.com/lukilabs/beautiful-mermaid/commit/68f3ab8c9658e7f4a3b749e06a6b96e4c3f55db1"
50+
},
51+
{
52+
"type": "PACKAGE",
53+
"url": "https://github.com/lukilabs/beautiful-mermaid"
54+
},
2655
{
2756
"type": "WEB",
2857
"url": "https://github.com/lukilabs/beautiful-mermaid/releases/tag/v0.1.3"
@@ -41,8 +70,8 @@
4170
"CWE-79"
4271
],
4372
"severity": "MODERATE",
44-
"github_reviewed": false,
45-
"github_reviewed_at": null,
73+
"github_reviewed": true,
74+
"github_reviewed_at": "2026-02-13T21:04:19Z",
4675
"nvd_published_at": "2026-02-13T17:16:14Z"
4776
}
4877
}

0 commit comments

Comments
 (0)