Malicious code in peertube-plugin-video-views-counter (npm)
Description
The peertube-plugin-video-views-counter version 1.0.2 contains malicious code that establishes a reverse shell connection to a remote host and exposes an unauthenticated command execution HTTP endpoint. This allows remote attackers full interactive shell access on the PeerTube server running the plugin. The reverse shell is disguised as a background sync worker but performs no legitimate functionality related to view counting.
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 plugin.js file in peertube-plugin-video-views-counter version 1.0.2 includes a top-level Immediately Invoked Function Expression (IIFE) that spawns a detached bash reverse shell connecting to 45.137.222.44:4444 whenever the plugin module loads. Additionally, it registers an unauthenticated POST /cmd HTTP route that executes arbitrary shell commands supplied in the 'cmd' field via child_process.exec with /bin/bash, returning the command output. These combined behaviors grant any remote client with HTTP access to the plugin router full shell access on the server, representing a severe backdoor and remote code execution threat.
Potential Impact
Remote attackers can gain full interactive shell access on the PeerTube server by exploiting the reverse shell and the unauthenticated command execution endpoint. This compromises the confidentiality, integrity, and availability of the affected system and potentially the broader network environment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove or disable the peertube-plugin-video-views-counter version 1.0.2 plugin to prevent exploitation. Monitor for any unauthorized access and consider restoring affected systems from known good backups. Check vendor advisories or trusted sources for updates or patches before re-enabling the plugin.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15902
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a9ad4edacd9273b49b6781a
Added to database: 09/04/2026, 14:25:49 UTC
Last enriched: 09/07/2026, 17:09:37 UTC
Last updated: 10/04/2026, 07:32:11 UTC
Views: 25
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.