CVE-2021-43861
HIGH7.2EPSS 0.49%Incorrect sanitisation function leads to `XSS` in mermaid
發布日:2022/1/6修改日:2026/3/13
描述
### Impact Malicious diagrams can contain javascript code that can be run at diagram readers machines. ### Patches The users should upgrade to version 8.13.8 ### Workarounds You need to upgrade in order to avoid this issue.
受影響套件(2)
- Debian/node-mermaidfrom 0, < 8.7.0+ds+~cs27.17.17-3+deb11u2
- npm/mermaidfrom 0, < 8.13.8
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
參考連結(6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-43861
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-43861
- PATCHhttps://github.com/mermaid-js/mermaid
- WEBhttps://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83
- WEBhttps://github.com/mermaid-js/mermaid/releases/tag/8.13.8
- WEBhttps://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6v