Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38099?format=api",
    "vulnerability_id": "VCID-j7pj-53sk-pbex",
    "summary": "Insecure Defaults Allow MITM Over TLS\nThere's a flaw in the way that node.js handles the `rejectUnauthorized` setting. If the value is something that evaluates to false, certificate verification will be disabled. This is problematic as engine.io-client passes in an object for settings that includes the `rejectUnauthorized` property, whether it has been set or not. If the value has not been explicitly changed, it will be passed in as `null`, resulting in certificate verification being turned off.",
    "aliases": [
        {
            "alias": "GMS-2016-31"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52665?format=api",
            "purl": "pkg:npm/engine.io-client@1.6.9",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/engine.io-client@1.6.9"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52664?format=api",
            "purl": "pkg:npm/engine.io-client@1.6.8",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-j7pj-53sk-pbex"
                },
                {
                    "vulnerability": "VCID-rucu-tmtk-duew"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/engine.io-client@1.6.8"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/socketio/engine.io-client/commit/2c55b278a491bf45313ecc0825cf800e2f7ff5c1",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/socketio/engine.io-client/commit/2c55b278a491bf45313ecc0825cf800e2f7ff5c1"
        },
        {
            "reference_url": "https://www.cigital.com/blog/node-js-socket-io/",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.cigital.com/blog/node-js-socket-io/"
        }
    ],
    "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": 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-j7pj-53sk-pbex"
}