Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/141989?format=api",
    "purl": "pkg:gem/activerecord@4.2.5.0",
    "type": "gem",
    "namespace": "",
    "name": "activerecord",
    "version": "4.2.5.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "7.1.5.2",
    "latest_non_vulnerable_version": "8.0.2.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/50452?format=api",
            "vulnerability_id": "VCID-f4h5-8f57-3uhr",
            "summary": "Moderate severity vulnerability that affects activerecord\nWithdrawn, accidental duplicate publish.\n\nactiverecord/lib/active_record/nested_attributes.rb in Active Record in Ruby on Rails 3.1.x and 3.2.x before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 does not properly implement a certain destroy option, which allows remote attackers to bypass intended change restrictions by leveraging use of the nested attributes feature.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-7phj-gmgx-2r66",
                    "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-7phj-gmgx-2r66"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2015-7577",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2015-7577"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/21642?format=api",
                    "purl": "pkg:gem/activerecord@4.2.5.1",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-4cky-r218-dkbb"
                        },
                        {
                            "vulnerability": "VCID-5qu2-b8gt-7qe3"
                        },
                        {
                            "vulnerability": "VCID-9t7a-muwx-zyee"
                        },
                        {
                            "vulnerability": "VCID-bsxw-gh14-rbef"
                        },
                        {
                            "vulnerability": "VCID-j8zg-kq3z-jqcm"
                        },
                        {
                            "vulnerability": "VCID-n8r7-wthv-fqaj"
                        },
                        {
                            "vulnerability": "VCID-nzeb-cy9e-tkax"
                        },
                        {
                            "vulnerability": "VCID-qywc-5pj5-y3a9"
                        },
                        {
                            "vulnerability": "VCID-sygb-mygd-s3gb"
                        },
                        {
                            "vulnerability": "VCID-y54w-a8kr-suhy"
                        },
                        {
                            "vulnerability": "VCID-zqzx-avvt-wkhm"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/activerecord@4.2.5.1"
                }
            ],
            "aliases": [
                "GHSA-7phj-gmgx-2r66"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-f4h5-8f57-3uhr"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "3.1",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/activerecord@4.2.5.0"
}