You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[root@d992b56c077e /]# grype --version
grype 0.77.4
[root@d992b56c077e /]# grype bom.json
✔ Vulnerability DB [no update available]
✔ Scanned for vulnerabilities [1 vulnerability matches]
├── by severity: 1 critical, 0 high, 0 medium, 0 low, 0 negligible
└── by status: 0 fixed, 1 not-fixed, 0 ignored
[0000] ERROR failed to fetch latest version: Get "https://toolbox-data.anchore.io/grype/releases/latest/VERSION": tls: failed to verify certificate: x509: certificate has exp
NAME INSTALLED FIXED-IN TYPE VULNERABILITY SEVERITY
gen-mapping 0.3.5 npm GHSA-8rmg-jf7p-4p22 Critical
What you expected to happen:
The malicious package is: https://www.npmjs.com/package/gen-mapping which is a typesquatting attempt which got cought and squashed. The package in actual usage is: @jridgewell/gen-mapping. Which IMHO is also correctly stated in the provided BOM:
I think this is because Syft isn't decoding the Group field from CycloneDX JSON: anchore/syft#1202
If Grype is pointed at an SBOM, even in CycloneDX format, where the component's name field contains "@jridgewell/gen-mapping" in the name, then Grype doesn't find this issue.
The path to a fix is probably to fix that Syft issue around the handling of the CycloneDX Group field. This issue is probably also the cause of #1701.
What happened:
Our pipeline recently broke due to critical finding of GHSA-8rmg-jf7p-4p22
What you expected to happen:
The malicious package is: https://www.npmjs.com/package/gen-mapping which is a typesquatting attempt which got cought and squashed. The package in actual usage is: @jridgewell/gen-mapping. Which IMHO is also correctly stated in the provided BOM:
How to reproduce it (as minimally and precisely as possible):
package.json
Anything else we need to know?:
I attached example boms, which trigger the issue.
Environment:
grype version
:cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: