Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/374391?format=api",
    "purl": "pkg:alpm/archlinux/libxml2@2.9.8-4",
    "type": "alpm",
    "namespace": "archlinux",
    "name": "libxml2",
    "version": "2.9.8-4",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.9.8-5",
    "latest_non_vulnerable_version": "2.9.14-1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/8928?format=api",
            "vulnerability_id": "VCID-8pzj-mq5r-rqcq",
            "summary": "Loop with Unreachable Exit Condition ('Infinite Loop')\nThe xz_decomp function in xzlib.c in libxml2, if --with-lzma is used, allows remote attackers to cause a denial of service (infinite loop) via a crafted XML file that triggers LZMA_MEMLIMIT_ERROR, as demonstrated by xmllint, a different vulnerability than CVE-2015-8035.",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-9251.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "3.5",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L"
                        }
                    ],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-9251.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2018-9251",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.735",
                            "published_at": "2026-04-01T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73597",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73551",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73595",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73604",
                            "published_at": "2026-04-18T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73509",
                            "published_at": "2026-04-02T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73531",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73503",
                            "published_at": "2026-04-07T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73539",
                            "published_at": "2026-04-08T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73553",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73576",
                            "published_at": "2026-04-11T12:55:00Z"
                        },
                        {
                            "value": "0.00772",
                            "scoring_system": "epss",
                            "scoring_elements": "0.73559",
                            "published_at": "2026-04-12T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2018-9251"
                },
                {
                    "reference_url": "https://bugzilla.gnome.org/show_bug.cgi?id=794914",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.gnome.org/show_bug.cgi?id=794914"
                },
                {
                    "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "3.3",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"
                        }
                    ],
                    "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
                },
                {
                    "reference_url": "https://lists.debian.org/debian-lts-announce/2018/09/msg00035.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://lists.debian.org/debian-lts-announce/2018/09/msg00035.html"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1565318",
                    "reference_id": "1565318",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1565318"
                },
                {
                    "reference_url": "https://security.archlinux.org/ASA-201810-3",
                    "reference_id": "ASA-201810-3",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.archlinux.org/ASA-201810-3"
                },
                {
                    "reference_url": "https://security.archlinux.org/ASA-201810-4",
                    "reference_id": "ASA-201810-4",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.archlinux.org/ASA-201810-4"
                },
                {
                    "reference_url": "https://security.archlinux.org/AVG-672",
                    "reference_id": "AVG-672",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "Medium",
                            "scoring_system": "archlinux",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://security.archlinux.org/AVG-672"
                },
                {
                    "reference_url": "https://security.archlinux.org/AVG-673",
                    "reference_id": "AVG-673",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "Medium",
                            "scoring_system": "archlinux",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://security.archlinux.org/AVG-673"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-9251",
                    "reference_id": "CVE-2018-9251",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-9251"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2020:1827",
                    "reference_id": "RHSA-2020:1827",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2020:1827"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/374392?format=api",
                    "purl": "pkg:alpm/archlinux/libxml2@2.9.8-5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:alpm/archlinux/libxml2@2.9.8-5"
                }
            ],
            "aliases": [
                "CVE-2018-9251"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-8pzj-mq5r-rqcq"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "3.1",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:alpm/archlinux/libxml2@2.9.8-4"
}