# Cross-Site Request Forgery on any API call in pyLoad may lead to admin privilege escalation

Advisory record · `GHSA-pgpj-v85q-h5fm`

- **Identifiers:** `GHSA-pgpj-v85q-h5fm` · `CVE-2024-22416` · `PYSEC-2024-17`
- **State:** Confirmed
- **Severity:** CVSS 9.7 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-352](https://cwe.mitre.org/data/definitions/352.html)
- **Tags:** [Cross-site request forgery (CSRF)](https://agentprime.io/advisories/tag/csrf.md)
- **Published:** 19 Jan 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 19 Jan 2024, 15:27 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.7: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `pyload-ng` (PyPI): affected `<0.5.0b3.dev78`; fixed in `0.5.0b3.dev78`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> pyload-ng versions before 0.5.0b3.dev78 are vulnerable to cross-site request forgery on API calls, because the API accepts GET requests and the session cookie is not set to SameSite strict. An attacker can host a malicious page and trick a logged-in administrator into visiting it, which can make the administrator's browser create a new admin account the attacker then uses to log in. Upgrade to pyload-ng 0.5.0b3.dev78 or later.

Written 5 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.7 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0095, the 61st percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:36 UTC: First seen by agentprime
- 31 Oct 2026, 14:36 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-pgpj-v85q-h5fm)

## Sources

- [GitHub Advisory Database: GHSA-pgpj-v85q-h5fm](https://github.com/advisories/GHSA-pgpj-v85q-h5fm)
- [OSV: GHSA-pgpj-v85q-h5fm](https://osv.dev/vulnerability/GHSA-pgpj-v85q-h5fm)
- <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/pyload/pyload>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyload-ng/PYSEC-2024-17.yaml>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-pgpj-v85q-h5fm>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-pgpj-v85q-h5fm/>. Everything for agents: <https://agentprime.io/llms.txt>.
