Skip to main content

Malicious code in express-mongo-santi (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 12:22:09 UTC)
Source: GCVE Database
Product: express-mongo-santi

Description

The npm package express-mongo-santi (version 1.1.9) is a malicious typosquat of express-mongo-sanitize. Its main file is heavily obfuscated and designed to fetch and execute attacker-controlled code remotely upon being required. This results in arbitrary code execution on the user's machine under their user identity.

Affected software

npmghsa
express-mongo-santi
Affected versions
=1.1.9

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/05/2026, 17:51:40 UTC

Technical Analysis

The express-mongo-santi package (version 1.1.9) contains a heavily obfuscated main file that, when loaded, performs a remote fetch-and-execute operation. It reconstructs a hardcoded IPv4 address at runtime, sends an HTTPS GET request to that address, and receives an encrypted payload. The payload is decrypted using AES with a key derived via crypto.scryptSync, then written to a file in the user's home directory and executed via child_process. The package name is a typosquat of express-mongo-sanitize, designed to trick users into installing it. This leads to arbitrary attacker-controlled code execution on the installer's machine with their user privileges.

Potential Impact

Installing or importing express-mongo-santi version 1.1.9 results in arbitrary code execution under the installer's user identity. This can lead to full compromise of the user's environment, data theft, persistence, or further malicious activity depending on the payload fetched and executed.

Mitigation Recommendations

No official patch or remediation is currently available. Users should avoid installing or importing the express-mongo-santi package. Verify package names carefully before installation to avoid typosquatting attacks. Use trusted sources and package integrity verification mechanisms such as checksums or signatures. Monitor for updates from the npm registry or security advisories for any official fixes or removals.

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-12377
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a735750bf8831d53915a663

Added to database: 08/05/2026, 15:31:28 UTC

Last enriched: 08/05/2026, 17:51:40 UTC

Last updated: 09/18/2026, 02:25:42 UTC

Views: 48

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