Retire.js finds JavaScript and Node dependencies with known vulnerabilities and can emit CycloneDX SBOM output from scans.
Overview
Retire.js helps developers detect JavaScript library versions that have published security issues, including libraries checked into source control outside package manifests. It was created in response to OWASP guidance on using components with known vulnerabilities.
The same engine runs as a command-line scanner for web or Node projects, as Chrome and Firefox extensions that inspect visited sites, and through integrations such as Burp plugins, ZAP add-ons, deprecated Grunt and Gulp tasks, and a headless site scanner. The CLI can exit with a non-zero code when vulnerabilities are found unless overridden.
SBOM export supports CycloneDX in XML and several JSON variants, including versions with a vulnerabilities section. Browser extensions surface detections in the toolbar, developer console, and an analyst console with search and JSON export.
Users run the CLI from an application directory after installing Node. Extensions scan loaded libraries on pages and flag insecure references to site visitors and developers.
Key features
- CLI web and Node scanning
- Chrome extension scanning
- Firefox extension scanning
- CycloneDX SBOM generation
- Burp and ZAP integrations
- Headless site scanner option
- Configurable exit codes
- Vulnerability advisory lookup
Use cases
- Auditing frontend library versions
- CI checks for vulnerable JS deps
- Generating SBOMs from scans
- Browser-based library inspection