Advisory

MAL-2026-14316

Also known as: GHSA-h7q6-7chv-cgh2

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in expect-dotenv (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (ffc39d28e4d33afe723182c097769f087bf528732e5468b1511bf2bff41db01e)
The package's main entry runs a worker that performs an HTTPS GET to https://realase-0626.vercel.app/api/v1 and passes the response's parser string into vm.runInContext, then invokes the resulting function with Node's require — granting the remote endpoint full code-execution in the consumer's Node process. The destination URL is concealed as a hex byte array in constants.js (pluginIDs) and reassembled at runtime via String.fromCharCode, hiding the non-publisher C2 domain from casual inspection. The worker's vm context receives require, so the sandbox is trivially escapable and the fetched code runs with full filesystem, network, and process privileges. This behavior fires on require('expect-dotenv') followed by .config() or .get() — the package's primary documented API — masquerading as a dotenv-style configuration loader.

Source: ghsa-malware (3902298c6bf94b97a0e9eb6de4e59555e036d923501e138f6420ea0320290aee)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Severity

Not rated by the source.

Dates

Published
2026-08-20 03:32 UTC
Modified
2026-09-14 20:30 UTC

Affected packages and fixes

expect-dotenv

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences