Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37781?format=api",
    "vulnerability_id": "VCID-wtca-5ffw-w7bc",
    "summary": "Predictable CSRF token\nThis package uses predictable `<s:token/>` values, which allows remote attackers to bypass the CSRF protection mechanism.",
    "aliases": [
        {
            "alias": "CVE-2014-7809"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52096?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.20",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4t8h-s9mh-p7c4"
                },
                {
                    "vulnerability": "VCID-qdsq-8td3-5qa1"
                },
                {
                    "vulnerability": "VCID-z1jy-4da2-tyhk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.20"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51850?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.16.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-dvxu-9sh6-qbef"
                },
                {
                    "vulnerability": "VCID-hrky-nmnv-g3eu"
                },
                {
                    "vulnerability": "VCID-m39c-3bv2-6ugy"
                },
                {
                    "vulnerability": "VCID-mmth-7rgf-aqfa"
                },
                {
                    "vulnerability": "VCID-wtca-5ffw-w7bc"
                },
                {
                    "vulnerability": "VCID-z1jy-4da2-tyhk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.16.3"
        }
    ],
    "references": [
        {
            "reference_url": "http://blog.h3xstream.com/2014/12/predicting-struts-csrf-token-cve-2014.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://blog.h3xstream.com/2014/12/predicting-struts-csrf-token-cve-2014.html"
        },
        {
            "reference_url": "http://struts.apache.org/docs/s2-023.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://struts.apache.org/docs/s2-023.html"
        },
        {
            "reference_url": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7809",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7809"
        }
    ],
    "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-wtca-5ffw-w7bc"
}