Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39808?format=api",
    "vulnerability_id": "VCID-9vgw-34h1-uqgb",
    "summary": "Path Traversal\nliyujing is vulnerable to a directory traversal issue, giving an attacker access to the filesystem by placing `../` in the url.",
    "aliases": [
        {
            "alias": "CVE-2017-16120"
        },
        {
            "alias": "GHSA-m3j9-p4x2-97q6"
        }
    ],
    "fixed_packages": [],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55637?format=api",
            "purl": "pkg:npm/liyujing@1.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-9vgw-34h1-uqgb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/liyujing@1.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55638?format=api",
            "purl": "pkg:npm/liyujing@1.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-9vgw-34h1-uqgb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/liyujing@1.1.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/JacksonGL/NPM-Vuln-PoC/tree/master/directory-traversal/liyujing",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/JacksonGL/NPM-Vuln-PoC/tree/master/directory-traversal/liyujing"
        },
        {
            "reference_url": "https://www.npmjs.com/advisories/387",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://www.npmjs.com/advisories/387"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16120",
            "reference_id": "CVE-2017-16120",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16120"
        }
    ],
    "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": 22,
            "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
            "description": "The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory."
        },
        {
            "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.0 - 8.9",
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-9vgw-34h1-uqgb"
}