CVE-2026-129706
Received Received - Intake

Session Fixation in Flask-Login User Authentication

Vulnerability report for CVE-2026-129706, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-16

Last updated on: 2026-11-16

Assigner: CIRCL

Description

In the vulnerability-lookup web application, the Flask-Login session identifier was set to the bare numeric user ID (User.get_id() returned self.id). Because the session ID contained no component derived from the user's credential, it remained valid indefinitely regardless of any subsequent password change, account recovery, or administrator-initiated password reset. An attacker who had obtained a valid session for a user account (for example through cross-site scripting, session hijacking, or a previously exposed feed or API key) could continue to access that user's account after the user changed their password, because the session cookie still carried the same static user ID and the user_loader accepted it without any credential-bound validation. The affected component is the session management layer of the vulnerability-lookup Flask application, specifically the User.get_id() method in website/models/user.py and the load_user callback in website/web/views/session_mgmt.py. The vulnerability required that an attacker already possessed a valid session for the target user; no additional authentication or special deployment configuration was needed beyond a standard deployment of the application. The security impact is that a user cannot effectively revoke an attacker's access by changing their password, performing an account recovery, or having an administrator reset the credential. The attacker retains full authenticated access to the user's profile, subscriptions, and any role-gated functionality for the lifetime of the session cookie. Additionally, sessions that were opened via a feed key or API key before a prior fix (commit 3605d5b6) also persisted indefinitely.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-16
Last Modified
2026-11-16
Generated
2026-11-16
AI Q&A
2026-11-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
vulnerability_lookup vulnerability_lookup *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-613 According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization."

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves improper session management in a Flask web application. The session identifier was set to just the user's numeric ID, which never changed even if the user updated their password. This meant attackers who stole a valid session could keep accessing the account forever, even after the user changed their password or an admin reset it.

Detection Guidance

This vulnerability is specific to the Flask-Login session management in the vulnerability-lookup application. To detect it, inspect the session management code for User.get_id() and load_user() functions in website/models/user.py and website/web/views/session_mgmt.py. Check if session IDs are based solely on user IDs without any credential-derived component.

Impact Analysis

If an attacker gains access to your session, they can maintain that access indefinitely. Even if you change your password or an admin resets it, the attacker can still use the old session to log in. This could lead to unauthorized access to your account, personal data, or role-based features.

Compliance Impact

This vulnerability violates principles of least privilege and session management in GDPR and HIPAA. It allows unauthorized access to persist after password changes, failing to ensure proper user authentication and session termination. This could lead to non-compliance with data protection requirements.

Mitigation Strategies

Update the User.get_id() method to return a session ID in the format '<user_id>:<digest>' where the digest is an HMAC of the password hash. Modify load_user() to verify the session digest against the current password hash. Ensure all existing sessions using the old format are invalidated.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-129706. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...