CVE-2026-103022

GHSA-cp25-j9x5-p5xm · published 6 Nov 2026 · updated 16 Nov 2026

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

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in urwid 4.0.7.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
urwid<4.0.7
pypi: urwid<4.0.7, <=4.0.64.0.7

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-103022 severity on Zeptric[![CVE-2026-103022](https://zeptric.io/badge/cve/CVE-2026-103022.svg)](https://zeptric.io/cve/CVE-2026-103022)