Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53476?format=api",
    "vulnerability_id": "VCID-8bst-w9fp-7faa",
    "summary": "Sandbox Breakout / Prototype Pollution in notevil\nVersions of `notevil` are vulnerable to Sandbox Escape leading to Prototype pollution. The package fails to restrict access to the main context, allowing attacker to add or modify an object's prototype.\n\nEvaluating the payload ```try{a[b];}catch(e){e.constructor.constructor('return __proto__.arguments.callee.__proto__.polluted=true')()}``` add the `polluted` property to Function.",
    "aliases": [
        {
            "alias": "GHSA-9gxr-rhx6-4jgv"
        },
        {
            "alias": "GMS-2020-411"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/61019?format=api",
            "purl": "pkg:npm/notevil@1.3.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-echx-vz3r-ryfq"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@1.3.3"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270856?format=api",
            "purl": "pkg:npm/notevil@0.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270857?format=api",
            "purl": "pkg:npm/notevil@0.0.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.0.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270858?format=api",
            "purl": "pkg:npm/notevil@0.0.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.0.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270859?format=api",
            "purl": "pkg:npm/notevil@0.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.1.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270860?format=api",
            "purl": "pkg:npm/notevil@0.2.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.2.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270861?format=api",
            "purl": "pkg:npm/notevil@0.3.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.3.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270862?format=api",
            "purl": "pkg:npm/notevil@0.4.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.4.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270863?format=api",
            "purl": "pkg:npm/notevil@0.5.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.5.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270864?format=api",
            "purl": "pkg:npm/notevil@0.6.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.6.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270865?format=api",
            "purl": "pkg:npm/notevil@0.7.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.7.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270866?format=api",
            "purl": "pkg:npm/notevil@0.8.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.8.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270867?format=api",
            "purl": "pkg:npm/notevil@0.8.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@0.8.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270868?format=api",
            "purl": "pkg:npm/notevil@1.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@1.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270869?format=api",
            "purl": "pkg:npm/notevil@1.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@1.1.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270870?format=api",
            "purl": "pkg:npm/notevil@1.2.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@1.2.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270871?format=api",
            "purl": "pkg:npm/notevil@1.3.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@1.3.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/270872?format=api",
            "purl": "pkg:npm/notevil@1.3.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-75c9-8124-buaa"
                },
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@1.3.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/78477?format=api",
            "purl": "pkg:npm/notevil@1.3.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-8bst-w9fp-7faa"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/notevil@1.3.2"
        }
    ],
    "references": [
        {
            "reference_url": "https://www.npmjs.com/advisories/1338",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://www.npmjs.com/advisories/1338"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-9gxr-rhx6-4jgv",
            "reference_id": "GHSA-9gxr-rhx6-4jgv",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-9gxr-rhx6-4jgv"
        }
    ],
    "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": 1321,
            "name": "Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')",
            "description": "The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype."
        }
    ],
    "exploits": [],
    "severity_range_score": "4.0 - 6.9",
    "exploitability": "0.5",
    "weighted_severity": "6.2",
    "risk_score": 3.1,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-8bst-w9fp-7faa"
}