Yarn Integration with DefectDojo
Yarn is a fast and reliable JavaScript package manager that includes built-in security auditing capabilities to identify known vulnerabilities in project dependencies by scanning both direct and transitive packages against security databases such as the npm registry and National Vulnerability Database. The tool performs comprehensive dependency scanning and classifies vulnerabilities by severity levels (low, moderate, high, critical) to help development teams prioritize and remediate security issues in their JavaScript and Node.js projects throughout the software development lifecycle.
Data Granularity: What Gets Imported
The following fields are captured from Yarn 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": "Yarn",
"engagement": "<engagement-id>",
"file": "results.json"
}