urwid/display/web.py performs unguarded character encoding · Prior to 4.0.7, handle_short_request()
Affects urwidSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium · fixed in 4.0.7 : update urwid when convenient.
Data as of 17 Nov 2026, 06:50 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.3 |
|---|
- Patch
- Available – fixed in 4.0.7
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 6 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 16 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10urwidpkg:deb/ubuntu/urwid?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSurwidpkg:deb/ubuntu/urwid?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSurwidpkg:deb/ubuntu/urwid?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSurwidpkg:deb/ubuntu/urwid?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSurwidpkg:deb/ubuntu/urwid?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSurwidpkg:deb/ubuntu/urwid?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Urwid to version 4.0.7 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated. Since this is a software defect fixed in a specific version, applying the official patch is the recommended remediation.
Description
Urwid versions prior to 4.0.7 contain a vulnerability in the handle_short_request() function in urwid/display/web.py. This function performs unguarded character encoding on POST input and unguarded UTF-8 decoding on polling update socket output. An attacker with a valid X-Urwid-ID session token can submit crafted non-ASCII POST data or non-UTF-8 polling output to trigger UnicodeEncodeError or UnicodeDecodeError, causing the CGI handler to return an error and terminate request processing. Additionally, the POST exception path leaves an open file descriptor, which can lead to denial of service through resource exhaustion. This issue is fixed in version 4.0.7.
References
- ubuntu.com/security/CVE-2026-103022 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-103022 (opens in a new tab)
- github.com/urwid/urwid/security/advisories/GHSA-cp25-j9x5-p5xm (opens in a new tab)
- github.com/urwid/urwid/pull/1201 (opens in a new tab)
- github.com/urwid/urwid/commit/b79d9a96843a6f5950bb2bfab5d059bdc61c538b (opens in a new tab)
- github.com/urwid/urwid/releases/tag/4.0.7 (opens in a new tab)