# GHSA-fj52-5g4h-gmq8: pyLoad's Session Not Invalidated After Permission Changes

> Attackers with valid sessions retain access to restricted data after permission revocation due to missing session invalidation in pyLoad.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 14 Apr 2026

## What is GHSA-fj52-5g4h-gmq8?

GHSA-fj52-5g4h-gmq8 is a missing authorization vulnerability in pyload-ng, published on 14 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

### Summary
The `pyload` application does not properly invalidate or modify sessions upon changes made to a user's permissions.

### Details
Whenever an administrator changes the permissions a specific account has, they do not expect that account still being able to access data that their new permissions do not allow. This is not the case for the `pyload` application, as a user with a valid session can still perform the actions.

### PoC
Take a user with all the permissions, as shown below.
![image](https://user-images.githubusercontent.com/44903767/294956335-0e4da84f-bf9a-42c8-87f1-f5ff35967c63.png)

We now log in as this user.
![image](https://user-images.githubusercontent.com/44903767/294956539-ac6805fe-957d-4289-8ca9-2f3b6b2878a3.png)

Let us now take away all the permissions.
![image](https://user-images.githubusercontent.com/44903767/294956689-757e6e08-03fd-42eb-b4a5-1ceefa6c24ed.png)

The logged in session can still be used to access everything in the application.
![image](https://user-images.githubusercontent.com/44903767/294956943-fa0f23c0-a28c-4eed-89d6-1cc074feda6d.png)

### Impact
Should permissions be taken away, then the user is expected not to be able to execute the actions belonging to those actions anymore.

## Which versions are affected by GHSA-fj52-5g4h-gmq8?

2 open source packages ship an affected version, including pyload-ng.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `pyload-ng` | PyPI | All versions to 0.5.0b3.dev97 | None |
| `pyload-ng` | PyPI | All versions to 0.5.0b3.dev97 | None |

## How do I fix GHSA-fj52-5g4h-gmq8?

No fix has been published for GHSA-fj52-5g4h-gmq8 yet. Limit exposure of the affected software until one is available.

## Is GHSA-fj52-5g4h-gmq8 being exploited?

There is no known exploitation of GHSA-fj52-5g4h-gmq8 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-fj52-5g4h-gmq8 and fix it if it is affected.

What it is: GHSA-fj52-5g4h-gmq8 is a missing authorization vulnerability in pyload-ng, published on 14 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-fj52-5g4h-gmq8 in the wild and no public exploit code.

Affected packages and fixed versions:
- pyload-ng (PyPI): affected all versions up to 0.5.0b3.dev97; no fix listed
- pyload-ng (PyPI): affected all versions up to 0.5.0b3.dev97; no fix listed

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-fj52-5g4h-gmq8/ (Markdown: https://insights.sbomify.com/GHSA-fj52-5g4h-gmq8/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-fj52-5g4h-gmq8

---
From sbomify Insights: https://insights.sbomify.com/GHSA-fj52-5g4h-gmq8/
Summaries are generated and may contain mistakes; the official description above is the record.
