Improper Encoding or Escaping of Output Affecting urwid package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.58% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-URWID-22283392
  • published8 Nov 2026
  • disclosed6 Nov 2026

Introduced: 6 Nov 2026

NewCVE-2026-103022  (opens in a new tab)
CWE-116  (opens in a new tab)
CWE-248  (opens in a new tab)
CWE-775  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest urwid.

NVD Description

Note: Versions mentioned in the description apply only to the upstream urwid package and not the urwid package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.