CVE-2026-57167: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in Chocobozzz PeerTube
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.
AI Analysis
Technical Summary
CVE-2026-57167 is a medium severity vulnerability in Chocobozzz PeerTube, an ActivityPub-federated video streaming platform. The issue arises because 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. This improper neutralization of script-related HTML tags (CWE-80) allows an attacker to inject arbitrary HTML or JavaScript by including a byte sequence that closes a script element in the video metadata. This malicious code executes in the origin context of the PeerTube instance for visitors watching the attacker's videos. The vulnerability affects all versions prior to 8.2.2 and is resolved in version 8.2.2.
Potential Impact
An attacker can execute arbitrary JavaScript in the security context of the PeerTube instance by crafting video metadata that injects malicious code. This can lead to typical XSS impacts such as session hijacking, defacement, or other client-side attacks against users viewing the attacker's videos. The vulnerability requires user interaction (viewing the malicious video) and low attack complexity with no privileges required.
Mitigation Recommendations
Upgrade PeerTube to version 8.2.2 or later, where this vulnerability has been fixed by properly escaping characters in JSON-LD metadata. No other mitigations are specified. Patch status is confirmed by the vendor stating the issue is fixed in 8.2.2.
CVE-2026-57167: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in Chocobozzz PeerTube
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.
CVSS v4.0
Score 5.1medium
Affected software
pkg:github/chocobozzz/PeerTubeRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-57167 is a medium severity vulnerability in Chocobozzz PeerTube, an ActivityPub-federated video streaming platform. The issue arises because 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. This improper neutralization of script-related HTML tags (CWE-80) allows an attacker to inject arbitrary HTML or JavaScript by including a byte sequence that closes a script element in the video metadata. This malicious code executes in the origin context of the PeerTube instance for visitors watching the attacker's videos. The vulnerability affects all versions prior to 8.2.2 and is resolved in version 8.2.2.
Potential Impact
An attacker can execute arbitrary JavaScript in the security context of the PeerTube instance by crafting video metadata that injects malicious code. This can lead to typical XSS impacts such as session hijacking, defacement, or other client-side attacks against users viewing the attacker's videos. The vulnerability requires user interaction (viewing the malicious video) and low attack complexity with no privileges required.
Mitigation Recommendations
Upgrade PeerTube to version 8.2.2 or later, where this vulnerability has been fixed by properly escaping characters in JSON-LD metadata. No other mitigations are specified. Patch status is confirmed by the vendor stating the issue is fixed in 8.2.2.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T01:47:55.285Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a51295c68715ace43e3b832
Added to database: 07/10/2026, 17:18:20 UTC
Last enriched: 07/10/2026, 17:32:49 UTC
Last updated: 07/10/2026, 18:17:29 UTC
Views: 4
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.