{"answers":{"affected":"3 open source packages ship an affected version, including pyload-ng. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40594 exists.","fix":"Upgrade pyload-ng to a fixed version for your release line: 0.5.0b3.dev69 or 0.5.0b3.dev98.","what":"CVE-2026-40594 is a medium-severity vulnerability in pyload, published on 21 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40594 and fix it if it is affected.\n\nWhat it is: CVE-2026-40594 is a medium-severity vulnerability in pyload, published on 21 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40594 exists.\n\nAffected packages and fixed versions:\n- pyload-ng (PyPI): affected all versions; fixed in 0.5.0b3.dev69\n- pyload-ng (PyPI): affected all versions; fixed in 0.5.0b3.dev98\n- pyload-ng (PyPI): affected all versions; fixed in 0.5.0b3.dev98\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40594/ (Markdown: https://insights.sbomify.com/CVE-2026-40594/index.md)","id":"CVE-2026-40594","markdown":"https://insights.sbomify.com/CVE-2026-40594/index.md","name":"CVE-2026-40594","record":{"aliases":["GHSA-mp82-fmj6-f22v","PYSEC-2026-125"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"pyLoad download manager","requires_auth":"none","summary":"Attackers can spoof headers to trigger a race condition that downgrades session cookie security or causes denial of service in pyLoad.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"pyload-ng","vendor":"pyload-ng_project"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"pyLoad: Session Cookie Security Downgrade via Untrusted X-Forwarded-Proto Header Spoofing (Global State Race Condition)","id":"CVE-2026-40594","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"race_condition","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"Chartbrew: Incorrect Access Control in public chart and export routes via missing onReport and SharePolicy checks","id":"CVE-2026-40595"},"packages":[{"ecosystem":"PyPI","fixed":["0.5.0b3.dev69"],"introduced":["0"],"last_affected":[],"package":"pyload-ng","purl":"pkg:pypi/pyload-ng","source":"PYSEC-2026-125"},{"ecosystem":"PyPI","fixed":["0.5.0b3.dev98"],"introduced":["0"],"last_affected":[],"package":"pyload-ng","purl":null,"source":"GHSA-mp82-fmj6-f22v"},{"ecosystem":"PyPI","fixed":["0.5.0b3.dev98"],"introduced":["0"],"last_affected":[],"package":"pyload-ng","purl":"pkg:pypi/pyload-ng","source":"GHSA-mp82-fmj6-f22v"}],"prev":{"headline":"ChurchCRM: Stored XSS in UserEditor.php via Login Name Field","id":"CVE-2026-40593"},"products":["pyload"],"published":"2026-04-21","related":[{"cvss_score":9.8,"headline":"pyLoad CNL Blueprint is vulnerable to Path Traversal through `dlc_path` leading to Remote Code Execution (RCE)","id":"CVE-2025-54802","kev_date_added":null,"published":"2025-08-05"},{"cvss_score":9.7,"headline":"Cross-Site Request Forgery on any API call in pyLoad may lead to admin privilege escalation","id":"CVE-2024-22416","kev_date_added":null,"published":"2024-01-17"},{"cvss_score":9.6,"headline":"Cross-site Scripting (XSS) - Stored in pyload/pyload","id":"CVE-2023-0488","kev_date_added":null,"published":"2023-01-26"},{"cvss_score":9.3,"headline":"pyLoad has SSRF fix bypass via HTTP redirect","id":"CVE-2026-35459","kev_date_added":null,"published":"2026-04-06"},{"cvss_score":8.8,"headline":"pyLoad has Improper Neutralization of Special Elements used in an OS Command","id":"CVE-2026-35463","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":8.8,"headline":"pyload-ng: Authentication Bypass via Host Header Injection in ClickNLoad","id":"CVE-2026-33511","kev_date_added":null,"published":"2026-03-24"},{"cvss_score":8.3,"headline":"pyload-ng: non-admin SETTINGS users can redirect all outbound traffic through an attacker-controlled proxy","id":"CVE-2026-42313","kev_date_added":null,"published":"2026-05-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-21","vendors":["pyload"]},"summary":"Attackers can spoof headers to trigger a race condition that downgrades session cookie security or causes denial of service in pyLoad.","url":"https://insights.sbomify.com/CVE-2026-40594/"}