char-ai-sdk (npm) · Malicious Code
Affects char-ai-sdkSource GCVE Database
Malicious package : remove char-ai-sdk 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-20195
What to do
Remove char-ai-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 |
|---|---|---|
| npmchar-ai-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 char-ai-sdk npm package version 1.0.0 contains malicious code disguised as an AI SDK. It includes large obfuscated JavaScript blobs that execute arbitrary code upon import, along with a native addon that detects virtualized or sandboxed environments. This combination is characteristic of a dropper with anti-analysis features, enabling arbitrary code execution on machines that install and import the package.