Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40562?format=api",
    "vulnerability_id": "VCID-m1hf-fjyz-rbdp",
    "summary": "Cross-site Scripting\nCross-site scripting (XSS) vulnerability in the PHP League CommonMark library allows remote attackers to insert unsafe URLs into HTML (even if `allow_unsafe_links` is false) via a newline character (e.g., writing `javascript` as `javascri%0apt`).",
    "aliases": [
        {
            "alias": "CVE-2018-20583"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57248?format=api",
            "purl": "pkg:composer/league/commonmark@0.18.1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/league/commonmark@0.18.1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57247?format=api",
            "purl": "pkg:composer/league/commonmark@0.15.6",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-m1hf-fjyz-rbdp"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/league/commonmark@0.15.6"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/thephpleague/commonmark/issues/337",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/thephpleague/commonmark/issues/337"
        }
    ],
    "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-m1hf-fjyz-rbdp"
}