Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/210441?format=api",
    "purl": "pkg:composer/amphp/artax@1.0.5",
    "type": "composer",
    "namespace": "amphp",
    "name": "artax",
    "version": "1.0.5",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.0.6",
    "latest_non_vulnerable_version": "2.0.6",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38588?format=api",
            "vulnerability_id": "VCID-ksam-dbjr-8ugw",
            "summary": "Cookie leakage, non-restricted cookie acceptance\nCookies of `foo.bar.example.com` are leaked to foo.bar. Additionally, any site can set cookies for any other site.",
            "references": [
                {
                    "reference_url": "https://github.com/amphp/artax/releases/tag/v2.0.6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/amphp/artax/releases/tag/v2.0.6"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/53538?format=api",
                    "purl": "pkg:composer/amphp/artax@2.0.6",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/amphp/artax@2.0.6"
                }
            ],
            "aliases": [
                "GMS-2017-131"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ksam-dbjr-8ugw"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38592?format=api",
            "vulnerability_id": "VCID-yb95-bbrp-n7da",
            "summary": "Cookie leakage to wrong origins and non-restricted cookie acceptance",
            "references": [
                {
                    "reference_url": "https://github.com/amphp/artax/releases/tag/v2.0.6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/amphp/artax/releases/tag/v2.0.6"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/53541?format=api",
                    "purl": "pkg:composer/amphp/artax@1.0.6",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/amphp/artax@1.0.6"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/53538?format=api",
                    "purl": "pkg:composer/amphp/artax@2.0.6",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/amphp/artax@2.0.6"
                }
            ],
            "aliases": [
                "GMS-2017-335"
            ],
            "risk_score": null,
            "exploitability": "0.5",
            "weighted_severity": "0.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-yb95-bbrp-n7da"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/amphp/artax@1.0.5"
}