Skip to main content
MalwarePublished Updated

transform-regexp-constructors (npm) · Malicious Code

Affects transform-regexp-constructorsSource GCVE Database

0

Malicious package : remove transform-regexp-constructors and rotate any secrets on hosts that installed it.

Data as of 27 Oct 2026, 00:33 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-3125

What to do

Remove transform-regexp-constructors 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
npmtransform-regexp-constructorsAffected
  • >=0.4.3
  • =0.4.3
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 'transform-regexp-constructors' is part of the PhantomRaven supply chain attack campaign. It uses a Remote Dynamic Dependency technique to fetch and execute a malicious payload during installation. This payload harvests developer emails, CI/CD tokens, and fingerprints the host system, exfiltrating data to an attacker-controlled server. Developers and CI/CD systems that installed this package should consider their environments compromised and rotate all accessible secrets and credentials immediately.

References

Community reviews

Loading reviews…