CVE-2026-103022
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.
Weakness
- CWE-116: Improper Encoding or Escaping of Output
- CWE-248: Uncaught Exception
- CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-11-11 |
Timeline
- 2026-11-06Published by the CNA21:33 UTC
- 2026-11-09GitHub advisory published (GHSA-cp25-j9x5-p5xm)3 days after publication
- 2026-11-11CISA SSVC decision recorded5 days after publication
Exploit and advisory records
GitHub advisory GHSA-cp25-j9x5-p5xm, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI urwid | before 4.0.7 | 4.0.7 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| urwid urwid |
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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-103022'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-103022'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-103022'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-103022'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).