Skip to main content

Malicious code in peertube-plugin-video-views-counter (npm)

0
Critical
Published: 09/04/2026 (09/04/2026, 03:45:26 UTC)
Source: GCVE Database
Product: peertube-plugin-video-views-counter

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

npmghsa
peertube-plugin-video-views-counter
Affected versions
=1.0.2

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

AILast updated: 09/07/2026, 17:09:37 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses