CVE-2026-79312

python-webpy: webpy: Missing session ID rotation after authentication leads to session fixation

Published Sep 22, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
webpy web.py 0.76 is vulnerable to Session Fixation. The component Session._load() reads session_id directly from the request cookie and loads that session from the store, and _save() writes back under the same session_id; no rotation after authentication, so a fixed session_id keeps the authenticated state.

Analysis

AI-generated

Technical impact

webpy web.py 0.76 contains a session fixation flaw: its Session._load() method reads a session identifier directly from a cookie and uses it to retrieve session data, while Session._save() writes data back under the same identifier. Because the library never rotates the session ID after a user authenticates, an attacker who can set a predetermined cookie value before login can force that ID into use. Once the victim logs in, the attacker can reuse the same session ID to impersonate the authenticated user, gaining unauthorized access to account resources and data.

Affected Systems

The flaw is known to affect webpy web.py version 0.76; other community‑maintained forks that utilize the same session handling code may also be vulnerable, but no specific older or newer releases are listed as impacted.

Risk and Exploitability

The CVSS score of 6.8 indicates moderate severity, but the lack of a session‑rotation mechanism creates a high‑risk scenario for any webpy‑based application. EPSS data are not available and the vulnerability is not listed in the CISA KEV catalog, suggesting no documented large‑scale exploitation yet. Nevertheless, the flaw can be exploited remotely by setting a malicious cookie or by having a victim visit a site that issues a fixed session ID, enabling session hijacking without requiring privileged access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade webpy to a version that regenerates the session ID after authentication.
  • Implement application‑level logic to force a new session ID and invalidate the old one whenever a user logs in.
  • If an immediate upgrade is not possible, add a server‑side check to revoke any session ID that was set before authentication and prompt the user to start a fresh session.

Generated by OpenCVE AI on September 22, 2026 at 18:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title python-webpy: webpy: Missing session ID rotation after authentication leads to session fixation
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Webpy
Webpy webpy
Vendors & Products Webpy
Webpy webpy
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-384
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N'}

Type Values Removed Values Added
Description webpy web.py 0.76 is vulnerable to Session Fixation. The component Session._load() reads session_id directly from the request cookie and loads that session from the store, and _save() writes back under the same session_id; no rotation after authentication, so a fixed session_id keeps the authenticated state.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 22, 2026, 4:02 PM
Reserved
Aug 25, 2026, 12:00 AM
Status
Deferred
Published
Sep 22, 2026, 4:17 PM
Modified
Sep 22, 2026, 8:00 PM
Severity
Moderate
Public date
Sep 22, 2026, 12:00 AM