Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38789?format=api",
    "vulnerability_id": "VCID-br82-gd5d-pqew",
    "summary": "Origin Validation Error\nRubyGems is vulnerable to a DNS hijacking vulnerability that allows a MITM attacker to force the RubyGems client to download and install gems from a server that the attacker controls.",
    "aliases": [
        {
            "alias": "CVE-2017-0902"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/54036?format=api",
            "purl": "pkg:gem/rubygems-update@2.6.13",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-c7rs-vbjr-nyfz"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rubygems-update@2.6.13"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/54035?format=api",
            "purl": "pkg:gem/rubygems-update@2.6.12",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-68hc-d8u1-yye5"
                },
                {
                    "vulnerability": "VCID-bb6n-nq7v-8qex"
                },
                {
                    "vulnerability": "VCID-br82-gd5d-pqew"
                },
                {
                    "vulnerability": "VCID-nd17-pxzx-nyba"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rubygems-update@2.6.12"
        }
    ],
    "references": [
        {
            "reference_url": "http://blog.rubygems.org/2017/08/27/2.6.13-released.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://blog.rubygems.org/2017/08/27/2.6.13-released.html"
        },
        {
            "reference_url": "https://hackerone.com/reports/218088",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://hackerone.com/reports/218088"
        },
        {
            "reference_url": "http://www.securityfocus.com/bid/100586",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://www.securityfocus.com/bid/100586"
        },
        {
            "reference_url": "http://www.securitytracker.com/id/1039249",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://www.securitytracker.com/id/1039249"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-0902",
            "reference_id": "CVE-2017-0902",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-0902"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        },
        {
            "cwe_id": 346,
            "name": "Origin Validation Error",
            "description": "The product does not properly verify that the source of data or communication is valid."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-br82-gd5d-pqew"
}