Vulnerability Instance
Lookup for vulnerabilities affecting packages.
GET /api/vulnerabilities/340400?format=api
{ "url": "http://public2.vulnerablecode.io/api/vulnerabilities/340400?format=api", "vulnerability_id": "VCID-fnrc-et2c-y7ha", "summary": "Malicious Package in test-module-a", "aliases": [ { "alias": "GHSA-76xq-58hj-vwm2" }, { "alias": "GMS-2020-535" } ], "fixed_packages": [], "affected_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/445405?format=api", "purl": "pkg:npm/test-module-a@0.0.1-security", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-fnrc-et2c-y7ha" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/test-module-a@0.0.1-security" }, { "url": "http://public2.vulnerablecode.io/api/packages/75973?format=api", "purl": "pkg:npm/test-module-a@0.0.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-fnrc-et2c-y7ha" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/test-module-a@0.0.0" } ], "references": [ { "reference_url": "https://www.npmjs.com/advisories/929", "reference_id": "", "reference_type": "", "scores": [ { "value": "9.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" }, { "value": "CRITICAL", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://www.npmjs.com/advisories/929" }, { "reference_url": "https://github.com/advisories/GHSA-76xq-58hj-vwm2", "reference_id": "GHSA-76xq-58hj-vwm2", "reference_type": "", "scores": [ { "value": "CRITICAL", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-76xq-58hj-vwm2" } ], "weaknesses": [ { "cwe_id": 506, "name": "Embedded Malicious Code", "description": "The product contains code that appears to be malicious in nature." }, { "cwe_id": 1035, "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017." }, { "cwe_id": 937, "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013." } ], "exploits": [], "severity_range_score": "9.0 - 10.0", "exploitability": "0.5", "weighted_severity": "9.0", "risk_score": 4.5, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-fnrc-et2c-y7ha" }