Read the docs
TI-2026-70033 Aliases GHSA-jq7h-wrvp-3rgx

pyLoad sessions survive privilege revocation and password change via REST API

Priority LOW 38CWE-613Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Security bypass
Confidentiality · integrity · availability
—
Fix status
No fix listed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-613.

Summary

pyLoad-ng through 0.5.0b3.dev101 does not invalidate a user's existing session when an admin revokes their privileges or changes their password through the REST API. The session keeps the old role and permissions because they are copied into the Flask session at login, so the demoted or re-passworded user keeps access to admin-only functions such as set_config_value. Only the WebUI form handlers delete the session files, and the API endpoints /api/set_user_permission and /api/change_password do not. CWE-613 applies.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

Description from the GitHub advisory

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. 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.

Why it matters now

Fix No fix listed No fixed version in the sources yet

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—pyload-ng (PyPI)up to 0.5.0b3.dev101—No fix listedGHSA-jq7h-wrvp-3rgx
  • pyload-ng (PyPI) Vendor— Affected up to 0.5.0b3.dev101 Fixed in — No fix listed GHSA-jq7h-wrvp-3rgx

Remediation

The sources list no fixed version for pyload-ng.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

Timeline

  1. 2026-10-09 Threatist record created from GHSA-jq7h-wrvp-3rgx

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences