Malicious code in express-session-js (npm)
Package impersonates legitimate express-session package; initPlugin() downloads and executes attacker-controlled remote code on startup via new Function.constructor() --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (853f35820c1bfb3bd8be7548debc48dbf86de52a43e91d7b586a9b1ce86a54c7) The package express-session-js was found to contain malicious code. ## Source: ghsa-malware (3900af27585802d173eeb67aac372e9669193d07afe72a94019d1d6b19834d52) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
express-session-js version 1.0.0 is a malicious npm package that impersonates the legitimate express-session package. Its initPlugin() function downloads and executes remote code controlled by an attacker via new Function.constructor() during startup, effectively allowing full compromise of any system running it. This package is identified as malware and poses a severe risk to confidentiality and system integrity. No patch or fix is available, and the threat is not a vulnerability in legitimate software but a malicious package distribution.
Potential Impact
Any computer with express-session-js version 1.0.0 installed or running should be considered fully compromised. Attackers may have executed arbitrary code with full control over the system. All secrets and keys stored on the compromised system are at risk and must be rotated from a different, uncompromised machine. Simply removing the package does not guarantee removal of all malicious artifacts or backdoors.
Mitigation Recommendations
Remove the express-session-js package immediately. Consider the affected system fully compromised and perform a thorough incident response, including rotating all secrets and keys from a separate trusted environment. There is no official patch or fix since this is a malicious package impersonation. Prevention includes verifying package authenticity before installation.
Malicious code in express-session-js (npm)
Description
Package impersonates legitimate express-session package; initPlugin() downloads and executes attacker-controlled remote code on startup via new Function.constructor() --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (853f35820c1bfb3bd8be7548debc48dbf86de52a43e91d7b586a9b1ce86a54c7) The package express-session-js was found to contain malicious code. ## Source: ghsa-malware (3900af27585802d173eeb67aac372e9669193d07afe72a94019d1d6b19834d52) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Affected software
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
Technical Analysis
express-session-js version 1.0.0 is a malicious npm package that impersonates the legitimate express-session package. Its initPlugin() function downloads and executes remote code controlled by an attacker via new Function.constructor() during startup, effectively allowing full compromise of any system running it. This package is identified as malware and poses a severe risk to confidentiality and system integrity. No patch or fix is available, and the threat is not a vulnerability in legitimate software but a malicious package distribution.
Potential Impact
Any computer with express-session-js version 1.0.0 installed or running should be considered fully compromised. Attackers may have executed arbitrary code with full control over the system. All secrets and keys stored on the compromised system are at risk and must be rotated from a different, uncompromised machine. Simply removing the package does not guarantee removal of all malicious artifacts or backdoors.
Mitigation Recommendations
Remove the express-session-js package immediately. Consider the affected system fully compromised and perform a thorough incident response, including rotating all secrets and keys from a separate trusted environment. There is no official patch or fix since this is a malicious package impersonation. Prevention includes verifying package authenticity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-2419
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-2847-rm77-74wh"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4c341727e9c797195f80f5
Added to database: 07/06/2026, 23:02:47 UTC
Last enriched: 07/07/2026, 00:23:06 UTC
Last updated: 07/18/2026, 17:27:21 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.