Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- The skill claims to provide '安全语法规范', but its HTML template explicitly initializes Mermaid with `securityLevel: 'loose'`, which weakens Mermaid's built-in protections when rendering untrusted diagram content. In this skill, Mermaid code is user-provided and rendered inside a browser, so loose mode can increase exposure to script/HTML injection or unsafe link handling, making the contradiction materially dangerous rather than just documentation drift.
