Vulnerability MAL-2026-20671
Summary
Malicious code in session-exp (npm)
Details
session-exp is a copy of express-session whose session/cookie.js decodes a base64 paste URL (jsonkeeper[.]com/b/U08GX, jsonkeep[.]com/b/U08GX or api[.]npoint[.]io/...), fetches it with axios when the module loads, and passes the response's 'cookie' field to eval(). In the OpenSSF sandbox the fetched second stage wrote and ran Python payloads (~/.nlq, ~/.n2/pow, ~/.n2/way) and connected to 23.227.202[.]244 on ports 1224 and 2248. That matches the BeaverTail / InvisibleFerret malware used in the Contagious Interview campaign, which steals credentials and browser and crypto-wallet data and gives the attacker remote access. Versions 1.3.18 to 1.3.22 execute the payload; 1.3.17 only logs it. Hosts that required the package should be treated as compromised. Dynamic evidence (OpenSSF sandbox: ~/.nlq, ~/.n2/*, 23.227.202[.]244:1224/2248) was observed for 1.3.22; earlier versions are malicious by the same static eval-of-remote-code loader. Version 1.3.17 fetches the attacker URL but only logs the result and is excluded; 1.3.19 was never published. Reported to npm on 2026-11-26 and replaced with a security holding package (0.0.1-security) on 2026-11-26.