Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40646?format=api",
    "vulnerability_id": "VCID-bd83-vf81-sfa4",
    "summary": "SQL Injection\nAn issue was discovered in phpMyAdmin. A vulnerability was reported where a specially crafted username can be used to trigger a SQL injection attack through the designer feature.",
    "aliases": [
        {
            "alias": "CVE-2019-6798"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57378?format=api",
            "purl": "pkg:composer/phpmyadmin/phpmyadmin@4.8.5",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/phpmyadmin/phpmyadmin@4.8.5"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52544?format=api",
            "purl": "pkg:composer/phpmyadmin/phpmyadmin@4.5.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1hvw-4h4d-zkhv"
                },
                {
                    "vulnerability": "VCID-4kax-4bpz-g7c5"
                },
                {
                    "vulnerability": "VCID-b6ng-ygap-zqh4"
                },
                {
                    "vulnerability": "VCID-bd83-vf81-sfa4"
                },
                {
                    "vulnerability": "VCID-pfdk-db4h-47dx"
                },
                {
                    "vulnerability": "VCID-r9sb-489v-fqc9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/phpmyadmin/phpmyadmin@4.5.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57122?format=api",
            "purl": "pkg:composer/phpmyadmin/phpmyadmin@4.8.4",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ajf6-bk2g-wkb7"
                },
                {
                    "vulnerability": "VCID-bd83-vf81-sfa4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/phpmyadmin/phpmyadmin@4.8.4"
        }
    ],
    "references": [
        {
            "reference_url": "https://www.phpmyadmin.net/security/PMASA-2019-2/",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.phpmyadmin.net/security/PMASA-2019-2/"
        },
        {
            "reference_url": "http://www.securityfocus.com/bid/106727",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://www.securityfocus.com/bid/106727"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2019-6798",
            "reference_id": "CVE-2019-6798",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-6798"
        }
    ],
    "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": 89,
            "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
            "description": "The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL 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-bd83-vf81-sfa4"
}