Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/240207?format=api",
    "purl": "pkg:apk/alpine/openjpeg@2.5.0-r0?arch=s390x&distroversion=v3.17&reponame=main",
    "type": "apk",
    "namespace": "alpine",
    "name": "openjpeg",
    "version": "2.5.0-r0",
    "qualifiers": {
        "arch": "s390x",
        "distroversion": "v3.17",
        "reponame": "main"
    },
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/15404?format=api",
            "vulnerability_id": "VCID-pddd-613m-yyd5",
            "summary": "Access of Uninitialized Pointer\nA flaw was found in the opj2_decompress program in openjpeg2 2.4.0 in the way it handles an input directory with a large number of files. When it fails to allocate a buffer to store the filenames of the input directory, it calls free() on an uninitialized pointer, leading to a segmentation fault and a denial of service.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-1122",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00052",
                            "scoring_system": "epss",
                            "scoring_elements": "0.16673",
                            "published_at": "2026-05-30T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-1122"
                },
                {
                    "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                        }
                    ],
                    "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
                },
                {
                    "reference_url": "https://github.com/uclouvain/openjpeg/issues/1368",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/uclouvain/openjpeg/issues/1368"
                },
                {
                    "reference_url": "https://github.com/uclouvain/openjpeg/pull/1369",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/uclouvain/openjpeg/pull/1369"
                },
                {
                    "reference_url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-1122",
                    "reference_id": "CVE-2022-1122",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-1122"
                },
                {
                    "reference_url": "https://security.gentoo.org/glsa/202209-04",
                    "reference_id": "GLSA-202209-04",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.gentoo.org/glsa/202209-04"
                },
                {
                    "reference_url": "https://usn.ubuntu.com/7083-1/",
                    "reference_id": "USN-7083-1",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://usn.ubuntu.com/7083-1/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/240207?format=api",
                    "purl": "pkg:apk/alpine/openjpeg@2.5.0-r0?arch=s390x&distroversion=v3.17&reponame=main",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apk/alpine/openjpeg@2.5.0-r0%3Farch=s390x&distroversion=v3.17&reponame=main"
                }
            ],
            "aliases": [
                "CVE-2022-1122"
            ],
            "risk_score": null,
            "exploitability": "0.5",
            "weighted_severity": "0.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-pddd-613m-yyd5"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apk/alpine/openjpeg@2.5.0-r0%3Farch=s390x&distroversion=v3.17&reponame=main"
}