Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/57035?format=api",
    "purl": "pkg:composer/phpmailer/phpmailer@6.0.0",
    "type": "composer",
    "namespace": "phpmailer",
    "name": "phpmailer",
    "version": "6.0.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "6.0.6",
    "latest_non_vulnerable_version": "6.0.6",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40456?format=api",
            "vulnerability_id": "VCID-3p76-2t3z-kycu",
            "summary": "Object injection\nPHPMailer is vulnerable to an object injection attack.",
            "references": [
                {
                    "reference_url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.27",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.27"
                },
                {
                    "reference_url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v6.0.6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v6.0.6"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-19296",
                    "reference_id": "CVE-2018-19296",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-19296"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/57037?format=api",
                    "purl": "pkg:composer/phpmailer/phpmailer@6.0.6",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/phpmailer/phpmailer@6.0.6"
                }
            ],
            "aliases": [
                "CVE-2018-19296"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-3p76-2t3z-kycu"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/phpmailer/phpmailer@6.0.0"
}