Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/3659?format=api",
    "vulnerability_id": "VCID-3c4z-fnu7-h3af",
    "summary": "directory traversal",
    "aliases": [
        {
            "alias": "CVE-2021-42013"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1524?format=api",
            "purl": "pkg:alpm/archlinux/apache@2.4.51-1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:alpm/archlinux/apache@2.4.51-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/75018?format=api",
            "purl": "pkg:apache/httpd@2.4.51",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1dng-z415-n3cp"
                },
                {
                    "vulnerability": "VCID-vztc-xrcf-x7bk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apache/httpd@2.4.51"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1523?format=api",
            "purl": "pkg:alpm/archlinux/apache@2.4.50-1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3c4z-fnu7-h3af"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:alpm/archlinux/apache@2.4.50-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/75016?format=api",
            "purl": "pkg:apache/httpd@2.4.49",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3c4z-fnu7-h3af"
                },
                {
                    "vulnerability": "VCID-fzbd-mhtw-eybp"
                },
                {
                    "vulnerability": "VCID-p4z4-22k5-kqam"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apache/httpd@2.4.49"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/75017?format=api",
            "purl": "pkg:apache/httpd@2.4.50",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3c4z-fnu7-h3af"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apache/httpd@2.4.50"
        }
    ],
    "references": [
        {
            "reference_url": "https://security.archlinux.org/ASA-202110-1",
            "reference_id": "ASA-202110-1",
            "reference_type": "",
            "scores": [],
            "url": "https://security.archlinux.org/ASA-202110-1"
        },
        {
            "reference_url": "https://security.archlinux.org/AVG-2450",
            "reference_id": "AVG-2450",
            "reference_type": "",
            "scores": [
                {
                    "value": "Critical",
                    "scoring_system": "archlinux",
                    "scoring_elements": ""
                }
            ],
            "url": "https://security.archlinux.org/AVG-2450"
        },
        {
            "reference_url": "https://httpd.apache.org/security/json/CVE-2021-42013.json",
            "reference_id": "CVE-2021-42013",
            "reference_type": "",
            "scores": [
                {
                    "value": "critical",
                    "scoring_system": "apache_httpd",
                    "scoring_elements": ""
                }
            ],
            "url": "https://httpd.apache.org/security/json/CVE-2021-42013.json"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 22,
            "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
            "description": "The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory."
        }
    ],
    "exploits": [],
    "severity_range_score": "9.0 - 10.0",
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-3c4z-fnu7-h3af"
}