Retire.js is a scanner that detects the use of JavaScript libraries with known vulnerabilities and can generate a software bill of materials of the libraries it finds.
The tool addresses the problem of identifying outdated or insecure JavaScript dependencies in projects. It works by scanning your codebase to locate JavaScript libraries and cross-referencing them against a database of known vulnerabilities. This approach allows developers to discover security risks in their dependency chains without requiring manual tracking of vulnerability disclosures.
Retire.js suits projects of any size that depend on third-party JavaScript libraries and need continuous visibility into their security posture. It is particularly valuable for teams that want automated vulnerability detection integrated into their build pipeline or development workflow. The tool is available as a command-line scanner, a Grunt plugin, and as browser extensions for Chrome and Firefox, making it adaptable to different development environments. The SBOM generation capability provides additional value for organizations that need to document their software composition for compliance or supply chain management purposes.
The project maintains an active scanner with regular updates to its vulnerability database. Development activity shows consistent engagement with bug reports and feature requests, indicating responsive maintenance. The codebase receives ongoing improvements and refinements to detection accuracy and tool functionality.