Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39516?format=api",
    "vulnerability_id": "VCID-vhy5-48ge-vyat",
    "summary": "Code Injection\nYii allows remote attackers to inject unintended search conditions.",
    "aliases": [
        {
            "alias": "CVE-2018-8074"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55242?format=api",
            "purl": "pkg:composer/yiisoft/yii2-dev@2.0.15",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-dev@2.0.15"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55244?format=api",
            "purl": "pkg:composer/yiisoft/yii2-elasticsearch@2.0.5",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-elasticsearch@2.0.5"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55243?format=api",
            "purl": "pkg:composer/yiisoft/yii2-dev@2.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6rub-m94d-jfct"
                },
                {
                    "vulnerability": "VCID-gb9u-t143-vker"
                },
                {
                    "vulnerability": "VCID-vf2s-s6dr-nqhf"
                },
                {
                    "vulnerability": "VCID-vhy5-48ge-vyat"
                },
                {
                    "vulnerability": "VCID-xrgb-33bd-ckat"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-dev@2.0.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-8074",
            "reference_id": "CVE-2018-8074",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-8074"
        }
    ],
    "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."
        },
        {
            "cwe_id": 94,
            "name": "Improper Control of Generation of Code ('Code Injection')",
            "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-vhy5-48ge-vyat"
}