Skip to main content
Menu
Advisories

Malicious code in oracle-redis (npm)

GHSA-8M7M-R8MW-MVQ2Published Updated GitHubMalware

Description

Source: amazon-inspector (c800d0651330b1c1cd5d9c5cb2b6966eecefb2d2c28949d0670f485d820db3a6)

The package publishes as oracle-redis but ships a verbatim copy of the ioredis README, source tree, and repository URL (git://github.com/luin/ioredis.git), presenting itself as ioredis under a different name. The package.json declares two additional runtime dependencies that are not part of ioredis's real dependency set and are never imported anywhere in the shipped built/ source: redis-type-intel ^1.10.5 and pino-ulid ^2.12.2. Because they are ordinary dependencies with caret ranges, npm install oracle-redis resolves and installs those two packages (and their transitive graph) into the installer's node_modules, executing whatever lifecycle scripts they declare, even though nothing in the ioredis code being wrapped ever loads them. The combination of a name-squat lure over a popular library plus unused, caret-pinned extra dependencies is a dependency-delivery shape: the harm, if any, arrives through the transitive install of the extra names rather than through this tarball's own code.

---

Credit: OpenSSF (source)

Affected versions

References