Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/458856?format=api",
    "purl": "pkg:npm/lazysizes@5.0.0",
    "type": "npm",
    "namespace": "",
    "name": "lazysizes",
    "version": "5.0.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "5.2.1-rc1",
    "latest_non_vulnerable_version": "5.2.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/206911?format=api",
            "vulnerability_id": "VCID-2pjz-af2h-pkcb",
            "summary": "Cross-site scripting in lazysizes",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2020-7642",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00341",
                            "scoring_system": "epss",
                            "scoring_elements": "0.57287",
                            "published_at": "2026-06-12T12:55:00Z"
                        },
                        {
                            "value": "0.00341",
                            "scoring_system": "epss",
                            "scoring_elements": "0.57169",
                            "published_at": "2026-06-11T12:55:00Z"
                        },
                        {
                            "value": "0.00341",
                            "scoring_system": "epss",
                            "scoring_elements": "0.57294",
                            "published_at": "2026-06-14T12:55:00Z"
                        },
                        {
                            "value": "0.00341",
                            "scoring_system": "epss",
                            "scoring_elements": "0.57302",
                            "published_at": "2026-06-13T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2020-7642"
                },
                {
                    "reference_url": "https://github.com/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.4",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/aFarkas/lazysizes/commit/3720ab8262552d4e063a38d8492f9490a231fd48"
                },
                {
                    "reference_url": "https://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.4",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://snyk.io/vuln/SNYK-JS-LAZYSIZES-567144"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7642",
                    "reference_id": "CVE-2020-7642",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.4",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7642"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-hg2p-2cvq-4ppv",
                    "reference_id": "GHSA-hg2p-2cvq-4ppv",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-hg2p-2cvq-4ppv"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/18311?format=api",
                    "purl": "pkg:npm/lazysizes@5.2.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lazysizes@5.2.1"
                }
            ],
            "aliases": [
                "CVE-2020-7642",
                "GHSA-hg2p-2cvq-4ppv"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-2pjz-af2h-pkcb"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/205636?format=api",
            "vulnerability_id": "VCID-zuxv-8cyd-vbca",
            "summary": "Cross-Site Scripting in lazysizes",
            "references": [
                {
                    "reference_url": "https://github.com/aFarkas/lazysizes/issues/764",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/aFarkas/lazysizes/issues/764"
                },
                {
                    "reference_url": "https://www.npmjs.com/advisories/1493",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.npmjs.com/advisories/1493"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-w4vp-3mq7-7v82",
                    "reference_id": "GHSA-w4vp-3mq7-7v82",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-w4vp-3mq7-7v82"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/17307?format=api",
                    "purl": "pkg:npm/lazysizes@5.2.1-rc1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lazysizes@5.2.1-rc1"
                }
            ],
            "aliases": [
                "GHSA-w4vp-3mq7-7v82",
                "GMS-2020-745"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-zuxv-8cyd-vbca"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lazysizes@5.0.0"
}