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 express-session-handler (npm)

0
Critical
Published: 08/21/2026 (08/21/2026, 03:56:39 UTC)
Source: GCVE Database
Product: express-session-handler

Description

The npm package express-session-handler version 2.3.3 contains malicious code that executes attacker-controlled JavaScript during module load. It performs an HTTPS fetch from a remote mutable JSON bin, extracts a field, and executes it using Function.constructor, enabling remote code execution in the Node.js process. The package disguises this behavior with unrelated code to appear legitimate.

Affected software

npmghsa
express-session-handler
Affected versions
=2.3.3

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/21/2026, 14:43:24 UTC

Technical Analysis

The express-session-handler npm package (version 2.3.3) is a malicious package that, upon loading, unconditionally calls an initPlugin() function. This function fetches data from a remote HTTPS endpoint (https://api.jsonbin.io/v3/b/6a4f5816f5f4af5e29762c92), parses the response, extracts the 'record.cerookie' field, and executes it as JavaScript code within the Node.js environment using Function.constructor. Because the remote JSON bin is mutable and controlled by the attacker, the executed code can be changed at any time, allowing dynamic remote code execution on any host that installs this package. The package attempts to disguise its true intent by including unrelated code such as a 'normalize-path' helper that is never used.

Potential Impact

This vulnerability allows an attacker to execute arbitrary JavaScript code remotely on any system that installs the affected version of the express-session-handler package. This can lead to full compromise of the Node.js process, potentially allowing data theft, system manipulation, or further malware deployment.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately remove the express-session-handler package version 2.3.3 from their projects and avoid installing it. Verify dependencies to ensure this package is not included transitively. Monitor vendor advisories or trusted sources for updates or official fixes. Until a fix is available, do not use this package.

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

Threat ID: 6a885f31acd9273b493f846a

Added to database: 08/21/2026, 14:22:41 UTC

Last enriched: 08/21/2026, 14:43:24 UTC

Last updated: 08/21/2026, 23:20:11 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