CVE-2026-103022 · Package
NO FIX YET · SEE WHAT TO DO
Urwid is a Python console UI library whose web display handler mishandles non-ASCII POST input and non-UTF-8 output without guards. An attacker holding a valid session token can make the CGI handler error out and leak file descriptors, enabling denial of service of the web display interface.
first public Jul 25, 2026 · 1 source
Check it with your coding agent
It checks your repository and tells you if you’re affected, with the fix.
Only applications that use Urwid's web display module (urwid/display/web.py) to serve a browser-based terminal UI are exposed. Console-only Urwid applications do not run this code path. The attacker needs a valid X-Urwid-ID session token, so exposure depends on how sessions are issued and who can reach the web interface.
Not affected if auth-required, console-only-use, no-web-display
Who cares python, urwid, web-display
pip show urwid or python -c "import urwid; print(urwid.__version__)"4.0.7 or laterUrwid 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.
Are you affected?
Tell InfraStack what you run. It checks this one, and every next one, against your stack.
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.