Malicious code in @bananacool467/ui-tools (npm)
The npm package @bananacool467/ui-tools, marketed as a UI-components library, contains malicious code that implements an unauthenticated WebSocket server exposing an interactive shell on the server. This backdoor allows remote command execution as the server process without any authentication or origin checks. The package ships both the server-side middleware and a browser client that together create a remote shell channel, posing a severe security risk to any system using it.
AI Analysis
Technical Summary
The @bananacool467/ui-tools npm package includes a server-side middleware called useTerminal that creates a WebSocketServer at the path /terminal-stream. Incoming WebSocket messages are directly written into a spawned PTY (bash or powershell) running with the server's environment and home directory as the working directory. Output from the PTY is streamed back to the client. There is no authentication, origin verification, or handshake token protecting this WebSocket connection. The package also provides a browser client that connects to this WebSocket and sends keystrokes, effectively enabling an unauthenticated remote shell with full command execution capabilities on the server process. This functionality is hidden under the guise of a UI toolkit, constituting a backdoor.
Potential Impact
Any server that installs and uses this package and mounts the exported useTerminal hook exposes itself to full unauthenticated remote code execution. Attackers can execute arbitrary commands with the privileges of the server process, potentially leading to complete system compromise. The lack of any authentication or access controls makes exploitation trivial once the package is in use.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove the @bananacool467/ui-tools package from their projects and avoid using any versions listed as affected. Audit your dependencies to ensure this package is not included transitively. Consider rebuilding affected environments after removal to ensure no persistent backdoors remain.
Malicious code in @bananacool467/ui-tools (npm)
Description
The npm package @bananacool467/ui-tools, marketed as a UI-components library, contains malicious code that implements an unauthenticated WebSocket server exposing an interactive shell on the server. This backdoor allows remote command execution as the server process without any authentication or origin checks. The package ships both the server-side middleware and a browser client that together create a remote shell channel, posing a severe security risk to any system using 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
The @bananacool467/ui-tools npm package includes a server-side middleware called useTerminal that creates a WebSocketServer at the path /terminal-stream. Incoming WebSocket messages are directly written into a spawned PTY (bash or powershell) running with the server's environment and home directory as the working directory. Output from the PTY is streamed back to the client. There is no authentication, origin verification, or handshake token protecting this WebSocket connection. The package also provides a browser client that connects to this WebSocket and sends keystrokes, effectively enabling an unauthenticated remote shell with full command execution capabilities on the server process. This functionality is hidden under the guise of a UI toolkit, constituting a backdoor.
Potential Impact
Any server that installs and uses this package and mounts the exported useTerminal hook exposes itself to full unauthenticated remote code execution. Attackers can execute arbitrary commands with the privileges of the server process, potentially leading to complete system compromise. The lack of any authentication or access controls makes exploitation trivial once the package is in use.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove the @bananacool467/ui-tools package from their projects and avoid using any versions listed as affected. Audit your dependencies to ensure this package is not included transitively. Consider rebuilding affected environments after removal to ensure no persistent backdoors remain.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13416
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cf8cbf8831d5391ae73c
Added to database: 08/06/2026, 18:16:44 UTC
Last enriched: 08/06/2026, 18:34:01 UTC
Last updated: 08/06/2026, 18:34:01 UTC
Views: 2
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.