Malicious code in promise-retry-utils-testmetest (npm)
- GHSA-cq9c-m7g7-f925
Description
package.json for promise-retry-utils-testmetest@1.0.1 declares a `preinstall` lifecycle hook that executes `node setup.js` on `npm install`. The package name is a typosquat-shaped variant of the widely used promise-retry utility family and has no apparent legitimate purpose for a preinstall step. The script runs automatically on installation before any consumer code is invoked, so any behavior in setup.js — including environment or credential reads, outbound network, or payload execution — fires on default install. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/6a29b90f18642a9862088bc4c1f3888ea8ac07f3/osv/malicious/npm/promise-retry-utils-testmetest/MAL-2026-20278.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
promise-retry-utils-testmetestnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.