Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/58843?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/58843?format=api", "purl": "pkg:npm/tar@6.1.9", "type": "npm", "namespace": "", "name": "tar", "version": "6.1.9", "qualifiers": {}, "subpath": "", "is_vulnerable": false, "next_non_vulnerable_version": "6.2.1", "latest_non_vulnerable_version": "7.5.11", "affected_by_vulnerabilities": [], "fixing_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41390?format=api", "vulnerability_id": "VCID-99ay-1qy7-83ff", "summary": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')\nThe npm package \"tar\" (aka node-tar) has an arbitrary file creation/overwrite and arbitrary code execution vulnerability. node-tar aims to guarantee that any file whose location would be modified by a symbolic link is not extracted. This is, in part, achieved by ensuring that extracted directories are not symlinks. Additionally, in order to prevent unnecessary stat calls to determine whether a given path is a directory, paths are cached when directories are created.", "references": [ { "reference_url": "https://www.npmjs.com/package/tar", "reference_id": "", "reference_type": "", "scores": [], "url": "https://www.npmjs.com/package/tar" }, { "reference_url": "https://www.oracle.com/security-alerts/cpuoct2021.html", "reference_id": "", "reference_type": "", "scores": [], "url": "https://www.oracle.com/security-alerts/cpuoct2021.html" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-37712", "reference_id": "CVE-2021-37712", "reference_type": "", "scores": [], "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-37712" }, { "reference_url": "https://github.com/npm/node-tar/security/advisories/GHSA-qq89-hq3f-393p", "reference_id": "GHSA-qq89-hq3f-393p", "reference_type": "", "scores": [], "url": "https://github.com/npm/node-tar/security/advisories/GHSA-qq89-hq3f-393p" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/58841?format=api", "purl": "pkg:npm/tar@4.4.18", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@4.4.18" }, { "url": "http://public2.vulnerablecode.io/api/packages/58842?format=api", "purl": "pkg:npm/tar@5.0.10", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@5.0.10" }, { "url": "http://public2.vulnerablecode.io/api/packages/58843?format=api", "purl": "pkg:npm/tar@6.1.9", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@6.1.9" } ], "aliases": [ "CVE-2021-37712", "GHSA-qq89-hq3f-393p" ], "risk_score": null, "exploitability": null, "weighted_severity": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-99ay-1qy7-83ff" }, { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41391?format=api", "vulnerability_id": "VCID-k4vc-34un-bka6", "summary": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')\nThe npm package \"tar\" (aka node-tar) has an arbitrary file creation/overwrite and arbitrary code execution vulnerability. node-tar aims to guarantee that any file whose location would be outside of the extraction target directory is not extracted.", "references": [ { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-37713", "reference_id": "CVE-2021-37713", "reference_type": "", "scores": [], "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-37713" }, { "reference_url": "https://github.com/npm/node-tar/security/advisories/GHSA-5955-9wpr-37jh", "reference_id": "GHSA-5955-9wpr-37jh", "reference_type": "", "scores": [], "url": "https://github.com/npm/node-tar/security/advisories/GHSA-5955-9wpr-37jh" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/58841?format=api", "purl": "pkg:npm/tar@4.4.18", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@4.4.18" }, { "url": "http://public2.vulnerablecode.io/api/packages/58842?format=api", "purl": "pkg:npm/tar@5.0.10", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@5.0.10" }, { "url": "http://public2.vulnerablecode.io/api/packages/58843?format=api", "purl": "pkg:npm/tar@6.1.9", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@6.1.9" } ], "aliases": [ "CVE-2021-37713", "GHSA-5955-9wpr-37jh" ], "risk_score": null, "exploitability": null, "weighted_severity": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-k4vc-34un-bka6" } ], "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@6.1.9" }