Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/478248?format=api",
    "purl": "pkg:apk/alpine/cups@2.2.10-r0?arch=x86&distroversion=v3.12&reponame=main",
    "type": "apk",
    "namespace": "alpine",
    "name": "cups",
    "version": "2.2.10-r0",
    "qualifiers": {
        "arch": "x86",
        "distroversion": "v3.12",
        "reponame": "main"
    },
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "2.2.12-r0",
    "latest_non_vulnerable_version": "2.3.3-r0",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/82953?format=api",
            "vulnerability_id": "VCID-u2fg-ugbq-8ue4",
            "summary": "cups: Predictable session cookie breaks CSRF protection",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-4700.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.3",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
                        }
                    ],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-4700.json"
                },
                {
                    "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.0/AV:N/AC:H/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=1649347",
                    "reference_id": "1649347",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1649347"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2020:1050",
                    "reference_id": "RHSA-2020:1050",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2020:1050"
                },
                {
                    "reference_url": "https://usn.ubuntu.com/3842-1/",
                    "reference_id": "USN-3842-1",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://usn.ubuntu.com/3842-1/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/478248?format=api",
                    "purl": "pkg:apk/alpine/cups@2.2.10-r0?arch=x86&distroversion=v3.12&reponame=main",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apk/alpine/cups@2.2.10-r0%3Farch=x86&distroversion=v3.12&reponame=main"
                }
            ],
            "aliases": [
                "CVE-2018-4700"
            ],
            "risk_score": 3.3,
            "exploitability": "0.5",
            "weighted_severity": "6.6",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-u2fg-ugbq-8ue4"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:apk/alpine/cups@2.2.10-r0%3Farch=x86&distroversion=v3.12&reponame=main"
}