Description
An attacker is able to inject arbitrary CSS into the generated graph allowing them to change the styling of elements outside of the generated graph, and potentially exfiltrate sensitive information by using specially crafted CSS selectors.
Recommendation
Update the mermaid package to the latest compatible version. Followings are version details:
- Affected version(s): >= 8.0.0, < 9.1.2
- Patched version(s): 9.1.2
References
Could your website be exposed too?
SmartScanner can check your website for Possible inject arbitrary `CSS` into the generated graph affecting the container HTML and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Clipboard feature vulnerability allowing to inject arbitrary HTML into the editor using paste functionality - CVE-2021-32809
- Joplin is vulnerable to arbitrary code execution - CVE-2022-35131
- jQuery UI vulnerable to XSS when refreshing a checkboxradio with an HTML-like initial text label - CVE-2022-31160
- OpenZeppelin Contracts Wizard: Line terminators in info.securityContact / info.license can inject lines into generated s - Vulnerability


