twilio-sdk (npm) · Malicious Code
Affects twilio-sdkSource GCVE Database
Malicious package : remove twilio-sdk and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 15:07 UTC
Malicious package
Published to npm · OSV MAL-2026-5621
What to do
Remove twilio-sdk 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 |
|---|---|---|
| npmtwilio-sdk | 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 'twilio-sdk' impersonates the official Twilio Node SDK but contains an empty API and executes a post-install script that collects detailed environment information from the installer. This data includes hostname, domain, CI environment variables, and internal npm registry settings, which it sends unencrypted to a hardcoded external IP address. This behavior constitutes install-time reconnaissance and can leak sensitive internal infrastructure details if mistakenly installed by developers.
References
- npmjs.com/package/twilio-sdk/v/0.2.2 (opens in a new tab)
- npmjs.com/package/twilio-sdk/v/0.1.1 (opens in a new tab)
- npmjs.com/package/twilio-sdk/v/0.2.0 (opens in a new tab)
- npmjs.com/package/twilio-sdk/v/0.2.1 (opens in a new tab)
- npmjs.com/package/twilio-sdk/v/0.1.2 (opens in a new tab)
- npmjs.com/package/twilio-sdk/v/0.2.4 (opens in a new tab)
- npmjs.com/package/twilio-sdk/v/0.1.0 (opens in a new tab)
- npmjs.com/package/twilio-sdk/v/0.1.3 (opens in a new tab)
- npmjs.com/package/twilio-sdk/v/0.2.3 (opens in a new tab)
- github.com/advisories/GHSA-889w-p55g-884m (opens in a new tab)