Description
Rendering an untrusted architecture-beta diagram lets the diagram author write an arbitrary property with the value horizontal or vertical onto Object.prototype. A group id of __proto__ is accepted as a valid parent.
Recommendation
Update the mermaid package to the latest compatible version. Followings are version details:
- Affected version(s): >= 11.5.0, < 11.16.1
- Patched version(s): 11.16.1
References
Could your website be exposed too?
SmartScanner can check your website for Mermaid Architecture diagrams are vulnerable to prototype pollution and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Mermaid radar diagrams are vulnerable to DoS - CVE-2026-71439
- jsondiffpatch patch APIs are vulnerable to prototype pollution - CVE-2026-8657
- Mermaid Gantt Charts are vulnerable to an Infinite Loop DoS - CVE-2026-41150
- dottie is vulnerable to Prototype Pollution bypass via non-first path segments in set() and transform() - CVE-2026-27837


