T08 · Insecure Dependencies
- Location
scripts/install.sh:19- Finding
Unpinned Global Installation of Mermaid CLI
- Content
View full analysis
- Remediation
View remediation
``` 2. Prefer a project-local installation rather than `npm install -g`. 3. Commit a lockfile and use `npm ci` so dependency resolution is reproducible. 4. Review and pin transitive dependencies through the lockfile. 5. Verify npm provenance and package integrity before installation. 6. Run installation as an unprivileged user and explicitly warn users not to invoke the installer with `sudo`. 7. Update `SKILL.md` and `README.md` so they no longer recommend the unpinned global command. ]]>
