Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/471676?format=api",
    "purl": "pkg:npm/scratch-svg-renderer@0.2.0-prerelease.20180711180400",
    "type": "npm",
    "namespace": "",
    "name": "scratch-svg-renderer",
    "version": "0.2.0-prerelease.20180711180400",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/331015?format=api",
            "vulnerability_id": "VCID-dbaf-8yhv-wudb",
            "summary": "",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2020-7750",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.06179",
                            "scoring_system": "epss",
                            "scoring_elements": "0.9104",
                            "published_at": "2026-06-11T12:55:00Z"
                        },
                        {
                            "value": "0.06179",
                            "scoring_system": "epss",
                            "scoring_elements": "0.91071",
                            "published_at": "2026-06-12T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2020-7750"
                },
                {
                    "reference_url": "https://github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395aee90",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.6",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395aee90"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7750",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.6",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7750"
                },
                {
                    "reference_url": "https://snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.6",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497"
                },
                {
                    "reference_url": "https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/multiple/webapps/50079.txt",
                    "reference_id": "CVE-2020-7750",
                    "reference_type": "exploit",
                    "scores": [],
                    "url": "https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/multiple/webapps/50079.txt"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-j977-g5vj-j27g",
                    "reference_id": "GHSA-j977-g5vj-j27g",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-j977-g5vj-j27g"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/382146?format=api",
                    "purl": "pkg:npm/scratch-svg-renderer@0.2.0-prerelease.20201019174008",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-dbaf-8yhv-wudb"
                        },
                        {
                            "vulnerability": "VCID-dpby-3ryq-pqa9"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/scratch-svg-renderer@0.2.0-prerelease.20201019174008"
                }
            ],
            "aliases": [
                "CVE-2020-7750",
                "GHSA-j977-g5vj-j27g"
            ],
            "risk_score": 10.0,
            "exploitability": "2.0",
            "weighted_severity": "8.6",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-dbaf-8yhv-wudb"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/207309?format=api",
            "vulnerability_id": "VCID-dpby-3ryq-pqa9",
            "summary": "Cross-site Scripting in Scratch-Svg-Renderer",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2020-27428",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00328",
                            "scoring_system": "epss",
                            "scoring_elements": "0.56172",
                            "published_at": "2026-06-11T12:55:00Z"
                        },
                        {
                            "value": "0.00328",
                            "scoring_system": "epss",
                            "scoring_elements": "0.56291",
                            "published_at": "2026-06-12T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2020-27428"
                },
                {
                    "reference_url": "https://github.com/LLK/scratch-svg-renderer",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/LLK/scratch-svg-renderer"
                },
                {
                    "reference_url": "https://github.com/LLK/scratch-svg-renderer/commit/7c74ec7de3254143ec3c557677f5355a90a3d07f",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/LLK/scratch-svg-renderer/commit/7c74ec7de3254143ec3c557677f5355a90a3d07f"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27428",
                    "reference_id": "CVE-2020-27428",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27428"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-h3vq-wv8j-36gw",
                    "reference_id": "GHSA-h3vq-wv8j-36gw",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-h3vq-wv8j-36gw"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "CVE-2020-27428",
                "GHSA-h3vq-wv8j-36gw"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-dpby-3ryq-pqa9"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "10.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/scratch-svg-renderer@0.2.0-prerelease.20180711180400"
}