Pyload ng: pyLoad: Privilege revocation and password change through the REST API do not invalidate the user's session
Description
pyLoad-ng versions up to 0.5.0b3.dev101 contain a vulnerability where revoking user privileges or changing passwords via the REST API does not invalidate the user's existing session. This allows a user to retain access with old privileges or session state despite database updates. The issue affects the session-based authentication branch, which caches roles and permissions at login and does not re-check them on each request. The API key authentication branch is unaffected. Sessions can remain valid for about a month due to the default session lifetime.
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
In pyLoad-ng up to version 0.5.0b3.dev101, administrative actions performed through the REST API endpoints /api/set_user_permission and /api/change_password update the database but do not invalidate the affected user's existing session. The Flask session stores role and permission data at login, and subsequent requests read these cached values rather than querying the database. Consequently, a demoted user's session remains active with old privileges, and a password change does not terminate the previous session. The issue does not affect API key authentication, which reads user data from the database on every request. The default session lifetime is approximately 31 days, allowing stale sessions to persist for a significant duration. The problem arises because session invalidation is only implemented in certain WebUI form handlers, not in the core API methods.
Potential Impact
An attacker or user whose privileges are revoked or whose password is changed via the REST API can continue to use their existing session with the previous privileges until the session expires or is manually invalidated. This can lead to unauthorized access to administrative functions and sensitive operations for up to about a month. The vulnerability undermines the effectiveness of privilege revocation and password rotation as security controls in affected versions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, administrators should avoid using the REST API endpoints /api/set_user_permission and /api/change_password for privilege revocation or password changes, and instead use the WebUI form handlers (/json/update_users and /json/change_password) which properly invalidate sessions. Alternatively, manual session invalidation or reducing session lifetime may mitigate risk. The recommended fix is to invalidate user sessions immediately after database updates in the core API methods to ensure all callers enforce updated permissions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-jq7h-wrvp-3rgx
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6ac96e5f2cdf04f65689a8fb
Added to database: 10/09/2026, 22:44:47 UTC
Last enriched: 10/09/2026, 22:53:34 UTC
Last updated: 10/09/2026, 22:53:34 UTC
Views: 7
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.