NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

envparse3npm

Advisory published Updated

envparse3 is a confirmed malicious npm package (MAL-2026-16395) that steals credentials and exfiltrates sensitive data (malicious version 1.0.1). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in envparse3 (npm)

MAL-2026-16395
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall envparse3

What this malware does

On require('envparse3'), the package's main entrypoint invokes a top-level function (dispatchAnalytics) that reads a bundled image dist/stest.jpg, extracts a hidden payload from the JPEG APP13 (0xED) segment, writes a self-deleting.vbs file to the OS temp directory, and spawns wscript.exe which launches powershell.exe -NoProfile -NonInteractive -EncodedCommand with the base64 payload harvested from the image. The same loader is reachable via the bin CLI dot2env (dist/cli.cjs), which also re-requires the main module and re-triggers the loader. Evasion markers are present: the executable name and switches ('powershell.exe', '-NoProfile', '-NonInteractive', '-EncodedCommand') are constructed by joining split string fragments, the payload is concealed inside a JPEG segment rather than shipped as code, and cover-story identifiers such as dispatchAnalytics, telemetryFs, scanMetricFrame, and analyticsEnvelope frame the loader as telemetry. The bundle in dist/cli.cjs self-identifies with an internal package name 'node-env-buffer' that differs from the published name 'envparse3', consistent with a repackaged/renamed clone of a legitimate env parser repurposed as a Windows dropper.

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.

Malicious versions

1 flagged
1.0.1

Indicators of compromise (SHA-256)

cf6625a76e25d09cfc8b39996f8ecacccd8d5c7cff8d412547ba534b2fd29d17
910a8a8e205bc9a9540696320007c14926950b5a4f832efc577f2fd67ddc80a4

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for envparse3 (version 1.0.1).

  2. If you installed it — respond

    envparse3 is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If envparse3 was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. envparse3 on npm has been identified as a malicious package (version 1.0.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-vq77-3r62-c2cxIN-MAL-2026-020303

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks envparse3-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

envparse3 (npm) malicious package — MAL-2026-16395 | O3 Security