Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38573?format=api",
    "vulnerability_id": "VCID-dub9-7n6w-ubfh",
    "summary": "OS Command Injection\nsmalruby-editor allows remote attackers to execute arbitrary OS commands via unspecified vectors.",
    "aliases": [
        {
            "alias": "CVE-2017-2096"
        },
        {
            "alias": "GHSA-f489-655r-x6gr"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62792?format=api",
            "purl": "pkg:gem/smalruby@0.1.11",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/smalruby@0.1.11"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53528?format=api",
            "purl": "pkg:gem/smalruby-editor@0.4.1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/smalruby-editor@0.4.1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53527?format=api",
            "purl": "pkg:gem/smalruby-editor@0.4.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-dub9-7n6w-ubfh"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/smalruby-editor@0.4.0"
        }
    ],
    "references": [
        {
            "reference_url": "http://jvn.jp/en/jp/JVN50197114/index.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://jvn.jp/en/jp/JVN50197114/index.html"
        },
        {
            "reference_url": "http://smalruby.jp/blog/2017/01/14/smalruby-editor-0-4-1-has-been-released-english.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://smalruby.jp/blog/2017/01/14/smalruby-editor-0-4-1-has-been-released-english.html"
        },
        {
            "reference_url": "https://web.archive.org/web/20200227194312/http://www.securityfocus.com/bid/95775",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://web.archive.org/web/20200227194312/http://www.securityfocus.com/bid/95775"
        },
        {
            "reference_url": "http://www.securityfocus.com/bid/95775",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://www.securityfocus.com/bid/95775"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-2096",
            "reference_id": "CVE-2017-2096",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-2096"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-f489-655r-x6gr",
            "reference_id": "GHSA-f489-655r-x6gr",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-f489-655r-x6gr"
        }
    ],
    "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": 78,
            "name": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')",
            "description": "The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS 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."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-dub9-7n6w-ubfh"
}