Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/141962?format=api",
    "purl": "pkg:gem/actionview@3.2.0",
    "type": "gem",
    "namespace": "",
    "name": "actionview",
    "version": "3.2.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "7.2.3.1",
    "latest_non_vulnerable_version": "8.1.2.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/50456?format=api",
            "vulnerability_id": "VCID-g9t2-g33e-87fe",
            "summary": "Moderate severity vulnerability that affects actionview\nWithdrawn, accidental duplicate publish.\n\nDirectory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.2 and 4.x before 4.1.14.2 allows remote attackers to read arbitrary files by leveraging an application's unrestricted use of the render method and providing a .. (dot dot) in a pathname.  NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-0752.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-2pwf-xwr3-hp55",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-2pwf-xwr3-hp55"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2016-2097",
                    "reference_id": "CVE-2016-2097",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2016-2097"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/68275?format=api",
                    "purl": "pkg:gem/actionview@3.2.22.2",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-86jq-2md2-d7ah"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionview@3.2.22.2"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/21987?format=api",
                    "purl": "pkg:gem/actionview@4.1.14.2",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-31xv-z8c6-a7bg"
                        },
                        {
                            "vulnerability": "VCID-86jq-2md2-d7ah"
                        },
                        {
                            "vulnerability": "VCID-8dad-dvat-1fg4"
                        },
                        {
                            "vulnerability": "VCID-96qr-hdbp-p7ff"
                        },
                        {
                            "vulnerability": "VCID-c8b5-d83n-nuhw"
                        },
                        {
                            "vulnerability": "VCID-cnqr-6e98-5kgk"
                        },
                        {
                            "vulnerability": "VCID-es1t-7196-4kbb"
                        },
                        {
                            "vulnerability": "VCID-g5q6-7uav-sqh1"
                        },
                        {
                            "vulnerability": "VCID-p5mc-r1rg-5ff7"
                        },
                        {
                            "vulnerability": "VCID-v9mt-t1pb-hybk"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionview@4.1.14.2"
                }
            ],
            "aliases": [
                "GHSA-2pwf-xwr3-hp55"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-g9t2-g33e-87fe"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "3.1",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionview@3.2.0"
}