Home / pyload / pyload / CVE-2026-40594
CVE-2026-40594: is it exploited, and which versions of pyload are affected and fixed?
CVE-2026-40594 is an origin not validated vulnerability in pyload. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: pyload-ng before 0.5.0b3.dev98 (GitHub advisory GHSA-mp82-fmj6-f22v). Fixed in 0.5.0b3.dev98 (GitHub advisory GHSA-mp82-fmj6-f22v). Severity: Medium (4.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-40594?
pyLoad: 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.
From the CVE record by GitHub_M, last updated April 21, 2026, 18:01 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pyload | pyload | < 0.5.0b3.dev98 |
As the CVE record by GitHub_M states it, last updated April 21, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | pyload-ng | < 0.5.0b3.dev98 | 0.5.0b3.dev98 | GHSA-mp82-fmj6-f22v |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 8, 2026. Summary: pyLoad has a Session Cookie Security Downgrade via Untrusted X-Forwarded-Proto Header Spoofing (Global State Race Condition).
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| pyload-ng project | pyload-ng | before 0.5.0b3.dev69 | application |
NVD analysis (status Analyzed), last modified November 11, 2026, 23:10 UTC.
How severe is CVE-2026-40594?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-40594 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, April 21, 2026)
- EPSS
- 0.18% probability of exploitation activity in the next 30 days, percentile 7.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-346 Origin Validation Error
Where are the vendor advisories and references?
- https://github.com/pyload/pyload/security/advisories/GHSA-mp82-fmj6-f22v x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- April 14, 2026
- Published
- April 21, 2026, 17:14 UTC
- CVE record updated
- April 21, 2026, 18:01 UTC by GitHub_M
- NVD
- Analyzed, last modified November 11, 2026, 23:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect pyload?
- Nov 9, 2026CVE-2026-123816 pyload: authentication bypass (improper authentication)
- Nov 9, 2026CVE-2026-123815 pyload: path traversal (reading or writing files outside the intended folder)
- Nov 9, 2026CVE-2026-123814 pyload: server-side request forgery (SSRF)
- Nov 9, 2026CVE-2026-123813 pyload: session does not expire
- Oct 9, 2026CVE-2026-75597 pyload: information disclosure in error messages
- Oct 9, 2026CVE-2026-48484 pyload: improper input validation
- Sep 15, 2026CVE-2026-48987 pyload: denial of service (uncontrolled resource consumption)
- Sep 15, 2026CVE-2026-48737 pyload: server-side request forgery (SSRF)
Questions about CVE-2026-40594
Is CVE-2026-40594 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.18% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of pyload are affected by CVE-2026-40594?
pyload-ng before 0.5.0b3.dev98, per the GitHub advisory GHSA-mp82-fmj6-f22v. The tables above give every range the sources list.
Which version fixes CVE-2026-40594?
0.5.0b3.dev98, per the GitHub advisory GHSA-mp82-fmj6-f22v. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-40594?
Medium (4.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-40594?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.