Why does socket.dev report that the latest version of next.js has a malware dependency? https://socket.dev/npm/package/next/alerts/15.2.3?tab=dependencies
“Malicious code in gen-mapping (npm) Any computer that has this package installed or running should be considered fully compromised.”
Update: looks like this is a pretty big flaw in the vulnerability scanner — not in next (check the replies for more info)
Update: thanks to @chrisw_b for hunting this down: looks like a huge flaw in the vulnerability scanner being used by these tools (it ignores namespaces on package names!)
More info:
https://github.com/jridgewell/gen-mapping/issues/12
https://github.com/anchore/grype/issues/1701
it’s hard not to be jaded when facial recognition is being used in criminal investigations while our industry is having trouble accurately testing whether two strings are equal