Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53248?format=api",
    "vulnerability_id": "VCID-fzhu-991c-akgr",
    "summary": "Regular Expression Denial of Service in sql-injection\nAll versions of `sql-injection` are vulnerable to Regular Expression Denial of Service. The package processes a request's body with regular expressions that may take exponentially longer to execute for large inputs. No fix is currently available. Consider using an alternative package until a fix is made available.",
    "aliases": [
        {
            "alias": "GHSA-hvxq-j2r4-4jm8"
        },
        {
            "alias": "GMS-2020-526"
        }
    ],
    "fixed_packages": [],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/78287?format=api",
            "purl": "pkg:npm/sql-injection@0.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-fzhu-991c-akgr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sql-injection@0.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/269168?format=api",
            "purl": "pkg:npm/sql-injection@0.0.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-fzhu-991c-akgr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sql-injection@0.0.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/269169?format=api",
            "purl": "pkg:npm/sql-injection@0.0.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-fzhu-991c-akgr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sql-injection@0.0.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/269170?format=api",
            "purl": "pkg:npm/sql-injection@0.0.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-fzhu-991c-akgr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sql-injection@0.0.3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/269171?format=api",
            "purl": "pkg:npm/sql-injection@0.0.4",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-fzhu-991c-akgr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sql-injection@0.0.4"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/269172?format=api",
            "purl": "pkg:npm/sql-injection@0.0.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-fzhu-991c-akgr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sql-injection@0.0.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/269173?format=api",
            "purl": "pkg:npm/sql-injection@0.0.6",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-fzhu-991c-akgr"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sql-injection@0.0.6"
        }
    ],
    "references": [
        {
            "reference_url": "https://www.npmjs.com/advisories/1163",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://www.npmjs.com/advisories/1163"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-hvxq-j2r4-4jm8",
            "reference_id": "GHSA-hvxq-j2r4-4jm8",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-hvxq-j2r4-4jm8"
        }
    ],
    "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."
        }
    ],
    "exploits": [],
    "severity_range_score": "7.0 - 8.9",
    "exploitability": "0.5",
    "weighted_severity": "8.0",
    "risk_score": 4.0,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-fzhu-991c-akgr"
}