Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40582?format=api",
    "vulnerability_id": "VCID-2xwj-t3jg-hqe3",
    "summary": "Cross-Site Request Forgery (CSRF)\nA CSRF issue was discovered in web/authorization/oauth2/controller/OAuth2ClientController.java in hsweb 3.0.4 because the state parameter in the request is not compared with the state parameter in the session after user authentication is successful.",
    "aliases": [
        {
            "alias": "CVE-2018-20595"
        },
        {
            "alias": "GHSA-4rm3-4mq4-mfwr"
        }
    ],
    "fixed_packages": [],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57274?format=api",
            "purl": "pkg:maven/org.hswebframework.web/hsweb-commons@3.0.4",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2xwj-t3jg-hqe3"
                },
                {
                    "vulnerability": "VCID-7v6u-ypg7-bua1"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.hswebframework.web/hsweb-commons@3.0.4"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/hs-web/hsweb-framework/commit/40929e9b0d336a26281a5ed2e0e721d54dd8d2f2",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/hs-web/hsweb-framework/commit/40929e9b0d336a26281a5ed2e0e721d54dd8d2f2"
        },
        {
            "reference_url": "https://github.com/hs-web/hsweb-framework/issues/107",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/hs-web/hsweb-framework/issues/107"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20595",
            "reference_id": "CVE-2018-20595",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20595"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-4rm3-4mq4-mfwr",
            "reference_id": "GHSA-4rm3-4mq4-mfwr",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-4rm3-4mq4-mfwr"
        }
    ],
    "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-2xwj-t3jg-hqe3"
}