CVE-2026-40594: pyLoad - Race Condition
- Cve: CVE-2026-40594
- Name: pyLoad - Race Condition
- 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.
- Impact: Attackers can downgrade session cookie security or cause session denial-of-service, impacting user session integrity and availability.
- Remediation: Update to version 0.5.0b3.dev98 or later.
- Vulnerability type: race_condition
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.8
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L
- Epss score: 0.00177
- Epss percentile: 0.07243
- Assignee: [email protected]
- Published at: 2026-04-21T18:16:51Z
- Age in days: 217
- Modified at: 2026-11-11T23:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40594
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-346 | Origin Validation Error |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/pyload/pyload/security/advisories/GHSA-mp82-fmj6-f22v | nvd | 2026-04-21 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/pyload/pyload/security/advisories/GHSA-mp82-fmj6-f22v | nvd | Exploit, Mitigation, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| pyload-ng_project:pyload-ng | < 0.5.0b3.dev69 | no | nvd | /v1/products/pyload-ng_project/pyload-ng |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pyload/pyload | package, security_advisory | yes | /v1/repositories/pyload/pyload |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-21
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts