Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/52664?format=api",
    "purl": "pkg:npm/engine.io-client@1.6.8",
    "type": "npm",
    "namespace": "",
    "name": "engine.io-client",
    "version": "1.6.8",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.6.9",
    "latest_non_vulnerable_version": "1.6.9",
    "affected_by_vulnerabilities": [
        {
            "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.",
            "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/"
                }
            ],
            "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"
                }
            ],
            "aliases": [
                "GMS-2016-31"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-j7pj-53sk-pbex"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39676?format=api",
            "vulnerability_id": "VCID-rucu-tmtk-duew",
            "summary": "Improper Certificate Validation\n`engine.io-client` is the client for `engine.io`, the implementation of a transport-based `cross-browser/cross-device` bi-directional communication layer for `Socket.IO.` The vulnerability is related to the way that Node.js handles the `rejectUnauthorized` setting. If the value is something that evaluates to false, certificate verification will be disabled.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2016-10536",
                    "reference_id": "CVE-2016-10536",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2016-10536"
                }
            ],
            "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"
                }
            ],
            "aliases": [
                "CVE-2016-10536"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-rucu-tmtk-duew"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/engine.io-client@1.6.8"
}