Advisory

MAL-2026-6590

Also known as: GHSA-7f8c-p7q8-mw86

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

Summary

Malicious code in envfile-sync-cli (npm)

Details

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

Source: amazon-inspector (097a9a647e6d99cd53b881cae4fdd747d03b319388107c946c70b8804d3d917b)
On every import of envfile-sync-cli, src/index.js calls process.dlopen on bin/native/parser.node — a 2.9MB Windows PE executable (sha256 b1aace6c70312a39ca39e6bba1d9abc6aaf9b23171089b1a548adc89f67f83c3) shipped in the tarball. The dlopen call uses the canonical load-for-side-effects shape (process.dlopen({ exports: {} }, p) with the exports object discarded), so the binary executes for its side effects rather than to provide a parser API. The native binary is functionally redundant: parse.js already implements the env-file parser in pure JavaScript, so there is no engineering reason for the.node file to exist. The package's documentation actively conceals this code: README states 'Zero dependencies. Installs instantly, nothing to audit' and 'No binary to install', the CHANGELOG only documents v1.0.0 (this version is 2.0.0), and the binary is referenced only obliquely via the bin/native/ entry in package.json's files array. The package is also a name/brand mismatch: package.json's name is envfile-sync-cli while the README, npm badge link (npmjs.com/package/envsync), bin alias (envsync), and CHANGELOG all brand the package as envsync — the standard typosquat delivery vehicle where the README impersonates a legitimate package so users trust it, while the published name differs and ships the hidden payload. The combination — undocumented native binary, silent dlopen at import time, redundant with shipped JS, README that explicitly denies the binary's existence, and brand impersonation of a different package — removes any plausible benign explanation and is consistent with smuggling attacker-controlled native code onto Windows installer machines.

Source: ghsa-malware (be5d590e3748b0cb58d102771ab22f0801a89a1be777fc7544b62cb6176eacf5)
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-06-29 07:28 UTC
Modified
2026-08-18 00:30 UTC

Affected packages and fixes

envfile-sync-cli

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