Retire is a tool for detecting use of vulnerable libraries
npm install retireCommand line scanner looking for use of known vulnerable js files and node modules in web projects and/or node projects.
npm install -g retire
``
Usage: retire [options]
Options:
-V, --version output the version number
-v, --verbose Show identified files (by default only vulnerable files are shown)
-c, --nocache Don't use local cache
--jspath
--path
--jsrepo
--cachedir
--proxy
--outputformat
--outputpath
--ignore
--ignorefile
--severity
Default: none
--exitwith Custom exit code (default: 13) when vulnerabilities are found`
--colors Enable color output (console output only)
--insecure Enable fetching remote jsrepo/noderepo files from hosts using an insecure or self-signed SSL (TLS) certificate
--ext
--cacert
--includeOsv Include OSV advisories in the output
--deep Deep scan (slower and experimental)
-h, --help display help for command
The depcheck output format mimics the output of OWASP Dependency Check, but lacks some information compared to OWASP Dependency Check, because that information is not in the repo.cyclonedx
The output format is based on based on the https://github.com/CycloneDX spec.
``
@qs # ignore this module regardless of location
node_modules/connect/node_modules/body-parser/node_modules/qs # ignore specific path
Due to a bug in ignore resolving, please upgrade to >= 1.1.3
`
[
{
"component": "jquery",
"identifiers" : { "issue": "2432"},
"justification" : "We dont call external resources with jQuery"
},
{
"component": "jquery",
"version" : "2.1.4",
"justification" : "We dont call external resources with jQuery"
},
{
"path" : "node_modules",
"justification" : "The node modules are only used for building - client side dependencies are using bower"
}
]
``
The source code and issue tracker can be found at https://github.com/RetireJS/retire.js