GHSA-W32G-5HQP-GG6Q
Vulnerability from github – Published: 2020-09-02 15:41 – Updated: 2021-09-27 13:34
VLAI?
Summary
Cross-Site Scripting in mermaid
Details
Versions of mermaid prior to 8.2.3 are vulnerable to Cross-Site Scripting. If malicious input such as A["<img src=invalid onerror=alert('XSS')></img>"] is provided to the application, it will execute the code instead of rendering it as text due to improper output encoding.
Recommendation
Upgrade to version 8.2.3 or later
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "mermaid"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8.2.3"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:34:30Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"details": "Versions of `mermaid` prior to 8.2.3 are vulnerable to Cross-Site Scripting. If malicious input such as `A[\"\u003cimg src=invalid onerror=alert(\u0027XSS\u0027)\u003e\u003c/img\u003e\"] ` is provided to the application, it will execute the code instead of rendering it as text due to improper output encoding.\n\n\n## Recommendation\n\nUpgrade to version 8.2.3 or later",
"id": "GHSA-w32g-5hqp-gg6q",
"modified": "2021-09-27T13:34:07Z",
"published": "2020-09-02T15:41:41Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/knsv/mermaid/issues/847"
},
{
"type": "PACKAGE",
"url": "https://github.com/knsv/mermaid"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/751"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "Cross-Site Scripting in mermaid"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…