CVE-2026-103022
Urwid is a console user interface library for Python. Prior to …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/urwid/urwid/commit/b79d9a96843a6f5950bb2bfab5d059bdc61c538b
- github.com/urwid/urwid/pull/1201
- github.com/urwid/urwid/releases/tag/4.0.7
- github.com/urwid/urwid/security/advisories/GHSA-cp25-j9x5-p5xm
- nvd.nist.gov/vuln/detail/CVE-2026-103022
- github.com/advisories/GHSA-cp25-j9x5-p5xm
- nvd.nist.gov/vuln/detail/CVE-2026-103022
- cve.org/CVERecord?id=CVE-2026-103022
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.