Skip to main content
Menu
Advisories

Malicious code in promise-retry-utils-testmetest (npm)

MAL-2026-20278Published Updated OpenSSFMalware

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.

Affected versions

References