Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/1089034?format=api",
    "purl": "pkg:deb/debian/libpgjava@42.7.10-1",
    "type": "deb",
    "namespace": "debian",
    "name": "libpgjava",
    "version": "42.7.10-1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "42.7.11-1",
    "latest_non_vulnerable_version": "42.7.11-1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/354941?format=api",
            "vulnerability_id": "VCID-hada-xkcc-8fch",
            "summary": "",
            "references": [
                {
                    "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42198",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42198"
                },
                {
                    "reference_url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-98qh-xjc8-98pq",
                    "reference_id": "GHSA-98qh-xjc8-98pq",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-04-29T18:00:34Z/"
                        }
                    ],
                    "url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-98qh-xjc8-98pq"
                },
                {
                    "reference_url": "https://github.com/pgjdbc/pgjdbc/releases/tag/REL42.7.11",
                    "reference_id": "REL42.7.11",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-04-29T18:00:34Z/"
                        }
                    ],
                    "url": "https://github.com/pgjdbc/pgjdbc/releases/tag/REL42.7.11"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/1089035?format=api",
                    "purl": "pkg:deb/debian/libpgjava@42.7.11-1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libpgjava@42.7.11-1"
                }
            ],
            "aliases": [
                "CVE-2026-42198"
            ],
            "risk_score": 3.4,
            "exploitability": "0.5",
            "weighted_severity": "6.8",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-hada-xkcc-8fch"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libpgjava@42.7.10-1"
}