Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/270128?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/270128?format=api", "purl": "pkg:npm/%40sap-cloud-sdk/core@1.19.1-alpha.7", "type": "npm", "namespace": "@sap-cloud-sdk", "name": "core", "version": "1.19.1-alpha.7", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "1.21.2", "latest_non_vulnerable_version": "1.52.0", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53345?format=api", "vulnerability_id": "VCID-y1y4-ruee-mbbz", "summary": "Improper Authorization in @sap-cloud-sdk/core\nAffected versions of `@sap-cloud-sdk/core` do not properly validate JWTs. The `verifyJwt()` function does not properly validate the URL from where the public verification key for the JWT can be downloaded. Any URL was trusted which makes it possible to provide a URL belonging to a manipulated JWT. Upgrade to or later.", "references": [ { "reference_url": "https://www.npmjs.com/advisories/1540", "reference_id": "", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://www.npmjs.com/advisories/1540" }, { "reference_url": "https://github.com/advisories/GHSA-r2vw-jgq9-jqx2", "reference_id": "GHSA-r2vw-jgq9-jqx2", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-r2vw-jgq9-jqx2" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/78397?format=api", "purl": "pkg:npm/%40sap-cloud-sdk/core@1.21.2", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540sap-cloud-sdk/core@1.21.2" } ], "aliases": [ "GHSA-r2vw-jgq9-jqx2", "GMS-2020-37" ], "risk_score": 4.0, "exploitability": "0.5", "weighted_severity": "8.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-y1y4-ruee-mbbz" } ], "fixing_vulnerabilities": [], "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540sap-cloud-sdk/core@1.19.1-alpha.7" }