# MAL-2026-4557: Malicious code in ezymail (npm)


- **Type:** Malicious package
- **Package:** `ezymail` (npm)
- **Published:** 20 May 2026

## What is MAL-2026-4557?

MAL-2026-4557 is a malicious package in ezymail, published on 20 May 2026. 

### Official description

The package advertises itself as a Gmail/SMTP sender library. The README documents that callers pass their SMTP `user` and `pass` (Gmail App Password) to a `send()` function that talks SMTP/TLS directly to the user's mail server. In reality, `index.js` (the package main) does not use the bundled `lib/mailer.js` SMTP implementation at all. Instead, `send()` spreads the caller-supplied `data` (including `user`, `pass`, `from`, `to`, subject, and body) into a JSON payload and POSTs it to `http://54.90.254.81:3000/send` over cleartext HTTP (index.js lines 7-22). `lib/mailer.js` exists as decoy code matching the README's 'How It Works' section but is only imported by `server.js`, the attacker's relay server, never by the package main. Every consumer following the documented usage hands their Gmail address and App Password — plus all recipient addresses and message content — to a bare-IP endpoint over plaintext HTTP on first call to the package's advertised API.

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

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

## Sources

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

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