Pyload ng: pyLoad: Api.set_user_permission never invalidates the target's session
Description
pyLoad-ng contains a vulnerability where an admin revoking or downgrading a non-admin user's permissions via the documented API does not invalidate the user's existing Flask session cookie. As a result, the demoted user retains their previous elevated permissions in their session for up to the session lifetime (~31 days) or until they log out. This stale session issue occurs because the API method that changes permissions does not clear or refresh user sessions, and no mechanism exists to update session data after login. The vulnerability affects versions from 0.5.0b3.dev98 through 0.5.0b3.dev101 and has a CVSS score of 7.5 (high severity).
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in pyLoad-ng arises from the API method Api.set_user_permission, which updates a user's permissions and roles in the database but does not invalidate or clear the user's existing Flask session cookie. Consequently, if an admin downgrades a user's permissions via the documented /api/set_user_permission RPC endpoint, the user's session still reflects their old permissions until the session expires or the user logs out. The session data is set only at login and is never refreshed during the session lifetime (~31 days). Authorization checks rely on the session's cached role and permission bits, allowing the demoted user to retain elevated access temporarily. The vulnerability is present in versions >=0.5.0b3.dev98 and <=0.5.0b3.dev101. No direct patch or fix is indicated in the provided data.
Potential Impact
A non-admin user who is demoted by an admin through the API retains their previous elevated permissions in their active session cookie for up to approximately 31 days or until they log out. This allows the demoted user to continue accessing privileged functionality during this window, potentially leading to unauthorized access or actions. The impact affects confidentiality, integrity, and availability as indicated by the CVSS vector (C:H/I:H/A:H).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, administrators should be aware that revoking or downgrading user permissions via the API does not immediately revoke active sessions. As a workaround, affected users should be forced to log out or have their sessions manually invalidated if possible. Monitoring and restricting use of the /api/set_user_permission endpoint to trusted admins only is recommended.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-889w-m37p-88m5
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6ac96e612cdf04f65689a8fd
Added to database: 10/09/2026, 22:44:49 UTC
Last enriched: 10/09/2026, 22:53:38 UTC
Last updated: 10/09/2026, 22:53:38 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.