Skip to main content
MalwarePublished Updated

self-certificates (npm) · Malicious Code

Affects self-certificatesSource GCVE Database

0

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

Data as of 26 Oct 2026, 16:18 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14543

What to do

Remove self-certificates 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-certificatesAffected
  • 1.0.1 – 1.2.9
27 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-certificates', advertised as a self-signed TLS certificate generator, contains malicious code embedded within a fake RSA private key file (test/key.pem). This file's base64-decoded content is JavaScript that fetches data from a remote URL and executes it via a detached, hidden Python process. The package uses a PEM wrapper to smuggle JavaScript code that is then executed by a dependency, effectively acting as a multi-stage dropper for arbitrary attacker-controlled code on the installer's machine. Installation or use of this package can lead to full system compromise.

References

Community reviews

Loading reviews…