Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/488738?format=api",
    "purl": "pkg:npm/%40theia/messages@0.4.0-next.eb580907",
    "type": "npm",
    "namespace": "@theia",
    "name": "messages",
    "version": "0.4.0-next.eb580907",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.0.0",
    "latest_non_vulnerable_version": "1.0.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/45937?format=api",
            "vulnerability_id": "VCID-g113-b4zy-gyee",
            "summary": "Command Injection in @theia/messages\nIn Eclipse Theia versions up to and including 0.16.0, in the notification messages there is no HTML escaping, so Javascript code can run.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-28162",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00172",
                            "scoring_system": "epss",
                            "scoring_elements": "0.38301",
                            "published_at": "2026-05-29T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-28162"
                },
                {
                    "reference_url": "https://github.com/eclipse-theia/theia/blob/master/CHANGELOG.md#v100---26032020",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/eclipse-theia/theia/blob/master/CHANGELOG.md#v100---26032020"
                },
                {
                    "reference_url": "https://github.com/eclipse-theia/theia/issues/7283",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/eclipse-theia/theia/issues/7283"
                },
                {
                    "reference_url": "https://github.com/eclipse-theia/theia/pull/7289",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/eclipse-theia/theia/pull/7289"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-28162",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/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-2021-28162"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-c94v-8fff-73ph",
                    "reference_id": "GHSA-c94v-8fff-73ph",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-c94v-8fff-73ph"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/80027?format=api",
                    "purl": "pkg:npm/%40theia/messages@1.0.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540theia/messages@1.0.0"
                }
            ],
            "aliases": [
                "CVE-2021-28162",
                "GHSA-c94v-8fff-73ph"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-g113-b4zy-gyee"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540theia/messages@0.4.0-next.eb580907"
}