Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/66408?format=api",
    "purl": "pkg:npm/%40pnpm/linux-arm64@8.0.0",
    "type": "npm",
    "namespace": "@pnpm",
    "name": "linux-arm64",
    "version": "8.0.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "8.6.8",
    "latest_non_vulnerable_version": "8.6.8",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/45763?format=api",
            "vulnerability_id": "VCID-q8ww-9xsn-mbhb",
            "summary": "pnpm incorrectly parses tar archives relative to specification\npnpm is a package manager. It is possible to construct a tarball that, when installed via npm or parsed by the registry is safe, but when installed via pnpm is malicious, due to how pnpm parses tar archives. This can result in a package that appears safe on the npm registry or when installed via npm being replaced with a compromised or malicious version when installed via pnpm. This issue has been patched in version(s) 7.33.4 and 8.6.8.",
            "references": [
                {
                    "reference_url": "https://github.com/pnpm/pnpm",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/pnpm/pnpm"
                },
                {
                    "reference_url": "https://github.com/pnpm/pnpm/releases/tag/v7.33.4",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/pnpm/pnpm/releases/tag/v7.33.4"
                },
                {
                    "reference_url": "https://github.com/pnpm/pnpm/releases/tag/v8.6.8",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/pnpm/pnpm/releases/tag/v8.6.8"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-37478",
                    "reference_id": "CVE-2023-37478",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-37478"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-5r98-f33j-g8h7",
                    "reference_id": "GHSA-5r98-f33j-g8h7",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-5r98-f33j-g8h7"
                },
                {
                    "reference_url": "https://github.com/pnpm/pnpm/security/advisories/GHSA-5r98-f33j-g8h7",
                    "reference_id": "GHSA-5r98-f33j-g8h7",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/pnpm/pnpm/security/advisories/GHSA-5r98-f33j-g8h7"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/66410?format=api",
                    "purl": "pkg:npm/%40pnpm/linux-arm64@8.6.8",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540pnpm/linux-arm64@8.6.8"
                }
            ],
            "aliases": [
                "CVE-2023-37478",
                "GHSA-5r98-f33j-g8h7"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-q8ww-9xsn-mbhb"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540pnpm/linux-arm64@8.0.0"
}