Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/52193?format=api",
    "purl": "pkg:composer/thelia/backoffice-default-template@2.1.0",
    "type": "composer",
    "namespace": "thelia",
    "name": "backoffice-default-template",
    "version": "2.1.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.1.2",
    "latest_non_vulnerable_version": "2.1.2",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37818?format=api",
            "vulnerability_id": "VCID-7mbc-nv1j-rudb",
            "summary": "Cross-site Scripting\nXSS injection in backoffice.",
            "references": [
                {
                    "reference_url": "https://thelia.net/version-2-1-2-with-security-fix",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://thelia.net/version-2-1-2-with-security-fix"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52194?format=api",
                    "purl": "pkg:composer/thelia/backoffice-default-template@2.1.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/thelia/backoffice-default-template@2.1.2"
                }
            ],
            "aliases": [
                "GMS-2015-76"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-7mbc-nv1j-rudb"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/thelia/backoffice-default-template@2.1.0"
}