# MAL-2026-20188: Malicious code in @basis-theory-elements/api-client (npm)

- Database: OpenSSF
- Malicious package: yes
- Published: 2026-11-18
- Modified: 2026-11-23

## Also published as

- [GHSA-94WH-C496-HM43](https://cve.now/GHSA-94WH-C496-HM43.md) (GitHub)

## Affected versions

- @basis-theory-elements/api-client (npm): all versions

## Description

@basis-theory-elements/api-client 99.9.1 is a dependency-confusion package with an inflated version number and no code of its own (`index.js` exports an empty object; the `0.0.0-stage` placeholder published four minutes earlier is inert and not listed). It declares a single dependency, `ltidisafe`, as a tarball URL outside the npm registry (`https://ltidi.storage.googleapis.com/depenconf/ltidisafe-4.0.9.tgz`). That tarball's `preinstall` script runs `node test.js` with all output discarded. The script reads the OS user name, host name and home directory, hex-encodes each, and sends each one as the leading label of a cleartext HTTP GET to `basis-theory-elements.3z3m8pklr6jii5uhsorwmxf0trzlnbb0.oastify.com`, a Burp Collaborator out-of-band callback host, so the values leave the machine through the DNS lookup alone even if the HTTP request fails. It runs on install without the package being imported. The script collects the machine's non-internal IPv4 addresses but does not send them. The name imitates the `@basis-theory` vendor namespace; the package belongs to the same campaign as `@clickwraps/fetch` (MAL-2026-20119), `@clikwraps/navigate` and `react-native-datepickerror`, which use the same payload with per-package callback hosts. The payload is hosted outside the registry, so the publisher can change it without a new npm release. Remove the package, treat any machine that installed it as having disclosed its host identity, and block the callback and tarball hosts on build hosts.

Package @basis-theory-elements/api-client@99.9.1 declares its sole dependency as an HTTPS tarball URL (`"ltidisafe": "https://ltidi.storage.googleapis.com/depenconf/ltidisafe-4.0.9.tgz"`) rather than a registry version range. On `npm install`, npm fetches whatever bytes that URL currently serves and runs any lifecycle scripts contained in that tarball, with no version pin, no integrity hash, and no publisher-match check. The shipped index.js is an empty stub, so dependency resolution is the package's entire on-install effect. The package name shadows the `@basis-theory` vendor scope, and the 99.9.1 version is implausibly high for the name — the shape associated with dependency-confusion resolution attacks against internal `@basis-theory-elements/*` packages.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

## References

- https://www.npmjs.com/package/@basis-theory-elements/api-client/v/99.9.1
- https://github.com/advisories/GHSA-94wh-c496-hm43

Page: https://cve.now/MAL-2026-20188

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
