๐Ÿ” CVE Alert

CVE-2026-103022

MEDIUM 5.3

Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS)

CVSS Score
5.3
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-116 CWE-248 CWE-775
Vendor urwid
Product urwid
Published Nov 6, 2026
Stay Ahead of the Next One

Get instant alerts for urwid urwid

Be the first to know when new medium vulnerabilities affecting urwid urwid are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Affected Versions

urwid / urwid
< 4.0.7

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/urwid/urwid/security/advisories/GHSA-cp25-j9x5-p5xm github.com: https://github.com/urwid/urwid/pull/1201 github.com: https://github.com/urwid/urwid/commit/b79d9a96843a6f5950bb2bfab5d059bdc61c538b github.com: https://github.com/urwid/urwid/releases/tag/4.0.7