Skip to main content
MalwarePublished

self-sign (npm) · Malicious Code

Affects self-signSource GCVE Database

0

Malicious package : remove self-sign and rotate any secrets on hosts that installed it.

Data as of 10 Sep 2026, 06:37 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14544

What to do

Remove self-sign from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmself-signAffected
  • 5.6.1 – 5.6.9
9 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package self-sign contains malicious code in its generate() function in version 5.6.7 and related versions. This function accepts an undocumented third parameter that, when passed a string, strips certificate headers, base64-decodes the content, and evaluates it with eval(), enabling arbitrary JavaScript execution. The package name and require identifier mismatch may cause confusion with a legitimate library. Any system with this package installed should be considered fully compromised, and secrets should be rotated immediately.

References

Community reviews

Loading reviews…