Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/381825?format=api",
    "purl": "pkg:apk/alpine/postgresql14@10.3-r0?arch=aarch64&distroversion=v3.16&reponame=main",
    "type": "apk",
    "namespace": "alpine",
    "name": "postgresql14",
    "version": "10.3-r0",
    "qualifiers": {
        "arch": "aarch64",
        "distroversion": "v3.16",
        "reponame": "main"
    },
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "10.5-r0",
    "latest_non_vulnerable_version": "14.11-r0",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/4556?format=api",
            "vulnerability_id": "VCID-r2b2-ck4x-zuaw",
            "summary": "privilege escalation",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2018-1058",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.81248",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99188",
                            "published_at": "2026-05-30T12: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://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://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/381825?format=api",
                    "purl": "pkg:apk/alpine/postgresql14@10.3-r0?arch=aarch64&distroversion=v3.16&reponame=main",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apk/alpine/postgresql14@10.3-r0%3Farch=aarch64&distroversion=v3.16&reponame=main"
                }
            ],
            "aliases": [
                "CVE-2018-1058"
            ],
            "risk_score": 10.0,
            "exploitability": "2.0",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-r2b2-ck4x-zuaw"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apk/alpine/postgresql14@10.3-r0%3Farch=aarch64&distroversion=v3.16&reponame=main"
}