Intel

AIKIDO-2026-456548

urwid is vulnerable to Denial of Service (DoS)

CVE-2026-103022Published Jul 28, 2026
July 28, 2026

53

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The handle_short_request() function in the urwid web display backend encodes POST request bodies to ASCII before writing them to a named pipe. A request body containing any non-ASCII byte raises an unhandled UnicodeEncodeError, crashing the CGI process with an HTTP 500, and a file descriptor opened earlier in the same function leaks because it is not closed on the error path. A related polling update path also fails to handle non-UTF-8 socket output, raising an unhandled UnicodeDecodeError. The fix adds exception handling and correct encoding so malformed input no longer crashes the handler or leaks descriptors.

How do I fix this?

Upgrade the urwid library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and use the urwid web display (CGI) interface.

Package

Versions

0.8.0 - 4.0.6

Fixed in 4.0.7

Background info

urwid is vulnerable to Denial of Service (DoS) in versions 0.8.0 - 4.0.6.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea