Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/30635?format=api",
    "vulnerability_id": "VCID-75e2-9wkm-m3e8",
    "summary": "Improper Input Validation\nAn issue was discovered in lib/Server.js in webpack-dev-server before 3.1.6. Attackers are able to steal developer's code because the origin of requests is not checked by the WebSocket server, which is used for HMR (Hot Module Replacement). Anyone can receive the HMR message sent by the WebSocket server via a ws://127.0.0.1:8080/ connection from any origin.",
    "aliases": [
        {
            "alias": "CVE-2018-14732"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/56482?format=api",
            "purl": "pkg:npm/webpack-dev-server@3.1.6",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/webpack-dev-server@3.1.6"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/6705?format=api",
            "purl": "pkg:npm/webpack-dev-server@3.1.11",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/webpack-dev-server@3.1.11"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/6704?format=api",
            "purl": "pkg:npm/webpack-dev-server@3.1.10",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75e2-9wkm-m3e8"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/webpack-dev-server@3.1.10"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10"
        },
        {
            "reference_url": "https://github.com/webpack/webpack-dev-server/issues/1445",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/webpack/webpack-dev-server/issues/1445"
        },
        {
            "reference_url": "https://github.com/webpack/webpack-dev-server/releases/tag/v3.1.11",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/webpack/webpack-dev-server/releases/tag/v3.1.11"
        },
        {
            "reference_url": "https://www.npmjs.com/advisories/725",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3",
                    "scoring_elements": ""
                }
            ],
            "url": "https://www.npmjs.com/advisories/725"
        },
        {
            "reference_url": "https://github.com/nodejs/security-wg/blob/main/vuln/npm/485.json",
            "reference_id": "485",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/nodejs/security-wg/blob/main/vuln/npm/485.json"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-14732",
            "reference_id": "CVE-2018-14732",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-14732"
        }
    ],
    "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": "7.5 - 7.5",
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-75e2-9wkm-m3e8"
}