Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/226?format=api",
    "purl": "pkg:generic/postgresql@9.3.22",
    "type": "generic",
    "namespace": "",
    "name": "postgresql",
    "version": "9.3.22",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "9.3.24",
    "latest_non_vulnerable_version": "18.2.0",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/3531?format=api",
            "vulnerability_id": "VCID-7xfn-1fv3-1bgv",
            "summary": "Uncontrolled search path element in pg_dump and other client applicationsmore details",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-1058.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.8",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
                        }
                    ],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-1058.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2018-1058",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.82687",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99229",
                            "published_at": "2026-04-01T12:55:00Z"
                        },
                        {
                            "value": "0.82687",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99245",
                            "published_at": "2026-04-26T12:55:00Z"
                        },
                        {
                            "value": "0.82687",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99239",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.82687",
                            "scoring_system": "epss",
                            "scoring_elements": "0.9924",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.82687",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99241",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.82687",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99231",
                            "published_at": "2026-04-02T12:55:00Z"
                        },
                        {
                            "value": "0.82687",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99234",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.82687",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99238",
                            "published_at": "2026-04-07T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2018-1058"
                },
                {
                    "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.5",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                        }
                    ],
                    "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
                },
                {
                    "reference_url": "https://www.postgresql.org/about/news/postgresql-103-968-9512-9417-and-9322-released-1834/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.postgresql.org/about/news/postgresql-103-968-9512-9417-and-9322-released-1834/"
                },
                {
                    "reference_url": "https://www.postgresql.org/support/security/CVE-2018-1058/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.8",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "['AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H']"
                        }
                    ],
                    "url": "https://www.postgresql.org/support/security/CVE-2018-1058/"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1547044",
                    "reference_id": "1547044",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1547044"
                },
                {
                    "reference_url": "https://security.archlinux.org/ASA-201803-9",
                    "reference_id": "ASA-201803-9",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.archlinux.org/ASA-201803-9"
                },
                {
                    "reference_url": "https://security.archlinux.org/AVG-643",
                    "reference_id": "AVG-643",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "High",
                            "scoring_system": "archlinux",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://security.archlinux.org/AVG-643"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2018:2511",
                    "reference_id": "RHSA-2018:2511",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2018:2511"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2018:2566",
                    "reference_id": "RHSA-2018:2566",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2018:2566"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2018:3816",
                    "reference_id": "RHSA-2018:3816",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2018:3816"
                },
                {
                    "reference_url": "https://usn.ubuntu.com/3589-1/",
                    "reference_id": "USN-3589-1",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://usn.ubuntu.com/3589-1/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/226?format=api",
                    "purl": "pkg:generic/postgresql@9.3.22",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:generic/postgresql@9.3.22"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/225?format=api",
                    "purl": "pkg:generic/postgresql@9.4.17",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:generic/postgresql@9.4.17"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/224?format=api",
                    "purl": "pkg:generic/postgresql@9.5.12",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:generic/postgresql@9.5.12"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/223?format=api",
                    "purl": "pkg:generic/postgresql@9.6.8",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:generic/postgresql@9.6.8"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/222?format=api",
                    "purl": "pkg:generic/postgresql@10.3.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:generic/postgresql@10.3.0"
                }
            ],
            "aliases": [
                "CVE-2018-1058"
            ],
            "risk_score": 10.0,
            "exploitability": "2.0",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-7xfn-1fv3-1bgv"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:generic/postgresql@9.3.22"
}