PatchSiren cyber security CVE debrief
CVE-2026-40594 pyload CVE debrief
CVE-2026-40594 is a vulnerability in pyLoad, a free and open-source download manager written in Python. The vulnerability allows an attacker to influence the Secure flag on other users' session cookies due to a race condition. This can lead to a session denial-of-service on plain HTTP deployments or downgrade cookie security behind a TLS proxy. The issue arises from the set_session_cookie_secure before_request handler in src/pyload/webui/app/__init__.py reading the X-Forwarded-Proto header from any HTTP request without validating that the request originates from a trusted proxy. This creates a race condition where an attacker's request can influence the Secure flag on other users'
- Vendor
- pyload
- Product
- Unknown
- CVSS
- MEDIUM 4.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-04-21
- Original CVE updated
- 2026-11-11
- Advisory published
- 2026-04-21
- Advisory updated
- 2026-11-11
Who should care
Defenders who manage pyLoad deployments should assess their exposure and prioritize verifying their deployments and applying the patch to prevent potential session security issues.
Why it matters
CVE-2026-40594 is a vulnerability in pyLoad that allows an attacker to influence the Secure flag on other users' session cookies due to a race condition. Defenders should prioritize verifying their pyLoad deployments and applying the patch to prevent potential session security issues.
- Session denial-of-service on plain HTTP deployments
- Downgrade cookie security behind a TLS proxy
- Potential security issues with session cookies
Technical summary
The vulnerability is caused by the set_session_cookie_secure before_request handler in src/pyload/webui/app/__init__.py reading the X-Forwarded-Proto header from any HTTP request without validating that the request originates from a trusted proxy. This creates a race condition where an attacker's request can influence the Secure flag on other users' session cookies. The issue is fixed in version 0.5.0b3.dev98. Defenders should prioritize verifying their pyLoad deployments and applying the patch to prevent potential session security issues. The vulnerability has a CVSS score of 4.8 and a severity of MEDIUM.
Defensive priority
Defenders should prioritize verifying their pyLoad deployments and applying the patch to prevent potential session security issues.
Recommended defensive actions
- Verify pyLoad deployments to determine if they are vulnerable
- Apply the patch to prevent potential session security issues
- Monitor for potential session denial-of-service attacks on plain HTTP deployments
- Consider using a trusted proxy to validate X-Forwarded-Proto headers
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The vulnerability is caused by the set_session_cookie_secure before_request handler in src/pyload/webui/app/__init__.py reading the X-Forwarded-Proto header from any HTTP request without validating that the request originates from a trusted proxy. This creates a race condition where an attacker's request can influence the Secure flag on other users' session cookies.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-40594 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-40594
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-40594 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-40594
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/pyload/pyload/security/advisories/GHSA-mp82-fmj6-f22v
[email protected] - Exploit, Mitigation, Vendor Advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.