Description
PeerTube is an ActivityPub-federated video streaming platform. Prior to 8.2.2, server-side-rendered video watch pages embed a schema.org JSON-LD block by JSON.stringify-ing video metadata without escaping less-than, greater-than, or slash characters, allowing a value containing the byte sequence that closes a script element to inject arbitrary HTML or JavaScript that executes in the instance origin for visitors to the attacker's videos. This issue is fixed in version 8.2.2.
Published: 2026-07-10
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

PeerTube’s server‑side rendering of video watch pages embeds a JSON‑LD block that is built by JSON.stringify’ing video metadata without escaping characters that could close a script element. This allows an attacker who controls a video to inject arbitrary HTML or JavaScript that runs in the instance origin for any visitor to the attacker’s videos, potentially compromising the integrity of the platform for all visitors. The weakness is a classic input handling flaw, categorized as CWE‑80.

Affected Systems

This vulnerability affects the open‑source PeerTube platform distributed by Chocobozzz. All releases prior to version 8.2.2. Upgrading to 8.2.2 or later is recommended.

Risk and Exploitability

The CVSS assessment gives a score of 5.1, indicating moderate severity. The EPSS score is reported as < 1 %, suggesting a low current exploitation probability. The vulnerability is not listed in the catalog. Exploitation requires only that an attacker host a video on the instance with malicious metadata; no additional authentication or privilege is needed. Once an attacker’s video is played, the injected script executes with the privileges of the instance origin, providing a complete cross‑site scripting vector for all users who view the content.

Generated by OpenCVE AI on July 29, 2026 at 10:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the PeerTube instance to version 8.2.2 or later, which contains the fixed server‑side rendering logic.
  • If an upgrade cannot be performed immediately, restrict or sanitize video metadata submissions to prevent unescaped <script> closing tags; consider removing the ability for users to supply raw metadata that could influence the JSON‑LD block.
  • Configure a strict Content Security Policy or a web application firewall to block injection of script tags into the rendered JSON‑LD block, providing an additional mitigation layer.

Generated by OpenCVE AI on July 29, 2026 at 10:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Chocobozzz
Chocobozzz peertube
Vendors & Products Chocobozzz
Chocobozzz peertube

Fri, 10 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 17:15:00 +0000

Type Values Removed Values Added
Description PeerTube is an ActivityPub-federated video streaming platform. Prior to 8.2.2, server-side-rendered video watch pages embed a schema.org JSON-LD block by JSON.stringify-ing video metadata without escaping less-than, greater-than, or slash characters, allowing a value containing the byte sequence that closes a script element to inject arbitrary HTML or JavaScript that executes in the instance origin for visitors to the attacker's videos. This issue is fixed in version 8.2.2.
Title PeerTube: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Weaknesses CWE-80
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

Chocobozzz Peertube
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T17:42:51.158Z

Reserved: 2026-06-24T01:47:55.285Z

Link: CVE-2026-57167

cve-icon Vulnrichment

Updated: 2026-07-10T17:42:44.180Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T10:45:03Z

Weaknesses
  • CWE-80

    Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)