Skip to main content

Malicious code in native-env (npm)

0
Critical
Published: 09/28/2026 (09/28/2026, 22:06:19 UTC)
Source: GCVE Database
Product: native-env

Description

The npm package [email protected] is a malicious package masquerading as a zero-dependency dotenv toolkit. On Windows, it executes attacker-controlled code immediately upon being required or run. It uses a JPEG file as a payload carrier to evade static scanners, writes a VBScript to the temp directory, and launches a PowerShell command with an encoded payload. The package is a typosquatting attempt targeting dotenv-family packages.

Affected software

npmghsa
native-env
Affected versions
=1.0.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/29/2026, 04:47:27 UTC

Technical Analysis

[email protected] is a malicious npm package that executes arbitrary code on Windows systems as soon as it is loaded or its CLI is run. It achieves this by reading a hidden payload embedded in a JPEG file (dist/stest.jpg) within the package, writing a randomly named VBScript file to the OS temporary directory, and launching it via wscript.exe to run a PowerShell command with an encoded payload. The VBScript self-deletes after execution. The package uses obfuscated JavaScript code with RC4 decryption to load and execute the payload. The package name conflicts with an inner package.json identifying it as node-env-buffer 2.2.6 and exposes a CLI referencing environment variables consistent with typosquatting attempts on popular dotenv packages.

Potential Impact

This package allows execution of arbitrary attacker-chosen code on Windows systems immediately upon installation or use, potentially leading to full system compromise or further malicious activity. The use of obfuscation and payload hiding techniques increases the difficulty of detection by static analysis tools.

Mitigation Recommendations

No official patch or fix is available for this malicious package. The recommended mitigation is to avoid installing or using [email protected] and to verify package authenticity before installation. Users should remove this package if present and rely only on trusted and verified dotenv packages from official sources.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-17237
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6abb4187f7a7c54106cc2f8b

Added to database: 09/29/2026, 04:41:43 UTC

Last enriched: 09/29/2026, 04:47:27 UTC

Last updated: 09/29/2026, 10:19:18 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses