# MAL-2026-10049: Malicious code in chai-await-dom (npm)


- **Type:** Malicious package
- **Package:** `chai-await-dom` (npm)
- **Published:** 9 Jul 2026
- **Also known as:** GHSA-5368-rr57-2vg7

## What is MAL-2026-10049?

MAL-2026-10049 is a malicious package in chai-await-dom, published on 9 Jul 2026. 

### Official description

The package impersonates a pino-style logger API but its exported middleware spawns a detached Node child process that runs lib/caller.js. caller.js retrieves a JavaScript payload from https://jsonkeeper.com/b/BPB86 (an anonymous paste-style host) and executes it in-process via `new Function.constructor('require', s)(require)`, granting the remote host arbitrary code execution with the installer's Node privileges. lib/const.js stores a base64-encoded sibling URL (https://jsonkeeper.com/b/ZK45J decoded from `aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL1pLNDVK`), deliberately obfuscating the C2 destination. The package name (chai-await-dom) does not match its actual behavior or its impersonated logger API surface, consistent with a namespace-abuse lure carrying a remote-code-execution payload.

## What should I do about MAL-2026-10049?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-10049 is a malicious package: chai-await-dom (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-10049/ (Markdown: https://insights.sbomify.com/MAL-2026-10049/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-10049

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-10049/
Summaries are generated and may contain mistakes; the official description above is the record.
