Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/270122?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/270122?format=api", "purl": "pkg:npm/%40hapi/subtext@7.0.1", "type": "npm", "namespace": "@hapi", "name": "subtext", "version": "7.0.1", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "6.1.3", "latest_non_vulnerable_version": "7.0.3", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53175?format=api", "vulnerability_id": "VCID-bjau-z6y8-2qbh", "summary": "Prototype Pollution in @hapi/subtext\nVersions of `@hapi/pez` prior to 4.1.2 or 5.0.1 are vulnerable to Prototype Pollution. A multipart payload can be constructed in a way that one of the parts’ content can be set as the entire payload object’s prototype. If this prototype contains data, it may bypass other validation rules which enforce access and privacy. If this prototype evaluates to null, it can cause unhandled exceptions when the request payload is accessed.", "references": [ { "reference_url": "https://github.com/hapijs/pez", "reference_id": "", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/hapijs/pez" }, { "reference_url": "https://www.npmjs.com/advisories/1480", "reference_id": "", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://www.npmjs.com/advisories/1480" }, { "reference_url": "https://github.com/advisories/GHSA-g9cg-h3jm-cwrc", "reference_id": "GHSA-g9cg-h3jm-cwrc", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-g9cg-h3jm-cwrc" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/78394?format=api", "purl": "pkg:npm/%40hapi/subtext@7.0.3", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540hapi/subtext@7.0.3" } ], "aliases": [ "GHSA-g9cg-h3jm-cwrc", "GMS-2020-31" ], "risk_score": 4.0, "exploitability": "0.5", "weighted_severity": "8.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-bjau-z6y8-2qbh" }, { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53264?format=api", "vulnerability_id": "VCID-ytka-8p91-9yet", "summary": "Denial of Service in @hapi/content\nVersions of `@hapi/content` prior to 4.1.1 and 5.0.1 are vulnerable to Denial of Service. The Content-Encoding HTTP header parser has a vulnerability which will cause the function to throw a system error if the header contains some invalid values. Because hapi rethrows system errors (as opposed to catching expected application errors), the error is thrown all the way up the stack. If no unhandled exception handler is available, the application will exist, allowing an attacker to shut down services.", "references": [ { "reference_url": "https://www.npmjs.com/advisories/1476", "reference_id": "", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://www.npmjs.com/advisories/1476" }, { "reference_url": "https://github.com/advisories/GHSA-3wqh-h42r-x8fq", "reference_id": "GHSA-3wqh-h42r-x8fq", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-3wqh-h42r-x8fq" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/78394?format=api", "purl": "pkg:npm/%40hapi/subtext@7.0.3", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540hapi/subtext@7.0.3" } ], "aliases": [ "GHSA-3wqh-h42r-x8fq", "GMS-2020-29" ], "risk_score": 4.0, "exploitability": "0.5", "weighted_severity": "8.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ytka-8p91-9yet" } ], "fixing_vulnerabilities": [], "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540hapi/subtext@7.0.1" }