Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39275?format=api",
    "vulnerability_id": "VCID-yssg-z4sv-bfe7",
    "summary": "Cross-Site Request Forgery (CSRF)\nMagento Community Edition and Enterprise Edition have CSRF resulting in deletion of a customer address from an address book, aka APPSEC-1433.",
    "aliases": [
        {
            "alias": "CVE-2018-5301"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/54812?format=api",
            "purl": "pkg:composer/magento/community-edition@2.0.10",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/magento/community-edition@2.0.10"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/54813?format=api",
            "purl": "pkg:composer/magento/community-edition@2.1.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/magento/community-edition@2.1.2"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/54811?format=api",
            "purl": "pkg:composer/magento/community-edition@2.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-7e2t-x8vb-b7gu"
                },
                {
                    "vulnerability": "VCID-yssg-z4sv-bfe7"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/magento/community-edition@2.1.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://magento.com/security/patches/magento-2010-and-212-security-update",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://magento.com/security/patches/magento-2010-and-212-security-update"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-5301",
            "reference_id": "CVE-2018-5301",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-5301"
        }
    ],
    "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": 352,
            "name": "Cross-Site Request Forgery (CSRF)",
            "description": "The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request."
        },
        {
            "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-yssg-z4sv-bfe7"
}