Skip to main content

Pyload ng: pyLoad: Api.set_user_permission never invalidates the target's session

0
High
Published: 10/09/2026 (10/09/2026, 17:09:07 UTC)
Source: GCVE Database
Product: pyload-ng

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

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

PyPIghsa
pyload-ng
Affected versions
>=0.5.0b3.dev98 <=0.5.0b3.dev101

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/09/2026, 22:53:38 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses