Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39804?format=api",
    "vulnerability_id": "VCID-yrg7-471n-d3fg",
    "summary": "Code Injection\nA remote code execution vulnerability was found within the pg module when the remote database or query specifies a specially crafted column name. There are 2 likely scenarios in which one would likely be vulnerable. 1) Executing unsafe, user-supplied sql which contains a malicious column name. 2) Connecting to an untrusted database and executing a query which returns results where any of the column names are malicious.",
    "aliases": [
        {
            "alias": "CVE-2017-16082"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53979?format=api",
            "purl": "pkg:npm/pg@2.11.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@2.11.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53980?format=api",
            "purl": "pkg:npm/pg@3.6.4",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@3.6.4"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53981?format=api",
            "purl": "pkg:npm/pg@4.5.7",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@4.5.7"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53982?format=api",
            "purl": "pkg:npm/pg@5.2.1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@5.2.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53987?format=api",
            "purl": "pkg:npm/pg@6.4.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.4.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53989?format=api",
            "purl": "pkg:npm/pg@7.1.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@7.1.2"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55634?format=api",
            "purl": "pkg:npm/pg@2.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-yrg7-471n-d3fg"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@2.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53969?format=api",
            "purl": "pkg:npm/pg@3.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-mu5a-vc5u-z7dv"
                },
                {
                    "vulnerability": "VCID-yrg7-471n-d3fg"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@3.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53970?format=api",
            "purl": "pkg:npm/pg@4.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-mu5a-vc5u-z7dv"
                },
                {
                    "vulnerability": "VCID-yrg7-471n-d3fg"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@4.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53972?format=api",
            "purl": "pkg:npm/pg@6.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-mu5a-vc5u-z7dv"
                },
                {
                    "vulnerability": "VCID-yrg7-471n-d3fg"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53977?format=api",
            "purl": "pkg:npm/pg@7.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-mu5a-vc5u-z7dv"
                },
                {
                    "vulnerability": "VCID-yrg7-471n-d3fg"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@7.0.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16082",
            "reference_id": "CVE-2017-16082",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16082"
        }
    ],
    "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-yrg7-471n-d3fg"
}