Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40456?format=api",
    "vulnerability_id": "VCID-3p76-2t3z-kycu",
    "summary": "Object injection\nPHPMailer is vulnerable to an object injection attack.",
    "aliases": [
        {
            "alias": "CVE-2018-19296"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57036?format=api",
            "purl": "pkg:composer/phpmailer/phpmailer@5.2.27",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/phpmailer/phpmailer@5.2.27"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57037?format=api",
            "purl": "pkg:composer/phpmailer/phpmailer@6.0.6",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/phpmailer/phpmailer@6.0.6"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57035?format=api",
            "purl": "pkg:composer/phpmailer/phpmailer@6.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3p76-2t3z-kycu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/phpmailer/phpmailer@6.0.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.27",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.27"
        },
        {
            "reference_url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v6.0.6",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v6.0.6"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-19296",
            "reference_id": "CVE-2018-19296",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-19296"
        }
    ],
    "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": 502,
            "name": "Deserialization of Untrusted Data",
            "description": "The product deserializes untrusted data without sufficiently verifying that the resulting data will be valid."
        },
        {
            "cwe_id": 915,
            "name": "Improperly Controlled Modification of Dynamically-Determined Object Attributes",
            "description": "The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified."
        },
        {
            "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-3p76-2t3z-kycu"
}