Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/395169?format=api",
    "purl": "pkg:apk/alpine/nodejs@8.11.4-r0?arch=armhf&distroversion=v3.11&reponame=main",
    "type": "apk",
    "namespace": "alpine",
    "name": "nodejs",
    "version": "8.11.4-r0",
    "qualifiers": {
        "arch": "armhf",
        "distroversion": "v3.11",
        "reponame": "main"
    },
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "10.14.0-r0",
    "latest_non_vulnerable_version": "12.22.6-r0",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/95275?format=api",
            "vulnerability_id": "VCID-ud1n-97bf-8ud7",
            "summary": "In all versions of Node.js prior to 6.14.4, 8.11.4 and 10.9.0 when used with UCS-2 encoding (recognized by Node.js under the names `'ucs2'`, `'ucs-2'`, `'utf16le'` and `'utf-16le'`), `Buffer#write()` can be abused to write outside of the bounds of a single `Buffer`. Writes that start from the second-to-last position of a buffer cause a miscalculation of the maximum length of the input bytes to be written.",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-12115.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.1",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        }
                    ],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-12115.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2018-12115",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00797",
                            "scoring_system": "epss",
                            "scoring_elements": "0.74357",
                            "published_at": "2026-06-04T12:55:00Z"
                        },
                        {
                            "value": "0.00797",
                            "scoring_system": "epss",
                            "scoring_elements": "0.7439",
                            "published_at": "2026-06-05T12:55:00Z"
                        },
                        {
                            "value": "0.00797",
                            "scoring_system": "epss",
                            "scoring_elements": "0.74395",
                            "published_at": "2026-06-06T12:55:00Z"
                        },
                        {
                            "value": "0.00797",
                            "scoring_system": "epss",
                            "scoring_elements": "0.74382",
                            "published_at": "2026-06-07T12:55:00Z"
                        },
                        {
                            "value": "0.00797",
                            "scoring_system": "epss",
                            "scoring_elements": "0.74365",
                            "published_at": "2026-06-08T12:55:00Z"
                        },
                        {
                            "value": "0.00797",
                            "scoring_system": "epss",
                            "scoring_elements": "0.74391",
                            "published_at": "2026-06-09T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2018-12115"
                },
                {
                    "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12115",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12115"
                },
                {
                    "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.8",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                        }
                    ],
                    "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1620219",
                    "reference_id": "1620219",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1620219"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2018:2552",
                    "reference_id": "RHSA-2018:2552",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2018:2552"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2018:2553",
                    "reference_id": "RHSA-2018:2553",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2018:2553"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2018:2944",
                    "reference_id": "RHSA-2018:2944",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2018:2944"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2018:2949",
                    "reference_id": "RHSA-2018:2949",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2018:2949"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2018:3537",
                    "reference_id": "RHSA-2018:3537",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2018:3537"
                },
                {
                    "reference_url": "https://usn.ubuntu.com/USN-4796-1/",
                    "reference_id": "USN-USN-4796-1",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://usn.ubuntu.com/USN-4796-1/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/395169?format=api",
                    "purl": "pkg:apk/alpine/nodejs@8.11.4-r0?arch=armhf&distroversion=v3.11&reponame=main",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apk/alpine/nodejs@8.11.4-r0%3Farch=armhf&distroversion=v3.11&reponame=main"
                }
            ],
            "aliases": [
                "CVE-2018-12115"
            ],
            "risk_score": 3.6,
            "exploitability": "0.5",
            "weighted_severity": "7.3",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ud1n-97bf-8ud7"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apk/alpine/nodejs@8.11.4-r0%3Farch=armhf&distroversion=v3.11&reponame=main"
}