@basis-theory-elements/api-client (npm) · Malicious Code
Affects @basis-theory-elements/api-clientSource GCVE Database
Malicious package : remove @basis-theory-elements/api-client and rotate any secrets on hosts that installed it.
Data as of 19 Nov 2026, 07:52 UTC
Malicious package
Published to npm · OSV MAL-2026-20188
What to do
Remove @basis-theory-elements/api-client 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@basis-theory-elements/api-client | 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 @basis-theory-elements/api-client version 99.9.1 is identified as malicious. It declares a dependency as an HTTPS tarball URL rather than a versioned package, allowing arbitrary code execution during installation without integrity or publisher verification. The package name mimics a legitimate vendor scope and uses an implausibly high version number, consistent with dependency confusion attacks.