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 includes a JSON‑LD block created from video metadata by using JSON.stringify. The implementation fails to escape characters such as <, >, or / This flaw lets an attacker embed a closing script tag in a video’s metadata, turning the JSON‑LD block into a <script> element. When a user views the attacker's video, the injected script runs with the instance origin, allowing arbitrary JavaScript execution in the browser context of all visitors.

Affected Systems

The vulnerable code is present in the Chocobozzz:PeerTube platform in every release prior to 8.2.2. The issue is fixed starting with version 8.2.2. All instances running those earlier releases are affected.

Risk and Exploitability

The CVSS score of 5.1 classifies the vulnerability as moderate in severity. The EPSS score of < 1 % indicates a low current exploitation probability. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attacker does not need additional privileges beyond having the ability to upload a video; the weakness is exploitable through user‑supplied metadata alone.

Generated by OpenCVE AI on August 3, 2026 at 04:01 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 immediate upgrade is not possible, sanitize or restrict user‑supplied video metadata so that characters that can close a script element are escaped or removed; consider disabling the ability to embed raw metadata that could affect the JSON‑LD block.
  • Implement a strict Content Security Policy that forbids inline scripts or enforce a web application firewall rule to block the injection of script tags into JSON‑LD blocks for additional protection.

Generated by OpenCVE AI on August 3, 2026 at 04:01 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

Status : Deferred

Published: 2026-07-10T17:17:01.430

Modified: 2026-07-10T18:56:43.823

Link: CVE-2026-57167

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T04:15:03Z

Weaknesses
  • CWE-80

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