Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/59248?format=api",
    "purl": "pkg:npm/class-validator@0.13.1",
    "type": "npm",
    "namespace": "",
    "name": "class-validator",
    "version": "0.13.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41576?format=api",
            "vulnerability_id": "VCID-cv8f-wc36-eyb3",
            "summary": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')\nIn TypeStack class-validat, validate() input validation can be bypassed because certain internal attributes can be overwritten via a conflicting name. Even though there is an optional forbidUnknownValues parameter that can be used to reduce the risk of this bypass, this option is not documented and thus most developers configure input validation in the vulnerable default manner. With this vulnerability, attackers can launch SQL Injection or XSS attacks by injecting arbitrary malicious input. NOTE: a software maintainer agrees with the \"is not documented\" finding but suggests that much of the responsibility for the risk lies in a different product.",
            "references": [
                {
                    "reference_url": "https://github.com/typestack/class-validator/issues/438",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/typestack/class-validator/issues/438"
                },
                {
                    "reference_url": "https://github.com/typestack/class-validator/issues/438#issuecomment-964728471",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/typestack/class-validator/issues/438#issuecomment-964728471"
                },
                {
                    "reference_url": "https://github.com/typestack/class-validator#passing-options",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/typestack/class-validator#passing-options"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2019-18413",
                    "reference_id": "CVE-2019-18413",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-18413"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-fj58-h2fr-3pp2",
                    "reference_id": "GHSA-fj58-h2fr-3pp2",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-fj58-h2fr-3pp2"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "CVE-2019-18413",
                "GHSA-fj58-h2fr-3pp2"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-cv8f-wc36-eyb3"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/class-validator@0.13.1"
}