# MAL-2026-13703: Malicious code in chai-as-promised-plus (npm)


- **Type:** Malicious package
- **Package:** `chai-as-promised-plus` (npm)
- **Published:** 10 Aug 2026

## What is MAL-2026-13703?

MAL-2026-13703 is a malicious package in chai-as-promised-plus, published on 10 Aug 2026. 

### Official description

The package name mimics the widely-used chai-as-promised assertion helper and reuses its README/description. lib/chai-as-promised-plus.js defines the legitimate plugin factory and then overwrites module.exports with require('./config/config'), so any consumer that imports the package loads lib/config/config.js. That file is a 3,546,568-byte single-line javascript-obfuscator.io bundle (rotated string array of length 20721, two decoder functions, control-flow-flattening dispatcher of the form while(!![]){try{...}catch(o){y.push(y.shift())}}, hex-keyed object literals). A test-assertion helper has no legitimate need to ship a multi-megabyte obfuscated blob that replaces its exports at load time; the concealed payload runs in the consumer's Node.js process on require, which is the standard shape of a typosquat supply-chain attack delivering attacker-controlled code to the installer.

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

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-13703 is a malicious package: chai-as-promised-plus (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-13703/ (Markdown: https://insights.sbomify.com/MAL-2026-13703/index.md)
```

## Sources

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

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