PYLOAD-NG · CVE-2026-123813 · Package
FIX → 0.5.0b3.dev102 ✓ verified
Changing a user's role, permissions or password through pyLoad's REST API updates the database but does not end that user's existing web session. The old session keeps the privileges it was issued with, so a demoted or evicted user can keep using the admin-only functions the session still allows.
first public Oct 9, 2026 · 2 sources
Could this affect your app?
Free first check from your website. Connect your repo for the full answer.
Teams that run pyLoad with the WebUI or REST API and have users whose privileges or passwords are changed through /api/set_user_permission or /api/change_password. The session branch of apikey_auth is affected; API-key-authenticated callers read the database on each request and are not stale. Instances where the admin uses only the WebUI forms (which invalidate sessions) are not affected by this path.
Not affected if api-key-only, default-config
Who cares flask, pyload-ng, python, self-hosted
pip show pyload-ng; versions <= 0.5.0b3.dev101 are affected, 0.5.0b3.dev102 is fixed.An admin who revokes a user's privileges through the REST API does not actually revoke them, because the session carrying those privileges is never invalidated.
pyLoad authorizes each request from values copied into the Flask session at login. set_session in webui/app/helpers.py writes role and perms once, and both login_required and the session branch of apikey_auth read them back from the session rather than from the database. The fix for GHSA-66hx-chf7-3332 handled this by deleting the user's session files, but the call was added only in webui/app/blueprints/json_blueprint.py, at the three WebUI form handlers. Api.set_user_permission and Api.change_password in core/api/init.py write to the database and return. Both are exported over /api/<func> and both appear in the OpenAPI spec the project serves at /api, so the documented administration interface takes the unpatched route.
I should concede an overlap up front. GHSA-66hx-chf7-3332 does name the core method in its own Details, pointing at set_user_permission and noting that it updates the database role and permission only. What that advisory does not do is name /api/set_user_permission as a reachable route, and it does not mention change_password at all, which is the half I think is new.
I ran this against pyload-ng 0.5.0b3.dev101 installed from PyPI, on a real instance with real users. Demoting an admin from role 0 to role 1 with permission 0 by POSTing /api/set_user_permission updated the database immediately. The demoted user's existing session still returned 200 on /api/get_userdir, still loaded /settings, and still wrote reconnect.script through /api/set_config_value, which is the admin-only option CVE-2026-33509 was published for. The identical change through /json/update_users killed that session at once: the same request returned 401 and /settings redirected to the login page.
The password path behaves the same way. After POSTing /api/change_password for a user, their old password was refused at login and the new one accepted, but the session opened under the old password kept working. Through /json/change_password it was dropped. So an owner who rotates a password through the API to evict somebody does not evict them.
One limit worth stating: the API-key branch of apikey_auth reads the user from the database on every request, so key-authenticated callers are not stale. This affects the session branch only.
Check it with your coding agent
It reads this page and tells you if your code is affected.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
Upgrade to 0.5.0b3.dev102
webui.session_lifetime defaults to 44640 minutes, so a stale session can outlive the revocation by about a month.
I think the invalidation belongs beside the database write in the core API rather than in the blueprint, so that every caller of these operations picks it up. Re-reading role and permission from the database per request would close the whole class, but that is a larger change and I have not measured what it would cost here.
I used AI assistance while investigating this, and every result above was executed by me against the released wheel with the paired control runs shown.
This page as .md · .json · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub Advisory Database, CC-BY 4.0. Posts quoted belong to their authors.