CVE-2026-9323: Vulnerability in Urwid
Critical. The urwid web display backend (urwid/display/web.py) generates web session identifiers (urwid_id) in Screen.start() by concatenating two random.randrange(109) calls that use Python's Mersenne Twister PRNG, which is not cryptographically secure. Each call consumes approximately 30 bits of PRNG state, and the Mersenne Twister internal state is approximately 19,937 bits, so an attacker who observes approximately 334...
PyPI, CWE-338
- Exploitation
- None confirmed
- Severity
- 9.2 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-83x9-8wvq-rrcp
- Vector
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Weakness
- CWE-338
- Published
- 18 Jul 2026
- Last change
- 20 Nov 2026
- Ecosystem
- PyPI
Affected products
Affected versions and the first fixed release
- Urwid Before 5.1.0; Version 0 ≤24acd12. Fixed in 5.1.0
Affected packages
Vulnerable version ranges and fixed releases
- urwid PyPI, Affected before 4.0.6. Fixed in 4.0.6
Advisories
Vendor and security advisories
Patches and fixes
Updates, commits and release notes
- github.com/urwid/urwid/pull/1128
- github.com/urwid/urwid/commit/24acd12f0d0598036d0d577f2ee63e4a27b4a3d9
Related
- Urwid vulnerabilities Recent advisories, watch this product