Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/56966?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/56966?format=api", "purl": "pkg:npm/%40stoplight/simplemde@1.11.2", "type": "npm", "namespace": "@stoplight", "name": "simplemde", "version": "1.11.2", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "1.12.0", "latest_non_vulnerable_version": "1.12.0", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40417?format=api", "vulnerability_id": "VCID-bv6p-d57w-6faj", "summary": "Cross-site Scripting\nSimpleMDE suffers from XSS via an `onerror` attribute of a crafted `IMG` element, or via certain input with `[` and `(` characters, which is mishandled during construction of an `A` element.", "references": [ { "reference_url": "https://github.com/sparksuite/simplemde-markdown-editor/issues/721", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/sparksuite/simplemde-markdown-editor/issues/721" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-19057", "reference_id": "CVE-2018-19057", "reference_type": "", "scores": [], "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-19057" }, { "reference_url": "https://github.com/advisories/GHSA-wg85-p6j7-gp3w", "reference_id": "GHSA-wg85-p6j7-gp3w", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-wg85-p6j7-gp3w" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/56967?format=api", "purl": "pkg:npm/%40stoplight/simplemde@1.12.0", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540stoplight/simplemde@1.12.0" } ], "aliases": [ "CVE-2018-19057", "GHSA-wg85-p6j7-gp3w" ], "risk_score": null, "exploitability": null, "weighted_severity": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-bv6p-d57w-6faj" } ], "fixing_vulnerabilities": [], "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540stoplight/simplemde@1.11.2" }