Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/57247?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/57247?format=api", "purl": "pkg:composer/league/commonmark@0.15.6", "type": "composer", "namespace": "league", "name": "commonmark", "version": "0.15.6", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "0.18.1", "latest_non_vulnerable_version": "2.8.1", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40562?format=api", "vulnerability_id": "VCID-m1hf-fjyz-rbdp", "summary": "Cross-site Scripting\nCross-site scripting (XSS) vulnerability in the PHP League CommonMark library allows remote attackers to insert unsafe URLs into HTML (even if `allow_unsafe_links` is false) via a newline character (e.g., writing `javascript` as `javascri%0apt`).", "references": [ { "reference_url": "https://github.com/thephpleague/commonmark/issues/337", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/thephpleague/commonmark/issues/337" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/57248?format=api", "purl": "pkg:composer/league/commonmark@0.18.1", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/league/commonmark@0.18.1" } ], "aliases": [ "CVE-2018-20583" ], "risk_score": null, "exploitability": null, "weighted_severity": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-m1hf-fjyz-rbdp" } ], "fixing_vulnerabilities": [], "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/league/commonmark@0.15.6" }