Home / urwid / urwid / CVE-2026-103022
CVE-2026-103022: is it exploited, and which versions of urwid are affected and fixed?
CVE-2026-103022 is an improper output encoding 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, 19:09 UTC). Affected: urwid before 4.0.7 (GitHub advisory GHSA-cp25-j9x5-p5xm). Fixed in 4.0.7 (GitHub advisory GHSA-cp25-j9x5-p5xm). Severity: Medium (5.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 19:09 UTC, CVE record November 19, 2026, 07:05 UTC and NVD November 19, 2026, 07:04 UTC.
What is CVE-2026-103022?
Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS)
Urwid is a console user interface library for Python. Prior to 4.0.7, handle_short_request() in urwid/display/web.py performs unguarded character encoding on POST input and unguarded UTF-8 decoding on polling update socket output. A remote attacker who obtains a valid X-Urwid-ID session token can submit non-ASCII POST data that raises UnicodeEncodeError, while non-UTF-8 polling output raises UnicodeDecodeError, causing the CGI handler to return an error and terminate request processing. The POST exception path also leaves an opened file descriptor unclosed for the CGI process lifetime, so repeated requests can cause denial of service for the web display interface. This issue is fixed in version 4.0.7.
From the CVE record by GitHub_M, last updated November 11, 2026, 03:39 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| urwid | urwid | < 4.0.7 |
As the CVE record by GitHub_M states it, last updated November 11, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | urwid | < 4.0.7 | 4.0.7 | GHSA-cp25-j9x5-p5xm |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 9, 2026. Summary: Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS).
How severe is CVE-2026-103022?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | GitHub_M |
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-103022 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, November 11, 2026)
- EPSS
- 0.58% probability of exploitation activity in the next 30 days, percentile 49.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-116 Improper Encoding or Escaping of Output
- CWE-248 Uncaught Exception
- CWE-775 Missing Release of File Descriptor or Handle after Effective Lifetime
Where are the vendor advisories and references?
- https://github.com/urwid/urwid/security/advisories/GHSA-cp25-j9x5-p5xm x_refsource_CONFIRM
- https://github.com/urwid/urwid/pull/1201 x_refsource_MISC
- https://github.com/urwid/urwid/commit/b79d9a96843a6f5950bb2bfab5d059bdc61c538b x_refsource_MISC
- https://github.com/urwid/urwid/releases/tag/4.0.7 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- September 29, 2026
- Published
- November 6, 2026, 21:33 UTC
- CVE record updated
- November 11, 2026, 03:39 UTC by GitHub_M
- NVD
- Deferred, last modified November 12, 2026, 22:11 UTC
- Last checked
- CVE list November 19, 2026, 07:05 UTC; NVD November 19, 2026, 07:04 UTC; KEV December 3, 2026, 19:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect urwid?
- Jul 18, 2026CVE-2026-9323 urwid: weak random number generator
Questions about CVE-2026-103022
Is CVE-2026-103022 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 19:09 UTC. FIRST's EPSS gives it a 0.58% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of urwid are affected by CVE-2026-103022?
urwid before 4.0.7, per the GitHub advisory GHSA-cp25-j9x5-p5xm. The tables above give every range the sources list.
Which version fixes CVE-2026-103022?
4.0.7, per the GitHub advisory GHSA-cp25-j9x5-p5xm. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-103022?
Medium (5.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-103022?
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.