Malicious code in dependent-final (npm)
- GHSA-x23q-jp7q-hjf8
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/96784445b5d8dfec9ef357a890e7db920b562f09/osv/malicious/npm/dependent-final/MAL-2026-18659.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
dependent-finalnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.