Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40901?format=api",
    "vulnerability_id": "VCID-7vkv-m573-ubfa",
    "summary": "Cross-site Scripting\nThe `f:validateButton` form control for the Jenkins UI did not properly escape job URLs resulting in a cross-site scripting (XSS) vulnerability exploitable by users with the ability to control job names.",
    "aliases": [
        {
            "alias": "CVE-2019-1003050"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57767?format=api",
            "purl": "pkg:maven/org.jenkins-ci.main/jenkins-core@2.172",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.jenkins-ci.main/jenkins-core@2.172"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57765?format=api",
            "purl": "pkg:maven/org.jenkins-ci.main/jenkins-core@2.164.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-7vkv-m573-ubfa"
                },
                {
                    "vulnerability": "VCID-uss9-7vj8-nffq"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.jenkins-ci.main/jenkins-core@2.164.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57766?format=api",
            "purl": "pkg:maven/org.jenkins-ci.main/jenkins-core@2.171",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-7vkv-m573-ubfa"
                },
                {
                    "vulnerability": "VCID-uss9-7vj8-nffq"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.jenkins-ci.main/jenkins-core@2.171"
        }
    ],
    "references": [
        {
            "reference_url": "https://jenkins.io/security/advisory/2019-04-10/#SECURITY-1327",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://jenkins.io/security/advisory/2019-04-10/#SECURITY-1327"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2019-1003050",
            "reference_id": "CVE-2019-1003050",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-1003050"
        }
    ],
    "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-7vkv-m573-ubfa"
}