Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38669?format=api",
    "vulnerability_id": "VCID-21k4-5a8r-7bd9",
    "summary": "Improper Input Validation\nIf an application allows to enter an URL in a form field and built-in `URLValidator` is used, it is possible to prepare a special URL which will be used to overload server process when performing validation of the URL.",
    "aliases": [
        {
            "alias": "CVE-2017-7672"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53731?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.12",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hrky-nmnv-g3eu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.12"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52807?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-21k4-5a8r-7bd9"
                },
                {
                    "vulnerability": "VCID-7uv9-4vy7-ryd1"
                },
                {
                    "vulnerability": "VCID-dvxu-9sh6-qbef"
                },
                {
                    "vulnerability": "VCID-hrky-nmnv-g3eu"
                },
                {
                    "vulnerability": "VCID-mmth-7rgf-aqfa"
                },
                {
                    "vulnerability": "VCID-qdsq-8td3-5qa1"
                },
                {
                    "vulnerability": "VCID-ybuw-727z-r3eb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53732?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-21k4-5a8r-7bd9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53733?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-21k4-5a8r-7bd9"
                },
                {
                    "vulnerability": "VCID-ybuw-727z-r3eb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53734?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.8",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-21k4-5a8r-7bd9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.8"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53735?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.10",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-21k4-5a8r-7bd9"
                },
                {
                    "vulnerability": "VCID-dvxu-9sh6-qbef"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.10"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53729?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.10.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-21k4-5a8r-7bd9"
                },
                {
                    "vulnerability": "VCID-hrky-nmnv-g3eu"
                },
                {
                    "vulnerability": "VCID-mmth-7rgf-aqfa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.10.1"
        }
    ],
    "references": [
        {
            "reference_url": "http://struts.apache.org/docs/s2-047.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://struts.apache.org/docs/s2-047.html"
        },
        {
            "reference_url": "http://www.securityfocus.com/bid/99563",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://www.securityfocus.com/bid/99563"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-7672",
            "reference_id": "CVE-2017-7672",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-7672"
        }
    ],
    "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": 20,
            "name": "Improper Input Validation",
            "description": "The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly."
        },
        {
            "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-21k4-5a8r-7bd9"
}