Lookup for vulnerabilities affecting packages.

GET /api/vulnerabilities/38733?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38733?format=api",
    "vulnerability_id": "VCID-c3pt-sp2j-3ub5",
    "summary": "Hijacked Environment Variables\n`nodecaffe` was a malicious module published with the intent to hijack environment variables. It has been unpublished by npm.",
    "aliases": [
        {
            "alias": "GMS-2017-151"
        }
    ],
    "fixed_packages": [],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53882?format=api",
            "purl": "pkg:npm/nodecaffe@0.0.0-alpha",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-c3pt-sp2j-3ub5"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/nodecaffe@0.0.0-alpha"
        }
    ],
    "references": [],
    "weaknesses": [
        {
            "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": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-c3pt-sp2j-3ub5"
}