Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/49687?format=api",
    "vulnerability_id": "VCID-t99z-u8z3-ybbe",
    "summary": "Renovate vulnerable to arbitrary command injection via npm manager and malicious Renovate configuration\nThe user-provided string `packageName` in the `npm` manager is appended to the `npm install` command during lock maintenance without proper sanitization.",
    "aliases": [
        {
            "alias": "GHSA-fr4j-65pv-gjjj"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/73324?format=api",
            "purl": "pkg:npm/renovate@40.33.0",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/renovate@40.33.0"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/73368?format=api",
            "purl": "pkg:npm/renovate@35.63.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-t99z-u8z3-ybbe"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/renovate@35.63.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/renovatebot/renovate",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/renovatebot/renovate"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-fr4j-65pv-gjjj",
            "reference_id": "GHSA-fr4j-65pv-gjjj",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-fr4j-65pv-gjjj"
        },
        {
            "reference_url": "https://github.com/renovatebot/renovate/security/advisories/GHSA-fr4j-65pv-gjjj",
            "reference_id": "GHSA-fr4j-65pv-gjjj",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/renovatebot/renovate/security/advisories/GHSA-fr4j-65pv-gjjj"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 77,
            "name": "Improper Neutralization of Special Elements used in a Command ('Command Injection')",
            "description": "The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component."
        },
        {
            "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."
        },
        {
            "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."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-t99z-u8z3-ybbe"
}