Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41063?format=api",
    "vulnerability_id": "VCID-mtzj-rqrc-syas",
    "summary": "Signature Verification Bypass in jwt-simple\nVersions of `jwt-simple` prior to 0.5.3 are vulnerable to Signature Verification Bypass. If no algorithm is specified in the `decode()` function, the packages uses the algorithm in the JWT to decode tokens. This allows an attacker to create a HS256 (symmetric algorithm) JWT with the server's public key as secret, and the package will verify it as HS256 instead of RS256 (asymmetric algorithm).\n\n\n## Recommendation\n\nUpgrade to version 0.5.3 or later.",
    "aliases": [
        {
            "alias": "GHSA-8v5f-hp78-jgxq"
        },
        {
            "alias": "GMS-2019-129"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/58179?format=api",
            "purl": "pkg:npm/jwt-simple@0.5.3",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/jwt-simple@0.5.3"
        }
    ],
    "affected_packages": [],
    "references": [
        {
            "reference_url": "https://github.com/hokaccha/node-jwt-simple/commit/ead36e1d687645da9c3be8befdaaef622ea33106",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/hokaccha/node-jwt-simple/commit/ead36e1d687645da9c3be8befdaaef622ea33106"
        },
        {
            "reference_url": "https://www.npmjs.com/advisories/831",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.npmjs.com/advisories/831"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-8v5f-hp78-jgxq",
            "reference_id": "GHSA-8v5f-hp78-jgxq",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-8v5f-hp78-jgxq"
        }
    ],
    "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-mtzj-rqrc-syas"
}