Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38962?format=api",
    "vulnerability_id": "VCID-89zn-s5xk-1fae",
    "summary": "Uncontrolled Resource Consumption\nAn attacker that is able to make an HTTP request using a specially crafted cookie may cause the application to consume an excessive amount of CPU.",
    "aliases": [
        {
            "alias": "CVE-2017-15010"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/54165?format=api",
            "purl": "pkg:npm/tough-cookie@2.3.3",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tough-cookie@2.3.3"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/54287?format=api",
            "purl": "pkg:npm/tough-cookie@2.3.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-89zn-s5xk-1fae"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tough-cookie@2.3.2"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/salesforce/tough-cookie/issues/92",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/salesforce/tough-cookie/issues/92"
        },
        {
            "reference_url": "http://www.securityfocus.com/bid/101185",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://www.securityfocus.com/bid/101185"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-15010",
            "reference_id": "CVE-2017-15010",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-15010"
        }
    ],
    "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": 400,
            "name": "Uncontrolled Resource Consumption",
            "description": "The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources."
        },
        {
            "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-89zn-s5xk-1fae"
}