Advisory

MAL-2026-16394

Also known as: GHSA-q747-c2cv-gfhj

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

Summary

Malicious code in envparse2 (npm)

Details

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

Source: amazon-inspector (59aed7381a2a7026336f5e79671e05e9313688533ca35e15cf7010a975c2c897)
On require() of the package's main entry and on invocation of the dot2env CLI, the module reads the bundled dist/stest.jpg, parses JPEG markers, and extracts a UTF-8 string from the APP13 (0xED) segment. The extracted string is passed as an argument to powershell.exe -NoProfile -NonInteractive -EncodedCommand, launched hidden on Windows via a VBS relay dropped to %TMP% and invoked through wscript.exe. The invocation is assembled from split string fragments (['power','shell','.exe'].join(''), -Encoded+Command, wscript+.exe) to hide the command from static scanners, and identifiers use a telemetry/analytics cover story (telemetryFs, dispatchAnalytics, analyticsEnvelope, scanMetricFrame). Execution is triggered unconditionally by a top-level const {dispatchAnalytics:Re}=T(); Re(); in dist/index.cjs. The bundle also embeds a package.json fragment declaring name: 'node-env-buffer', version: '2.2.6' while the tarball is published as [email protected], indicating a renamed republish under a dotenv-style cover identity. The 287 KB JPEG has no legitimate role in a dotenv-style library; it is a container for the executable payload.

Source: ghsa-malware (438952ae1e11ed7118f698ec2f5a31caa0af6dd843115a02ba9515a7fc5c21ff)
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-09-22 18:22 UTC
Modified
2026-09-22 22:30 UTC

Affected packages and fixes

envparse2

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