Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40437?format=api",
    "vulnerability_id": "VCID-1ra1-pgt2-3ubf",
    "summary": "Cross-site Scripting\nThere is a possible XSS vulnerability in Rack. Carefully crafted requests can impact the data returned by the `scheme` method on `Rack::Request`. Applications that expect the scheme to be limited to HTTP or HTTPS and do not escape the return value could be vulnerable to an XSS attack. Note that applications using the normal escaping mechanisms provided by Rails may not be impacted, but applications that bypass the escaping mechanisms, or do not use them may be vulnerable.",
    "aliases": [
        {
            "alias": "CVE-2018-16471"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57020?format=api",
            "purl": "pkg:gem/rack@1.6.11",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rack@1.6.11"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57008?format=api",
            "purl": "pkg:gem/rack@2.0.6",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rack@2.0.6"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57018?format=api",
            "purl": "pkg:gem/rack@1.6.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1ra1-pgt2-3ubf"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rack@1.6.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57019?format=api",
            "purl": "pkg:gem/rack@2.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1ra1-pgt2-3ubf"
                },
                {
                    "vulnerability": "VCID-bqpn-m2fh-9kab"
                },
                {
                    "vulnerability": "VCID-ebb6-b5tx-5bhf"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rack@2.0.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-16471",
            "reference_id": "CVE-2018-16471",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-16471"
        }
    ],
    "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": 79,
            "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
            "description": "The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users."
        },
        {
            "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-1ra1-pgt2-3ubf"
}