MAL-2026-10157: Malicious code in notify-theme (npm)
The npm package 'notify-theme' versions 1.3.5, 1.3.6, and 1.3.7 impersonates the pino logger API but acts as a remote code dropper. When its exported middleware is invoked, it spawns a detached Node.js child process that fetches and executes arbitrary JavaScript code from a remote anonymous paste host, enabling arbitrary code execution within the host environment. The malicious payload can change dynamically without package updates, posing a significant risk to developers who mistakenly install this package expecting a legitimate logger.
AI Analysis
Technical Summary
The 'notify-theme' npm package (versions 1.3.5 to 1.3.7) masquerades as the pino logger by exporting similarly named modules and files. However, its actual behavior is malicious: upon invocation, it spawns a detached Node.js child process that performs an HTTP GET request to a remote anonymous paste service (jsonkeeper.com) to retrieve JavaScript code. This code is then executed in the context of the host process using the Function constructor and the host's require function, granting the attacker arbitrary code execution capabilities with full module access. The package hides the command and control (C2) URL and headers inside environment-like variables within a local object to evade detection. The use of an anonymous, mutable paste host allows the attacker to change the payload at will without updating the package, increasing the threat's stealth and persistence.
Potential Impact
This vulnerability allows an attacker to execute arbitrary code remotely within the Node.js process that imports the malicious 'notify-theme' package. This can lead to full compromise of the host environment, including access to all modules and potentially sensitive data or system control. The dynamic nature of the payload, fetched from an anonymous mutable paste host, means the attacker can change the malicious code at any time, increasing the risk and making detection and mitigation more difficult.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. The best mitigation is to avoid using the 'notify-theme' package versions 1.3.5, 1.3.6, and 1.3.7 entirely. Developers should verify the authenticity of packages before installation, prefer well-known and trusted logging libraries, and audit dependencies for suspicious behavior. Since this is a malicious package impersonating a legitimate API, removing it from projects and replacing it with a verified logger package is recommended. Monitor for any unexpected child processes or network requests initiated by Node.js applications.
MAL-2026-10157: Malicious code in notify-theme (npm)
Description
The npm package 'notify-theme' versions 1.3.5, 1.3.6, and 1.3.7 impersonates the pino logger API but acts as a remote code dropper. When its exported middleware is invoked, it spawns a detached Node.js child process that fetches and executes arbitrary JavaScript code from a remote anonymous paste host, enabling arbitrary code execution within the host environment. The malicious payload can change dynamically without package updates, posing a significant risk to developers who mistakenly install this package expecting a legitimate logger.
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 'notify-theme' npm package (versions 1.3.5 to 1.3.7) masquerades as the pino logger by exporting similarly named modules and files. However, its actual behavior is malicious: upon invocation, it spawns a detached Node.js child process that performs an HTTP GET request to a remote anonymous paste service (jsonkeeper.com) to retrieve JavaScript code. This code is then executed in the context of the host process using the Function constructor and the host's require function, granting the attacker arbitrary code execution capabilities with full module access. The package hides the command and control (C2) URL and headers inside environment-like variables within a local object to evade detection. The use of an anonymous, mutable paste host allows the attacker to change the payload at will without updating the package, increasing the threat's stealth and persistence.
Potential Impact
This vulnerability allows an attacker to execute arbitrary code remotely within the Node.js process that imports the malicious 'notify-theme' package. This can lead to full compromise of the host environment, including access to all modules and potentially sensitive data or system control. The dynamic nature of the payload, fetched from an anonymous mutable paste host, means the attacker can change the malicious code at any time, increasing the risk and making detection and mitigation more difficult.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. The best mitigation is to avoid using the 'notify-theme' package versions 1.3.5, 1.3.6, and 1.3.7 entirely. Developers should verify the authenticity of packages before installation, prefer well-known and trusted logging libraries, and audit dependencies for suspicious behavior. Since this is a malicious package impersonating a legitimate API, removing it from projects and replacing it with a verified logger package is recommended. Monitor for any unexpected child processes or network requests initiated by Node.js applications.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10157
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ecc68715ace438f63ff
Added to database: 07/11/2026, 09:37:16 UTC
Last enriched: 07/11/2026, 09:58:26 UTC
Last updated: 07/12/2026, 03:35:10 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.
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.