Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/59382?format=api",
    "purl": "pkg:composer/showdoc/showdoc@2.8.3",
    "type": "composer",
    "namespace": "showdoc",
    "name": "showdoc",
    "version": "2.8.3",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.8.5",
    "latest_non_vulnerable_version": "2.10.4",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41627?format=api",
            "vulnerability_id": "VCID-ddu3-nt5e-h7gw",
            "summary": "Unrestricted Upload of File with Dangerous Type\nShowDoc ihas a file upload vulnerability, where attackers can use the vulnerability to obtain server permissions.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41745",
                    "reference_id": "CVE-2021-41745",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41745"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/59383?format=api",
                    "purl": "pkg:composer/showdoc/showdoc@2.8.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/showdoc/showdoc@2.8.5"
                }
            ],
            "aliases": [
                "CVE-2021-41745"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ddu3-nt5e-h7gw"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/showdoc/showdoc@2.8.3"
}