Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in helmet-pro (npm)

0
Critical
Published: 08/06/2026 (08/06/2026, 12:30:20 UTC)
Source: GCVE Database
Product: helmet-pro

Description

The npm package [email protected] is a typosquatting malicious package that executes arbitrary remote code during installation. It uses an obfuscated postinstall script that fetches and executes attacker-controlled code from a remote JSON bin, enabling dynamic payload updates without republishing. The package disguises itself as a legitimate SMTP-related module to evade detection.

Affected software

npmghsa
helmet-pro
Affected versions
=10.0.4

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: 08/06/2026, 18:45:31 UTC

Technical Analysis

The helmet-pro package version 10.0.4 is a typosquat of the legitimate helmet HTTP-header middleware. Its package.json postinstall hook runs an obfuscated script that spawns a detached child process executing code fetched from a remote JSON bin (https://api.jsonbin.io/v3/b/6a719632da38895dfeb7128d). This fetched code is executed with access to Node.js require, allowing arbitrary remote code execution on the installer's machine at npm install time. The remote payload is attacker-mutable, enabling dynamic changes to the malicious code without republishing the package. The package metadata and comments attempt to masquerade as a nodemailer-adjacent SMTP module to disguise its malicious intent.

Potential Impact

Installation of [email protected] results in arbitrary remote code execution on the installer's system, potentially compromising the system with attacker-controlled code. Because the payload is fetched dynamically from a mutable remote source, the malicious code can change at any time, increasing the risk and unpredictability of the compromise.

Mitigation Recommendations

No official patch or fix is available for [email protected] as it is a malicious typosquat package. The recommended mitigation is to avoid installing helmet-pro and instead use the legitimate helmet package. Users should verify package names carefully before installation and consider using package integrity verification tools or npm security advisories to detect typosquatting. Removal of [email protected] from any environment where it was installed is advised.

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-13401
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a74cf93bf8831d5391af6df

Added to database: 08/06/2026, 18:16:51 UTC

Last enriched: 08/06/2026, 18:45:31 UTC

Last updated: 08/06/2026, 23:38:26 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