Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37485?format=api",
    "vulnerability_id": "VCID-6dhj-xgsb-nkhd",
    "summary": "Symlink path traversal in Rack::File\nAffected versions allows attackers to access arbitrary files outside the intended root directory via a crafted PATH_INFO environment variable, probably a directory traversal vulnerability that is remotely exploitable, aka \"symlink path traversals.\"",
    "aliases": [
        {
            "alias": "CVE-2013-0262"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51373?format=api",
            "purl": "pkg:gem/rack@1.4.5",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rack@1.4.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51374?format=api",
            "purl": "pkg:gem/rack@1.5.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rack@1.5.2"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51228?format=api",
            "purl": "pkg:gem/rack@1.4.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6dhj-xgsb-nkhd"
                },
                {
                    "vulnerability": "VCID-w1cf-9x6v-pyhw"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rack@1.4.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/51369?format=api",
            "purl": "pkg:gem/rack@1.5.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6dhj-xgsb-nkhd"
                },
                {
                    "vulnerability": "VCID-mgx9-9bua-37f3"
                },
                {
                    "vulnerability": "VCID-w1cf-9x6v-pyhw"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rack@1.5.0"
        }
    ],
    "references": [
        {
            "reference_url": "http://rack.github.com/",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://rack.github.com/"
        }
    ],
    "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": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-6dhj-xgsb-nkhd"
}