Files
gohoarder/pkg/scanner/grype/testdata/purl-minimist-0.0.8.json
T
lukaszraczylo 65aa2e25dc fix(grype): parse file sources and scan packages by purl
grype 0.121 prints source.target as a string for file, directory and
purl sources. The parser expected an object and failed every scan.

A bare npm, PyPI or Go archive holds nothing grype can catalog, so a
scan of the archive read minimist 0.0.8 as clean. The scanner now passes
a purl for these registries and falls back to the file for others.
2026-11-23 18:06:57 +00:00

2 lines
12 KiB
JSON

{"matches":[{"vulnerability":{"id":"GHSA-xvch-5gv4-984h","dataSource":"https://github.com/advisories/GHSA-xvch-5gv4-984h","namespace":"github:language:javascript","severity":"Critical","urls":["https://nvd.nist.gov/vuln/detail/CVE-2021-44906","https://github.com/substack/minimist/issues/164","https://github.com/substack/minimist/blob/master/index.js#L69","https://snyk.io/vuln/SNYK-JS-MINIMIST-559764","https://stackoverflow.com/questions/8588563/adding-custom-properties-to-a-function/20278068#20278068","https://github.com/Marynk/JavaScript-vulnerability-detection/blob/main/minimist%20PoC.zip","https://github.com/minimistjs/minimist/issues/11","https://github.com/minimistjs/minimist/pull/24","https://github.com/minimistjs/minimist/commit/34e20b8461118608703d6485326abbb8e35e1703","https://github.com/minimistjs/minimist/commit/bc8ecee43875261f4f17eb20b1243d3ed15e70eb","https://github.com/minimistjs/minimist/commit/c2b981977fa834b223b408cfb860f933c9811e4d","https://github.com/minimistjs/minimist/commit/ef9153fc52b6cea0744b2239921c5dcae4697f11","https://github.com/minimistjs/minimist/commits/v0.2.4","https://security.netapp.com/advisory/ntap-20240621-0006"],"description":"Prototype Pollution in minimist","cvss":[{"type":"Secondary","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","metrics":{"baseScore":9.8,"exploitabilityScore":3.9,"impactScore":5.9},"vendorMetadata":{}}],"epss":[{"cve":"CVE-2021-44906","epss":0.04581,"percentile":0.91855,"date":"2026-11-22"}],"cwes":[{"cve":"CVE-2021-44906","cwe":"CWE-1321","source":"[email protected]","type":"Primary"}],"fix":{"versions":["0.2.4"],"state":"fixed","available":[{"version":"0.2.4","date":"2023-03-01","kind":"first-observed"}]},"advisories":[],"risk":4.30614},"relatedVulnerabilities":[{"id":"CVE-2021-44906","dataSource":"https://nvd.nist.gov/vuln/detail/CVE-2021-44906","namespace":"nvd:cpe","severity":"Critical","urls":["https://github.com/Marynk/JavaScript-vulnerability-detection/blob/main/minimist%20PoC.zip","https://github.com/substack/minimist/blob/master/index.js#L69","https://github.com/substack/minimist/issues/164","https://security.netapp.com/advisory/ntap-20240621-0006/","https://snyk.io/vuln/SNYK-JS-MINIMIST-559764","https://stackoverflow.com/questions/8588563/adding-custom-properties-to-a-function/20278068#20278068"],"description":"Minimist <=1.2.5 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).","cvss":[{"source":"[email protected]","type":"Primary","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","metrics":{"baseScore":9.8,"exploitabilityScore":3.9,"impactScore":5.9},"vendorMetadata":{}},{"source":"[email protected]","type":"Primary","version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","metrics":{"baseScore":7.5,"exploitabilityScore":10,"impactScore":6.5},"vendorMetadata":{}}],"epss":[{"cve":"CVE-2021-44906","epss":0.04581,"percentile":0.91855,"date":"2026-11-22"}],"cwes":[{"cve":"CVE-2021-44906","cwe":"CWE-1321","source":"[email protected]","type":"Primary"}]}],"matchDetails":[{"type":"exact-direct-match","matcher":"javascript-matcher","searchedBy":{"language":"javascript","namespace":"github:language:javascript","package":{"name":"minimist","version":"0.0.8"}},"found":{"vulnerabilityID":"GHSA-xvch-5gv4-984h","versionConstraint":"<0.2.4 (semantic)"},"fix":{"suggestedVersion":"0.2.4"}}],"artifact":{"id":"8eca3897a051f29d","name":"minimist","version":"0.0.8","type":"npm","locations":null,"language":"javascript","licenses":[],"cpes":[],"purl":"pkg:npm/[email protected]","upstreams":[]}},{"vulnerability":{"id":"GHSA-vh95-rmgr-6w4m","dataSource":"https://github.com/advisories/GHSA-vh95-rmgr-6w4m","namespace":"github:language:javascript","severity":"Medium","urls":["https://nvd.nist.gov/vuln/detail/CVE-2020-7598","https://snyk.io/vuln/SNYK-JS-MINIMIST-559764","http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00024.html","https://www.npmjs.com/advisories/1179","https://github.com/minimistjs/minimist/commit/10bd4cdf49d9686d48214be9d579a9cdfda37c68","https://github.com/minimistjs/minimist/commit/38a4d1caead72ef99e824bb420a2528eec03d9ab","https://github.com/minimistjs/minimist/commit/4cf1354839cb972e38496d35e12f806eea92c11f#diff-a1e0ee62c91705696ddb71aa30ad4f95","https://github.com/minimistjs/minimist/commit/63e7ed05aa4b1889ec2f3b196426db4500cbda94"],"description":"Prototype Pollution in minimist","cvss":[{"type":"Secondary","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","metrics":{"baseScore":5.6,"exploitabilityScore":2.3,"impactScore":3.4},"vendorMetadata":{}}],"epss":[{"cve":"CVE-2020-7598","epss":0.01931,"percentile":0.8055,"date":"2026-11-22"}],"cwes":[{"cve":"CVE-2020-7598","cwe":"CWE-1321","source":"[email protected]","type":"Primary"}],"fix":{"versions":["0.2.1"],"state":"fixed","available":[{"version":"0.2.1","date":"2020-07-28","kind":"first-observed"}]},"advisories":[],"risk":1.0234300000000003},"relatedVulnerabilities":[{"id":"CVE-2020-7598","dataSource":"https://nvd.nist.gov/vuln/detail/CVE-2020-7598","namespace":"nvd:cpe","severity":"Medium","urls":["http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00024.html","https://snyk.io/vuln/SNYK-JS-MINIMIST-559764"],"description":"minimist before 1.2.2 could be tricked into adding or modifying properties of Object.prototype using a \"constructor\" or \"__proto__\" payload.","cvss":[{"source":"[email protected]","type":"Primary","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","metrics":{"baseScore":5.6,"exploitabilityScore":2.3,"impactScore":3.4},"vendorMetadata":{}},{"source":"[email protected]","type":"Primary","version":"2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","metrics":{"baseScore":6.8,"exploitabilityScore":8.6,"impactScore":6.5},"vendorMetadata":{}}],"epss":[{"cve":"CVE-2020-7598","epss":0.01931,"percentile":0.8055,"date":"2026-11-22"}],"cwes":[{"cve":"CVE-2020-7598","cwe":"CWE-1321","source":"[email protected]","type":"Primary"}]}],"matchDetails":[{"type":"exact-direct-match","matcher":"javascript-matcher","searchedBy":{"language":"javascript","namespace":"github:language:javascript","package":{"name":"minimist","version":"0.0.8"}},"found":{"vulnerabilityID":"GHSA-vh95-rmgr-6w4m","versionConstraint":"<0.2.1 (semantic)"},"fix":{"suggestedVersion":"0.2.1"}}],"artifact":{"id":"8eca3897a051f29d","name":"minimist","version":"0.0.8","type":"npm","locations":null,"language":"javascript","licenses":[],"cpes":[],"purl":"pkg:npm/[email protected]","upstreams":[]}}],"source":{"type":"purl","target":"pkg:npm/[email protected]"},"distro":{"name":"","version":"","idLike":null},"descriptor":{"name":"grype","version":"0.121.2","configuration":{"output":["json"],"file":"","pretty":false,"distro":"","add-cpes-if-none":false,"output-template-file":"","check-for-app-update":true,"only-fixed":false,"only-notfixed":false,"ignore-wontfix":"","platform":"","search":{"scope":"squashed","unindexed-archives":false,"indexed-archives":true},"ignore":[{"vulnerability":"","include-aliases":false,"reason":"","namespace":"","fix-state":"","package":{"name":"kernel-headers","version":"","language":"","type":"rpm","location":"","upstream-name":"kernel"},"vex-status":"","vex-justification":"","match-type":"exact-indirect-match"},{"vulnerability":"","include-aliases":false,"reason":"","namespace":"","fix-state":"","package":{"name":"linux(-.*)?-headers-.*","version":"","language":"","type":"deb","location":"","upstream-name":"linux.*"},"vex-status":"","vex-justification":"","match-type":"exact-indirect-match"},{"vulnerability":"","include-aliases":false,"reason":"","namespace":"","fix-state":"","package":{"name":"linux-libc-dev","version":"","language":"","type":"deb","location":"","upstream-name":"linux"},"vex-status":"","vex-justification":"","match-type":"exact-indirect-match"},{"vulnerability":"","include-aliases":false,"reason":"","namespace":"","fix-state":"","package":{"name":"linux-kbuild-.*","version":"","language":"","type":"deb","location":"","upstream-name":"linux.*"},"vex-status":"","vex-justification":"","match-type":"exact-indirect-match"}],"exclude":[],"externalSources":{"enable":false,"maven":{"searchUpstreamBySha1":true,"baseUrl":"https://search.maven.org/solrsearch/select","rateLimit":300000000}},"match":{"java":{"using-cpes":false},"jvm":{"using-cpes":true},"dotnet":{"using-cpes":false},"golang":{"using-cpes":false,"always-use-cpe-for-stdlib":false,"allow-main-module-pseudo-version-comparison":false},"javascript":{"using-cpes":false},"python":{"using-cpes":false},"ruby":{"using-cpes":false},"rust":{"using-cpes":false},"hex":{"using-cpes":false},"stock":{"using-cpes":true},"dpkg":{"using-cpes":false,"missing-epoch-strategy":"zero","use-cpes-for-eol":false},"rpm":{"using-cpes":false,"missing-epoch-strategy":"auto","use-cpes-for-eol":false}},"fail-on-severity":"","registry":{"insecure-skip-tls-verify":false,"insecure-use-http":false,"ca-cert":""},"show-suppressed":false,"include-matcher-suppressions":false,"by-cve":false,"SortBy":{"sort-by":"risk"},"name":"","default-image-pull-source":"","from":null,"vex-documents":[],"vex-add":[],"match-upstream-kernel-headers":false,"fix-channel":{"redhat-eus":{"apply":"auto","versions":">= 8.0"},"ubuntu-esm":{"apply":"auto","versions":""}},"timestamp":true,"alerts":{"enable-eol-distro-warnings":true},"db":{"cache-dir":"/home/scanner/.cache/grype/db","update-url":"https://grype.anchore.io/databases","ca-cert":"","auto-update":true,"validate-by-hash-on-start":true,"validate-age":true,"max-allowed-built-age":432000000000000,"require-update-check":false,"update-available-timeout":30000000000,"update-download-timeout":300000000000,"max-update-check-frequency":7200000000000},"exp":{},"dev":{"db":{"debug":false}}},"db":{"status":{"schemaVersion":"v6.1.10","from":"https://grype.anchore.io/databases/v6/vulnerability-db_v6.1.10_2026-11-23T00:24:20Z_1795415312.tar.zst?checksum=sha256%3A3d24f57cd3587e2c73f686decc7ad04b213d1f3575bcf1dd847e42df94560f14","built":"2026-11-23T06:28:32Z","path":"/home/scanner/.cache/grype/db/6/vulnerability.db","valid":true},"providers":{"alma":{"captured":"2026-11-23T00:24:25Z","input":"xxh64:9fd4413e0321c324"},"alpine":{"captured":"2026-11-23T00:24:52Z","input":"xxh64:626087ccb8a36373"},"amazon":{"captured":"2026-11-23T00:24:34Z","input":"xxh64:083d74859c705607"},"arch":{"captured":"2026-11-23T00:24:23Z","input":"xxh64:767233e7552ae911"},"bitnami":{"captured":"2026-11-23T00:24:30Z","input":"xxh64:542814d1e958c4e3"},"chainguard":{"captured":"2026-11-23T00:25:25Z","input":"xxh64:40d4772eb76c342f"},"chainguard-libraries":{"captured":"2026-11-23T00:24:52Z","input":"xxh64:73b958306e2dce58"},"debian":{"captured":"2026-11-23T00:24:40Z","input":"xxh64:f9a6456f81777f29"},"dhi":{"captured":"2026-11-23T00:24:45Z","input":"xxh64:a6b8e4e1d1aecfa1"},"echo":{"captured":"2026-11-23T00:24:27Z","input":"xxh64:a2e80388a7d54bb0"},"eol":{"captured":"2026-11-23T00:24:23Z","input":"xxh64:3a3243012dede451"},"epss":{"captured":"2026-11-23T00:24:28Z","input":"xxh64:617f4201c8a347c1"},"fedora":{"captured":"2026-11-23T00:24:35Z","input":"xxh64:55853e5256082c94"},"github":{"captured":"2026-11-23T00:24:47Z","input":"xxh64:1db626b836a7b9a3"},"govulndb":{"captured":"2026-11-23T00:24:22Z","input":"xxh64:4e5d90d5b45aeeb1"},"hummingbird":{"captured":"2026-11-23T00:27:40Z","input":"xxh64:968bec75e99f7d9a"},"kev":{"captured":"2026-11-23T00:24:27Z","input":"xxh64:f9dc8833117b9cfb"},"mariner":{"captured":"2026-11-23T00:24:20Z","input":"xxh64:f8299848201c9565"},"minimos":{"captured":"2026-11-23T00:24:20Z","input":"xxh64:4f5198a5f5c667f3"},"nvd":{"captured":"2026-11-23T00:25:29Z","input":"xxh64:2a0ff8d069da733e"},"oracle":{"captured":"2026-11-23T00:24:36Z","input":"xxh64:ef43f7a6df2d7adf"},"photon":{"captured":"2026-11-23T00:24:26Z","input":"xxh64:830daa42e4331294"},"rhel":{"captured":"2026-11-23T00:26:09Z","input":"xxh64:fc3e7c2e917a2b8d"},"secureos":{"captured":"2026-11-23T00:24:20Z","input":"xxh64:16d87472840d1693"},"sles":{"captured":"2026-11-23T00:26:40Z","input":"xxh64:afa8d8bc8fe91131"},"ubuntu":{"captured":"2026-11-23T00:25:23Z","input":"xxh64:c4e9de4958b5ec11"},"wolfi":{"captured":"2026-11-23T00:24:20Z","input":"xxh64:2d968f4266204048"}}},"timestamp":"2026-11-23T17:56:17.571764491Z"}}