Summary
Togoder Security scanned the npm package @emnapi/wasi-threads@1.2.1 on Oct 6, 2026. An AI review of 6 source files produced no findings. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.
Findings
No findings. The reviewer saw nothing malicious or risky in this version.
Files reviewed
| File | Verdict | What the reviewer saw |
|---|---|---|
| dist/wasi-threads.cjs.js | safe | No malicious patterns detected; the code is a legitimate WebAssembly threads (WASI-threads/emnapi) library without data exfiltration, credential harvesting, obfuscation, or process spawning. |
| dist/wasi-threads.esm-bundler.js | safe | This is a legitimate WebAssembly threads library (emnapi/wasi-threads) implementing worker thread management and WASI support without any malicious patterns. |
| dist/wasi-threads.js | safe | No malicious patterns detected; the code is a legitimate WebAssembly WASI threads implementation with no data exfiltration, credential harvesting, shell execution, or other security concerns. |
| dist/wasi-threads.min.mjs | safe | No malicious patterns detected; this is a legitimate WASI threads polyfill with no exfiltration, obfuscation, credential harvesting, or suspicious network/file/process activity. |
| dist/wasi-threads.mjs | safe | The code is a legitimate WASI threads implementation for WebAssembly with no malicious patterns detected. |
| index.js | safe | No malicious patterns detected |
Affected version ranges
1 of 3 scanned versions of @emnapi/wasi-threads are flagged: 1.2.3 (critical). The latest scanned version, 2.0.1, is not scanned. Only versions we have scanned are listed; unscanned versions between them are not covered.
| Versions | Verdict | Count | Range | Top findings |
|---|---|---|---|---|
| 2.0.1 | Not scanned | 1 | 2.0.1 | |
| 1.2.3 | Critical | 1 | 1.2.3 | Dynamic code execution; Deserialization of error objects from SharedArrayBuffer |
| 1.2.2 | Needs review | 1 | 1.2.2 | Dynamic code execution via Error constructor lookup; Cross-thread message passing with untrusted input |
| 1.2.1 | No issues | 1 | 1.2.1 | |
| 1.0.4 โ 1.1.0 | Not scanned | 2 | >=1.0.4 <=1.1.0 |
Flagged files across versions
- critical
dist/wasi-threads.js (Dynamic code execution)
NPS-76A90B79C450: present in 1.2.3
Full list, including published versions not scanned yet: version ranges API.
Scanned versions of @emnapi/wasi-threads
Frequently asked questions
Is @emnapi/wasi-threads safe to use?
Our AI source review of @emnapi/wasi-threads@1.2.1 found no malicious code: no install-time payloads, credential theft, exfiltration, obfuscated loaders or backdoors.
Does @emnapi/wasi-threads contain malware?
No malware was identified in @emnapi/wasi-threads@1.2.1 when Togoder Security scanned it on Oct 6, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.
How was @emnapi/wasi-threads checked?
Togoder Security downloaded the published npm package and had an AI model read its 6 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.
How do I scan @emnapi/wasi-threads together with the rest of my dependencies?
Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in @emnapi/wasi-threads@1.2.1, cost nothing.