Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42997?format=api",
    "vulnerability_id": "VCID-9sw6-5wdd-5qf8",
    "summary": "Improper Link Resolution Before File Access ('Link Following')\nHadoop 1.0.3 contains a symlink vulnerability.",
    "aliases": [
        {
            "alias": "CVE-2012-2945"
        },
        {
            "alias": "GHSA-v5c9-98f7-2h54"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/61529?format=api",
            "purl": "pkg:maven/org.apache.hadoop/hadoop-main@1.0.4",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.hadoop/hadoop-main@1.0.4"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/61528?format=api",
            "purl": "pkg:maven/org.apache.hadoop/hadoop-main@1.0.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-9sw6-5wdd-5qf8"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.hadoop/hadoop-main@1.0.3"
        }
    ],
    "references": [
        {
            "reference_url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535861",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535861"
        },
        {
            "reference_url": "https://seclists.org/fulldisclosure/2012/Jul/3",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://seclists.org/fulldisclosure/2012/Jul/3"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2012-2945",
            "reference_id": "CVE-2012-2945",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2012-2945"
        },
        {
            "reference_url": "https://security-tracker.debian.org/tracker/CVE-2012-2945",
            "reference_id": "CVE-2012-2945",
            "reference_type": "",
            "scores": [],
            "url": "https://security-tracker.debian.org/tracker/CVE-2012-2945"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-v5c9-98f7-2h54",
            "reference_id": "GHSA-v5c9-98f7-2h54",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-v5c9-98f7-2h54"
        }
    ],
    "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": 59,
            "name": "Improper Link Resolution Before File Access ('Link Following')",
            "description": "The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource."
        },
        {
            "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-9sw6-5wdd-5qf8"
}