The urwid web display backend (urwid/display/web.py) generates web session identifiers (urwid_id) in Screen.start() by concatenating two random.randrange(10**9) 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 session IDs (for example via the X-Urwid-ID HTTP response header) can fully reconstruct the internal state and predict all past and future session IDs (Path B). The same identifier is also used as the filename of a FIFO created in the world-listable /tmp directory (for example /tmp/urwid375487765176907690.in), so any local user on the host can list /tmp to enumerate active session tokens directly (Path A). With a valid session ID, an attacker can read the victim's terminal screen via the polling endpoint, inject keystrokes into the victim's session (yielding OS-level code execution with the session owner's privileges if the session runs a shell), and inject exit sequences or flood the FIFO to terminate or crash the session. A prior Bandit S311 warning on this usage was suppressed with # noqa: S311 rather than fixed
CVE-2026-9323
Score 8.1 from GitHub Security Advisory (severity: CRITICAL) published 2026-07-18. a secondary CVSS source baseline 8.1; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.1
- EG Score
- 8.1(high)
- EG Risk
- 37(Track)EG Risk 37/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity81% × 45%Exploitation0% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS
- 34.4%
- KEV
- Not listed
Published
July 18, 2026
Last Modified
July 20, 2026
Advisory Details (5)
Auto-updated Jul 18, 2026Insecure PRNG and Information Exposure in urwid Web Display Backend | Advisories | VulnCheck
https://www.vulncheck.com/advisories/insecure-prng-and-information-exposure-in-urwid-web-display-backendWeb display: use secure random session identifiers
Patch available: urwid/urwid 4.0.1 (PR #1128 merged 2026-04-28)
https://github.com/urwid/urwid/pull/1128Security Vulnerabilities Found · Issue #1127 · urwid/urwid · GitHub
https://github.com/urwid/urwid/issues/1127commit 24acd12f0d05 (urwid/urwid)
Patch available: urwid/urwid 4.0.2 (contains commit 24acd12f0d05)
https://github.com/urwid/urwid/commit/24acd12f0d0598036d0d577f2ee63e4a27b4a3d9GitHub - urwid/urwid: Console user interface library for Python (official repo) · GitHub
https://github.com/urwid/urwidVendor Advisories for CVE-2026-9323(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 12× in last 7d / 12× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-23 03:23 UTCEG score recompute
- 2026-07-22 23:57 UTCEG score recompute
- 2026-07-22 23:57 UTCGHSA enrichment
- 2026-07-22 14:08 UTCEPSS rescore
- 2026-07-21 15:25 UTCEPSS rescore
- 2026-07-21 15:25 UTCEPSS rescore
- 2026-07-20 17:08 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-18 16:05 UTCEG score recompute
- 2026-07-18 16:05 UTCGHSA enrichment
- 2026-07-18 14:10 UTCEG score recompute
- 2026-07-18 14:09 UTCMITRE cvelistV5first tracked
Frequently asked(5)
What is CVE-2026-9323?
When was CVE-2026-9323 disclosed?
Is CVE-2026-9323 actively exploited?
What is the CVSS score of CVE-2026-9323?
How do I remediate CVE-2026-9323?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-9323
Is Your Infrastructure Affected by CVE-2026-9323?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.