CVE-2026-40594 Details
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.
A vulnerability in pyLoad, a Python-based download manager, allows for session cookie security downgrades through untrusted X-Forwarded-Proto header manipulation. This issue affects pyLoad versions through 0.4.x. The vulnerability arises because the 'set_session_cookie_secure' before_request handler reads the X-Forwarded-Proto header without validating its origin, then globally modifies the Flask SESSION_COOKIE_SECURE setting. In the multi-threaded Cheroot WSGI server, this creates a race condition where an attacker's request can impact the Secure flag on other users' session cookies, either reducing cookie security behind a TLS proxy or causing a session denial-of-service on plain HTTP deployments.
Users are advised to update to pyLoad version 0.5.0b3.dev98, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pyload/pyload/security/advisories/GHSA-mp82-fmj6-f22v | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/pyload/pyload/security/advisories/GHSA-mp82-fmj6-f22v | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-346 | Origin Validation Error | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pyload-ng project pyload-ng | < 0.5.0b3.dev69 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 11, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 21, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | New CVE Received | [email protected] |