Skip to main content

Malicious code in express-security-policy (npm)

0
Critical
Published: 04/17/2026 (04/17/2026, 06:20:31 UTC)
Source: GCVE Database
Product: express-security-policy

Description

The npm package express-security-policy contains malicious code that exfiltrates user and host information to a remote server. The malicious behavior is implemented via a preinstall script that uses obfuscation, delayed execution, and error suppression to evade detection. Any system with this package installed or running should be considered fully compromised, and all secrets and keys stored on that system should be rotated immediately. Removing the package alone may not eliminate all malicious software introduced by its installation.

Affected software

npmghsa
express-security-policy

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/10/2026, 11:09:39 UTC

Technical Analysis

The express-security-policy npm package was found to include malicious code embedded in its preinstall script. This code exfiltrates sensitive user and host information to a remote server while employing obfuscation techniques, delayed execution, and error suppression to avoid detection. The compromise is severe enough that any system with this package installed is considered fully compromised, necessitating immediate secret/key rotation and comprehensive remediation beyond simple package removal.

Potential Impact

Systems with the express-security-policy package installed are fully compromised, allowing attackers to gain unauthorized access to sensitive information such as user and host data. This may lead to exposure of secrets and keys stored on the affected system. The malicious code's stealth techniques increase the difficulty of detection and remediation, potentially allowing persistent unauthorized access.

Defensive Guidance

Remove the express-security-policy package immediately. Rotate all secrets and keys stored on the compromised system from a separate, trusted computer. Because the system is considered fully compromised, conduct a thorough investigation and remediation to identify and remove any additional malicious software or backdoors that may have been installed. Follow organizational incident response procedures for compromised hosts.

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-2828
Osv Schema Version
1.7.4
Aliases
["GHSA-3hxc-wppf-m25r"]
Ecosystems
["npm"]

Threat ID: 6a8effe9acd9273b49079eeb

Added to database: 08/26/2026, 15:02:01 UTC

Last enriched: 09/10/2026, 11:09:39 UTC

Last updated: 09/10/2026, 11:09:39 UTC

Views: 7

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