Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/300160?format=api",
    "purl": "pkg:composer/shopware/production@6.3.3.1",
    "type": "composer",
    "namespace": "shopware",
    "name": "production",
    "version": "6.3.3.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "6.3.5.3",
    "latest_non_vulnerable_version": "6.3.5.3",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/54321?format=api",
            "vulnerability_id": "VCID-j2bm-eex6-2ycw",
            "summary": "Exposure of .env if project root is configured as web root in shopware/production\nThe .env and other sensitive files can be leaked if the project root and not `/public` is configured as the web root.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-3pcr-4982-548m",
                    "reference_id": "GHSA-3pcr-4982-548m",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-3pcr-4982-548m"
                },
                {
                    "reference_url": "https://github.com/shopware/platform/security/advisories/GHSA-3pcr-4982-548m",
                    "reference_id": "GHSA-3pcr-4982-548m",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/shopware/platform/security/advisories/GHSA-3pcr-4982-548m"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/80282?format=api",
                    "purl": "pkg:composer/shopware/production@6.3.5%2B3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/shopware/production@6.3.5%252B3"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/300166?format=api",
                    "purl": "pkg:composer/shopware/production@6.3.5.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/shopware/production@6.3.5.3"
                }
            ],
            "aliases": [
                "GHSA-3pcr-4982-548m",
                "GMS-2021-56"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-j2bm-eex6-2ycw"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "3.1",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/shopware/production@6.3.3.1"
}