Security mailing lists by PureSourceCode

CVE-2026-103022

MEDIUM 5.3CVSS 3.1

Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS)

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.

Published
6 Nov 2026
Last modified
12 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-116CWE-248CWE-775
Also known as
GHSA-cp25-j9x5-p5xm
Sources
NVDJSONOSV GHSA-cp25-j9x5-p5xmJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI urwid < 4.0.7 4.0.7

References

History

  • 25 Nov 2026 21:23 UTC · NVD: first stored (published 6 Nov 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.