Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/61784?format=api",
    "purl": "pkg:composer/moodle/moodle@1.6.2",
    "type": "composer",
    "namespace": "moodle",
    "name": "moodle",
    "version": "1.6.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "1.8.5",
    "latest_non_vulnerable_version": "5.1.2",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "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.",
            "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"
                }
            ],
            "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"
                }
            ],
            "aliases": [
                "CVE-2006-4936",
                "GHSA-h9w8-4376-j344"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-36g7-8xq4-yfcx"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@1.6.2"
}