# MAL-2026-5740: Malicious code in 2fa-exe (npm)


- **Type:** Malicious package
- **Package:** `2fa-exe` (npm)
- **Published:** 13 Jun 2026

## What is MAL-2026-5740?

MAL-2026-5740 is a malicious package in 2fa-exe, published on 13 Jun 2026. 

### Official description

Package advertises itself as an SVG fetcher/sanitizer but ships an undocumented exported factory `getPlugin()` in index.js that performs an HTTPS GET to https://www.jsonkeeper.com/b/NGY3C (an anonymous, attacker-mutable JSON-paste service) and passes the response's `model` field directly to `eval()`. Any consumer that calls `getPlugin()` — or any tooling that mass-invokes a package's exports — executes arbitrary JavaScript fetched from a third-party paste at the moment of the call. The remote payload can change at any time without a new package release, so today's benign content provides no assurance about tomorrow's. The package name `2fa-exe` also has no relationship to the stated SVG-sanitizer purpose, consistent with bait/lure framing. There is no integrity check, no pinning, and no mention of this behavior in the README.

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

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-5740 is a malicious package: 2fa-exe (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-5740/ (Markdown: https://insights.sbomify.com/MAL-2026-5740/index.md)
```

## Sources

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

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