Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/43159?format=api",
    "vulnerability_id": "VCID-36g7-8xq4-yfcx",
    "summary": "Improper Input Validation\nMoodle before 1.6.2 does not properly validate the module instance id when creating a course module object, which has unspecified impact and remote attack vectors.",
    "aliases": [
        {
            "alias": "CVE-2006-4936"
        },
        {
            "alias": "GHSA-h9w8-4376-j344"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/61784?format=api",
            "purl": "pkg:composer/moodle/moodle@1.6.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@1.6.2"
        }
    ],
    "affected_packages": [],
    "references": [
        {
            "reference_url": "https://github.com/moodle/moodle/commit/0f69811d980002709668a2001477a811bfee4bab",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/moodle/moodle/commit/0f69811d980002709668a2001477a811bfee4bab"
        },
        {
            "reference_url": "https://web.archive.org/web/20061230195936/http://docs.moodle.org/en/Release_notes#Moodle_1.6.2",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://web.archive.org/web/20061230195936/http://docs.moodle.org/en/Release_notes#Moodle_1.6.2"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2006-4936",
            "reference_id": "CVE-2006-4936",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2006-4936"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-h9w8-4376-j344",
            "reference_id": "GHSA-h9w8-4376-j344",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-h9w8-4376-j344"
        }
    ],
    "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": 20,
            "name": "Improper Input Validation",
            "description": "The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly."
        },
        {
            "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-36g7-8xq4-yfcx"
}