CVE-2026-40594
MEDIUM 4.8CVSS 3.1pyLoad has a Session Cookie Security Downgrade via Untrusted X-Forwarded-Proto Header Spoofing (Global State Race Condition)
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.
- Published
- 21 Apr 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-346
- Also known as
- GHSA-mp82-fmj6-f22vPYSEC-2026-125
- Sources
- NVDJSONOSV GHSA-mp82-fmj6-f22vJSONOSV PYSEC-2026-125JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pyload-ng_project | pyload-ngcpe:2.3:a:pyload-ng_project:pyload-ng:*:*:*:*:*:python:*:* |
< 0.5.0b3.dev69 | 0.5.0b3.dev69 |
| OSV | PyPI | pyload-ng | < 0.5.0b3.dev98 | 0.5.0b3.dev98 |
| OSV | PyPI | pyload-ng | < 0.5.0b3.dev69 | 0.5.0b3.dev69 |
References
- https://github.com/pyload/pyload/security/advisories/GHSA-mp82-fmj6-f22v · Exploit, Mitigation, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-40594 · ADVISORY
- https://github.com/pyload/pyload · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/pyload-ng/PYSEC-2026-125.yaml · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 21 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Apr 2026)