cvelo
P2 · HighMalware

Malicious code in dependent-final (npm)

  • MAL-2026-18659

Description

Part of a self-republishing campaign: the package ships test.js, which in a loop gives the package a new random name, bumps its version, rewrites package.json and runs `npm publish` to publish the package again under the new name. Self-replicating publication is the propagation step of a registry worm and fills the registry with copies. Version examined: 1.0.3; tarball SHA-256 c8be1ce20c77c47e2ab48ca6c0642cc4cc7f259282d463d05b5b241a914c68d4.

Text from the OSV record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • dependent-finalnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.