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.
Metrics
Affected Vendors & Products
References
History
Fri, 06 Nov 2026 23:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Urwid
Urwid urwid |
|
| Vendors & Products |
Urwid
Urwid urwid |
Fri, 06 Nov 2026 21:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS) | |
| Weaknesses | CWE-116 CWE-248 CWE-775 |
|
| References |
| |
| Metrics |
cvssV3_1
|
Status: PUBLISHED
Assigner: GitHub_M
Published: 2026-11-06T21:33:37.028Z
Updated: 2026-11-06T21:33:37.028Z
Reserved: 2026-09-29T21:13:24.031Z
Link: CVE-2026-103022
No data.
Status : Received
Published: 2026-11-06T22:17:49.920
Modified: 2026-11-06T22:17:49.920
Link: CVE-2026-103022
No data.
ReportizFlow