@dsft/ft-element (npm) · Malicious Code
Affects @dsft/ft-elementSource GCVE Database
Malicious package : remove @dsft/ft-element and rotate any secrets on hosts that installed it.
Data as of 15 Jul 2026, 12:55 UTC
Malicious package
Published to npm · OSV MAL-2026-5889
What to do
Remove @dsft/ft-element 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 |
|---|---|---|
| npm@dsft/ft-element | 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 @dsft/ft-element version 2.5.9 contains malicious code that executes during installation. Its preinstall script sends a JSON beacon with the installing project's directory name to an attacker-controlled URL without user consent. This behavior leaks potentially sensitive project information and confirms a successful dependency-confusion attack. Although the author claims it is a harmless proof of concept, the unconditional data exfiltration constitutes a supply-chain attack. Systems with this package installed should be considered compromised, and secrets should be rotated immediately.