MAL-2026-16394

    Dashboard / Malicious Package / MAL-2026-16394

    MAL-2026-16394

    Published: 22 Sept 2026Last Modified: 22 Sept 2026Aliases: 
    GHSA-q747-c2cv-gfhj

    Summary: Malicious code in envparse2 (npm)

    Details: 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.

    Affected packages

    Package

    Name: envparse2

    Purl: pkg:npm/envparse2

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    1.0.1