This document describes how AetherMint scans for dependency vulnerabilities, where to find results, and how to respond to findings.
Three complementary tools cover the full dependency surface:
| Tool | Scope | Purpose |
|---|---|---|
npm audit |
JS/TS (root, backend, frontend) | Detect known vulnerabilities |
cargo audit |
Rust contracts | Match against RustSec advisory database |
| Trivy (filesystem) | All languages + containers | Comprehensive vulnerability scanning |
Trivy results can be viewed in your local scan output.
Run scans locally to check for vulnerabilities:
Run npm audit to check for known vulnerabilities. Critical vulnerabilities should be addressed promptly. Lower-severity findings can be reviewed and prioritized.
To review findings locally:
# Full report (all severities)
npm audit --workspaces
# Specific workspace
npm audit -w backend
npm audit -w frontendAny matched advisory in the RustSec Advisory Database should be reviewed and addressed. To check locally:
cd contracts
cargo audit- Check the advisory details to identify the affected package.
- Update the package manually:
npm audit fix -w backend # auto-fix where possible npm audit fix -w frontend - For vulnerabilities with no upstream fix yet, add an
npm auditoverride in the relevantpackage.json:Document the override with a comment and a link to the advisory."overrides": { "affected-package": ">=safe-version" }
- Check
cargo auditoutput for the RUSTSEC advisory ID and affected crate. - Update the crate version in
contracts/Cargo.tomlif a patched version is available. - If no fix is available, add an ignore entry to
contracts/.cargo/audit.toml:Tracked in: open a GitHub Issue with the[advisories] ignore = ["RUSTSEC-YYYY-NNNN"] # Link: https://rustsec.org/advisories/RUSTSEC-YYYY-NNNN
securitylabel.
Trivy results identify vulnerabilities in your codebase. Review and address findings promptly.
Dependencies should be reviewed and updated regularly. Check for vulnerabilities using the local scanning commands above.
# npm – all workspaces
npm audit --workspaces --include-workspace-root
# npm – specific workspace
npm audit -w backend
npm audit -w frontend
# Rust
cd contracts && cargo audit
# Trivy (requires trivy CLI)
trivy fs .Run vulnerability scans locally on a regular basis to stay on top of dependency issues.
Security issues: security@aetheredu.xyz (see SECURITY.md)