transform-regexp-constructors (npm) · Malicious Code
Affects transform-regexp-constructorsSource GCVE Database
Malicious package : remove transform-regexp-constructors and rotate any secrets on hosts that installed it.
Data as of 27 Oct 2026, 00:33 UTC
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
| Product | Affected | Fixed in |
|---|---|---|
| npmtransform-regexp-constructors | Affected
| 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.