Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42487?format=api",
    "vulnerability_id": "VCID-zv1p-p8tb-dqhm",
    "summary": "Multiple vulnerabilities have been discovered in Asterisk, the worst of which can lead to privilege escalation.",
    "aliases": [
        {
            "alias": "CVE-2021-31878"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/583278?format=api",
            "purl": "pkg:deb/debian/asterisk@0?distro=sid",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/asterisk@0%3Fdistro=sid"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/582067?format=api",
            "purl": "pkg:deb/debian/asterisk@1:16.28.0~dfsg-0%2Bdeb11u4?distro=sid",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-r54j-ydjm-4uca"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/asterisk@1:16.28.0~dfsg-0%252Bdeb11u4%3Fdistro=sid"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/582068?format=api",
            "purl": "pkg:deb/debian/asterisk@1:22.8.2%2Bdfsg%2B~cs6.15.60671435-1?distro=sid",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/asterisk@1:22.8.2%252Bdfsg%252B~cs6.15.60671435-1%3Fdistro=sid"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1062442?format=api",
            "purl": "pkg:deb/debian/asterisk@1:22.9.0%2Bdfsg%2B~cs6.16.60671434-1?distro=sid",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/asterisk@1:22.9.0%252Bdfsg%252B~cs6.16.60671434-1%3Fdistro=sid"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/76073?format=api",
            "purl": "pkg:ebuild/net-misc/asterisk@18.24.3",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:ebuild/net-misc/asterisk@18.24.3"
        }
    ],
    "affected_packages": [],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-31878",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.40815",
                    "published_at": "2026-04-01T12:55:00Z"
                },
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.40898",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.40926",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.40854",
                    "published_at": "2026-04-07T12:55:00Z"
                },
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.40904",
                    "published_at": "2026-04-08T12:55:00Z"
                },
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.4091",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.40927",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.40892",
                    "published_at": "2026-04-12T12:55:00Z"
                },
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.40873",
                    "published_at": "2026-04-13T12:55:00Z"
                },
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.40915",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.0019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.40884",
                    "published_at": "2026-04-18T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-31878"
        },
        {
            "reference_url": "https://security.gentoo.org/glsa/202412-03",
            "reference_id": "GLSA-202412-03",
            "reference_type": "",
            "scores": [],
            "url": "https://security.gentoo.org/glsa/202412-03"
        }
    ],
    "weaknesses": [],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-zv1p-p8tb-dqhm"
}