Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/245725?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/245725?format=api", "purl": "pkg:npm/vant@1.6.17", "type": "npm", "namespace": "", "name": "vant", "version": "1.6.17", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "2.1.8", "latest_non_vulnerable_version": "2.1.8", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/52053?format=api", "vulnerability_id": "VCID-7s3u-8x6a-h7e5", "summary": "Cross-Site Scripting in vant\nVersions of `vant` are vulnerable to Cross-Site Scripting. The text value of the `Picker` component column is not sanitized, which may allow attackers to execute arbitrary JavaScript in a victim's browser. Upgrade to or later.", "references": [ { "reference_url": "https://github.com/youzan/vant/issues/4270", "reference_id": "", "reference_type": "", "scores": [ { "value": "9.1", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/youzan/vant/issues/4270" }, { "reference_url": "https://github.com/youzan/vant/pull/4278/commits/d777b78c7dc2c904f474d057ea88449cfe2ca13a", "reference_id": "", "reference_type": "", "scores": [ { "value": "9.1", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/youzan/vant/pull/4278/commits/d777b78c7dc2c904f474d057ea88449cfe2ca13a" }, { "reference_url": "https://snyk.io/vuln/SNYK-JS-VANT-460461", "reference_id": "", "reference_type": "", "scores": [ { "value": "9.1", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://snyk.io/vuln/SNYK-JS-VANT-460461" }, { "reference_url": "https://www.npmjs.com/advisories/1157", "reference_id": "", "reference_type": "", "scores": [ { "value": "9.1", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://www.npmjs.com/advisories/1157" }, { "reference_url": "https://github.com/advisories/GHSA-9xr8-8hmc-389f", "reference_id": "GHSA-9xr8-8hmc-389f", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-9xr8-8hmc-389f" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/76287?format=api", "purl": "pkg:npm/vant@2.1.8", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/vant@2.1.8" } ], "aliases": [ "GHSA-9xr8-8hmc-389f", "GMS-2019-65" ], "risk_score": 4.1, "exploitability": "0.5", "weighted_severity": "8.2", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-7s3u-8x6a-h7e5" } ], "fixing_vulnerabilities": [], "risk_score": "4.1", "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/vant@1.6.17" }