CVE-2026-40594
Description
pyLoad is a free and open-source download manager written in Python. Prior to 0.5.0b3.dev98, the set_session_cookie_secure before_request handler in src/pyload/webui/app/__init__.py reads the X-Forwarded-Proto header from any HTTP request without validating that the request originates from a trusted proxy, then mutates the global Flask configuration SESSION_COOKIE_SECURE on every request. Because pyLoad uses the multi-threaded Cheroot WSGI server (request_queue_size=512), this creates a race condition where an attacker's request can influence the Secure flag on other users' session cookies — either downgrading cookie security behind a TLS proxy or causing a session denial-of-service on plain HTTP deployments. This vulnerability is fixed in 0.5.0b3.dev98.
Weakness
- CWE-346: Origin Validation Error
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-04-21 |
Timeline
- 2026-04-16GitHub advisory published (GHSA-mp82-fmj6-f22v)5 days before publication
- 2026-04-21Published by the CNA17:14 UTC
- 2026-04-21CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-mp82-fmj6-f22v, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI pyload-ng | before 0.5.0b3.dev98 | 0.5.0b3.dev98 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| pyload-ng_project pyload-ng | before 0.5.0b3.dev69fixed in 0.5.0b3.dev69 | 0.5.0b3.dev69 |
References
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-40594'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-40594'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-40594'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-40594'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).