Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/urwid/urwid/commit/b79d9a96843a6f5950bb2bfab5d059bdc61c538b
- https://github.com/urwid/urwid/pull/1201
- https://github.com/urwid/urwid/releases/tag/4.0.7
- https://github.com/urwid/urwid/security/advisories/GHSA-cp25-j9x5-p5xm
FAQ
What is CVE-2026-103022?
CVE-2026-103022 is a vulnerability with a CVSS score of 5.3 (MEDIUM). 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...
How severe is CVE-2026-103022?
CVE-2026-103022 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-103022?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.