Possible inject arbitrary `CSS` into the generated graph affecting the container HTML
- Severity:
- Medium
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
Related Issues
- Joplin is vulnerable to arbitrary code execution - CVE-2022-35131
- Raneto Denial of Service via crafted payload injected into `Search` parameter - CVE-2022-35142
- nadesiko3 allows remote attacker to inject invalid value to decodeURIComponent of nako3edit - CVE-2022-41777
- jquery-validation Regular Expression Denial of Service due to arbitrary input to url2 method - CVE-2022-31147
You might also like:
- Tags:
- npm
- mermaid
Anything's wrong? Let us know Last updated on July 21, 2023


