Retire.js Integration with DefectDojo
Retire.js is an open-source JavaScript vulnerability scanner that detects the use of known vulnerable JavaScript libraries and Node.js modules in web applications and projects by scanning JavaScript files, comparing them against a continuously updated vulnerability repository, and identifying components with security flaws referenced in OWASP Top 10 "Using Components with Known Vulnerabilities." The tool integrates into development workflows through command-line interfaces, Grunt/Gulp task runners, browser extensions, Burp Suite plugins, and OWASP ZAP add-ons to provide automated detection of insecure library versions with SBOM generation capabilities, enabling developers and security teams to identify and remediate vulnerable dependencies throughout the software development lifecycle.
Data Granularity: What Gets Imported
The following fields are captured from Retire.js results and surfaced in DefectDojo findings:
| Field | Source | Notes |
|---|---|---|
| Title | Finding name from the scan | Matched to the tool's own naming |
| Severity | Critical / High / Medium / Low / Info | Mapped from the tool's own severity scale |
| Description | Finding detail from the report | Includes what the issue is and why it matters |
| Mitigation | Remediation guidance | Where the tool provides it |
Importing Into DefectDojo
Use the DefectDojo import API to create a new Test under the relevant Engagement for your product. The request body:
{
"scan_type": "Retire.js",
"engagement": "<engagement-id>",
"file": "results.json"
}