/

CVE-2026-105089

Severity:

HIGH RISK

(8.7)

Stored XSS (CWE-79) in WWBN AVideo Video Trailer URLs

CVE-2026-105089

Deferred

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79

Impact:

Client-Side Code Execution and Account Compromise

Severity:

HIGH RISK

(8.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

WWBN AVideo contains a stored cross-site scripting vulnerability in video trailer URLs. Users who have permission to upload videos may be able to store script content that is later rendered without proper escaping, causing JavaScript to execute in another user's browser when affected pages are viewed.

Affected context

The vulnerability occurs in AVideo deployments where users with video upload permission can set a trailer1 URL and that value is later displayed in YouPHPFlix2 templates or channel playlists. Risk is present when the value is inserted into JavaScript event-handler strings or iframe attributes without context-appropriate output encoding and is subsequently viewed by another user.

Exploit preconditions

  • Attack surface: Video upload and trailer URL configuration functionality
  • Required access: Permission to upload videos or modify the associated trailer1 URL
  • Trigger point: Rendering of the stored value in a video template or channel playlist
  • Why exploitation is possible: User-controlled data is inserted into HTML and JavaScript contexts without sufficient escaping, allowing browser interpretation as executable markup or script

Why this happens

The underlying issue is improper neutralization of user-controlled input during web page generation, mapping to CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). A trailer URL is treated as trusted content and embedded into contexts such as onclick strings or iframe source attributes without applying encoding appropriate to the destination context. As a result, stored data can alter the surrounding markup or script structure when rendered.

Potential impact

  • JavaScript execution in the security context of an affected site
  • Theft of accessible session information or page data
  • Unauthorized actions performed through a victim's browser
  • Defacement or manipulation of displayed video and channel content
  • Phishing or redirection of users to attacker-controlled content

General mitigation guidance

Mitigation generally focuses on treating trailer URLs and other uploaded metadata as untrusted data throughout their lifecycle.

Common defensive patterns include:

  • Applying context-aware output encoding at every HTML, attribute, and JavaScript insertion point
  • Avoiding string concatenation for event-handler code and using safe DOM event binding patterns
  • Validating trailer URLs against an explicit scheme, host, and format allowlist where appropriate
  • Using safe templating defaults that escape output unless deliberate trusted rendering is required
  • Enforcing a restrictive Content Security Policy as a defense-in-depth control
  • Limiting upload permissions and applying least privilege to content-management roles
  • Preserving input trust boundaries rather than relying only on client-side validation

How teams detect issues like this

Organizations can identify similar issues through:

  • Static analysis rules for unescaped template variables in HTML, attribute, and JavaScript contexts
  • Code review checks for user-controlled values inserted into onclick handlers, iframe attributes, or dynamically built markup
  • Tests that render stored metadata in every affected template and verify that it remains inert
  • Web application security testing focused on stored input flows and privilege-specific upload functionality
  • Policy enforcement requiring contextual output encoding, URL validation, and security headers
  • Neutral automated review tools that flag unsafe template interpolation and missing output encoding

Sources

SourceLink
github.comgithub.com/WWBN/AVideo/commit/c4adfde13d1f18e3a415722471efdcd8ab480035
github.comgithub.com/WWBN/AVideo/security/advisories/GHSA-6wfr-c7fw-4xvw
vulncheck.comvulncheck.com/advisories/wwbn-avideo-through-29.2.0-stored-xss-via-trailer1-in-youphpflix2-templates

Frequently asked

questions

It can be triggered through the web application when a user with the necessary upload permission stores a malicious trailer value and another user views the affected content. Exploitability depends on the deployment's access controls and which pages render the value.

The attacker generally needs permission to upload a video or modify its trailer1 URL. The victim only needs to access a page that renders the stored value.

Treat trailer URLs as untrusted input, validate them against an appropriate allowlist, and apply context-specific output encoding wherever they are rendered. Avoid embedding user-controlled values in executable event-handler code.

Combine secure templating defaults, server-side validation, restrictive content security policies, least-privilege upload roles, and automated tests covering stored content in HTML, attribute, and JavaScript contexts.

Find out what's already
exploitable in your codebase.