MAL-2026-10131: Malicious code in express-session-kit (npm)
The express-session-kit npm package is a malicious typosquatting package impersonating the popular express-session library. It contains a dropper that attempts to execute arbitrary code fetched covertly from a remote server via a 404 HTTP response. The payload enables remote code execution (RCE) in the Node.js process, potentially compromising any system that installs or runs this package. The malicious code is triggered by requiring the payload script or could become active with minor code fixes. This is a supply-chain attack targeting developers who mistakenly install this package instead of the legitimate express-session library.
AI Analysis
Technical Summary
The express-session-kit package mimics the express-session library by copying its name pattern, author metadata, and repository fields. It includes a dropper function that spawns a detached Node.js subprocess to run a payload script. This payload performs an HTTP GET request to a remote server endpoint, expecting a 404 response containing a JSON token. The token is then wrapped in a new Function call and executed with the real require function, enabling arbitrary code execution in the Node.js environment. Although the current dropper has a path typo that prevents immediate execution, the payload script is present and directly requireable, meaning any consumer requiring it or a trivial fix in future versions would activate the RCE. This is a deliberate supply-chain attack exploiting typosquatting to compromise developer environments.
Potential Impact
Any system that installs or runs the express-session-kit package is at risk of full compromise due to remote code execution capabilities. Attackers can execute arbitrary code within the Node.js process, potentially leading to theft of secrets, keys, and full system control. The presence of this package on a system indicates a high likelihood of compromise, and all sensitive credentials on the affected system should be considered exposed and rotated immediately. Removing the package alone may not fully remediate the compromise as attackers may have already installed additional malicious software.
Mitigation Recommendations
No official patch or fix is available since this is a malicious package rather than a vulnerability in legitimate software. The recommended mitigation is to immediately remove the express-session-kit package from all systems. All secrets and keys stored on affected systems should be rotated from a separate, trusted environment. Developers should verify package names carefully to avoid typosquatting attacks and rely on official package sources. Monitor for any suspicious activity indicating persistent compromise beyond the package removal.
MAL-2026-10131: Malicious code in express-session-kit (npm)
Description
The express-session-kit npm package is a malicious typosquatting package impersonating the popular express-session library. It contains a dropper that attempts to execute arbitrary code fetched covertly from a remote server via a 404 HTTP response. The payload enables remote code execution (RCE) in the Node.js process, potentially compromising any system that installs or runs this package. The malicious code is triggered by requiring the payload script or could become active with minor code fixes. This is a supply-chain attack targeting developers who mistakenly install this package instead of the legitimate express-session library.
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
The express-session-kit package mimics the express-session library by copying its name pattern, author metadata, and repository fields. It includes a dropper function that spawns a detached Node.js subprocess to run a payload script. This payload performs an HTTP GET request to a remote server endpoint, expecting a 404 response containing a JSON token. The token is then wrapped in a new Function call and executed with the real require function, enabling arbitrary code execution in the Node.js environment. Although the current dropper has a path typo that prevents immediate execution, the payload script is present and directly requireable, meaning any consumer requiring it or a trivial fix in future versions would activate the RCE. This is a deliberate supply-chain attack exploiting typosquatting to compromise developer environments.
Potential Impact
Any system that installs or runs the express-session-kit package is at risk of full compromise due to remote code execution capabilities. Attackers can execute arbitrary code within the Node.js process, potentially leading to theft of secrets, keys, and full system control. The presence of this package on a system indicates a high likelihood of compromise, and all sensitive credentials on the affected system should be considered exposed and rotated immediately. Removing the package alone may not fully remediate the compromise as attackers may have already installed additional malicious software.
Mitigation Recommendations
No official patch or fix is available since this is a malicious package rather than a vulnerability in legitimate software. The recommended mitigation is to immediately remove the express-session-kit package from all systems. All secrets and keys stored on affected systems should be rotated from a separate, trusted environment. Developers should verify package names carefully to avoid typosquatting attacks and rely on official package sources. Monitor for any suspicious activity indicating persistent compromise beyond the package removal.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10131
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-v8j2-pw9x-xx7p"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ecc68715ace438f641d
Added to database: 07/11/2026, 09:37:16 UTC
Last enriched: 07/11/2026, 09:59:01 UTC
Last updated: 07/12/2026, 03:33:53 UTC
Views: 4
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.
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.