Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41072?format=api",
    "vulnerability_id": "VCID-ggqu-n1kv-tbfp",
    "summary": "Relative Path Traversal in localhost-now.",
    "aliases": [
        {
            "alias": "GHSA-73cw-jxmm-qpgh"
        },
        {
            "alias": "GMS-2019-132"
        }
    ],
    "fixed_packages": [],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/6650?format=api",
            "purl": "pkg:npm/localhost-now@1.0.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ggqu-n1kv-tbfp"
                },
                {
                    "vulnerability": "VCID-q7cw-gc4p-xkg9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/localhost-now@1.0.2"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/DCKT/localhost-now/blob/master/lib/app.js#L17",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/DCKT/localhost-now/blob/master/lib/app.js#L17"
        },
        {
            "reference_url": "https://hackerone.com/reports/329837",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://hackerone.com/reports/329837"
        },
        {
            "reference_url": "https://nodesecurity.io/advisories/655",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://nodesecurity.io/advisories/655"
        },
        {
            "reference_url": "https://www.npmjs.com/advisories/655",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.npmjs.com/advisories/655"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-73cw-jxmm-qpgh",
            "reference_id": "GHSA-73cw-jxmm-qpgh",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-73cw-jxmm-qpgh"
        }
    ],
    "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": 352,
            "name": "Cross-Site Request Forgery (CSRF)",
            "description": "The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request."
        },
        {
            "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-ggqu-n1kv-tbfp"
}