Home / urwid / urwid / CVE-2026-9323
CVE-2026-9323: is it exploited, and which versions of urwid are affected and fixed?
CVE-2026-9323 is a weak random number generator vulnerability in urwid. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: urwid before 5.1.0 (CVE record by VulnCheck). Fixed in 5.1.0 (CVE record by VulnCheck). Severity: Critical (9.2, CVSS 4.0, from VulnCheck).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 20, 2026, 14:33 UTC and NVD November 20, 2026, 16:04 UTC.
What is CVE-2026-9323?
Insecure PRNG and Information Exposure in urwid Web Display Backend
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
From the CVE record by VulnCheck, last updated November 20, 2026, 14:31 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| urwid | urwid | before 5.1.0 | 5.1.0 |
As the CVE record by VulnCheck states it, last updated November 20, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-9323?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.2 | CVSS 4.0 | 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 | VulnCheck |
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-9323 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, July 20, 2026)
- EPSS
- 0.44% probability of exploitation activity in the next 30 days, percentile 40.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Where are the vendor advisories and references?
- GitHub Security Advisory (GHSA-rjwp-g85x-gmjv) vendor-advisory
- GitHub Security Advisory (GHSA-xm5p-pwm6-5w65) vendor-advisory
- Product product
- Patch Commit patch
- GitHub Issue issue-tracking
- Pull Request issue-tracking, patch
- https://www.vulncheck.com/advisories/insecure-prng-and-information-exposure-in-urwid-web-display-backend third-party-advisory
- https://lists.debian.org/debian-lts-announce/2026/09/msg00015.html
Who found and reported it?
- Katriel Moses (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- May 22, 2026
- Published
- July 18, 2026, 13:51 UTC
- CVE record updated
- November 20, 2026, 14:31 UTC by VulnCheck
- NVD
- Deferred, last modified November 20, 2026, 15:18 UTC
- Last checked
- CVE list November 20, 2026, 14:33 UTC; NVD November 20, 2026, 16:04 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect urwid?
- Nov 6, 2026CVE-2026-103022 urwid: improper output encoding
Questions about CVE-2026-9323
Is CVE-2026-9323 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.44% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of urwid are affected by CVE-2026-9323?
urwid before 5.1.0, per the CVE record by VulnCheck. The tables above give every range the sources list.
Which version fixes CVE-2026-9323?
5.1.0, per the CVE record by VulnCheck. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-9323?
Critical (9.2, CVSS 4.0, from VulnCheck). The severity table above shows each score with its source.
Where is the official record of CVE-2026-9323?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.