{"api_version":"1","generated_at":"2026-11-07T00:41:38+00:00","cve":"CVE-2026-103022","urls":{"html":"https://cve.report/CVE-2026-103022","api":"https://cve.report/api/cve/CVE-2026-103022.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-103022","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-103022"},"summary":{"title":"Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS)","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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-11-06 22:17:49","updated_at":"2026-11-06 22:17:49"},"problem_types":["CWE-116","CWE-248","CWE-775","CWE-116 CWE-116: Improper Encoding or Escaping of Output","CWE-248 CWE-248: Uncaught Exception","CWE-775 CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"5.3","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"LOW"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"5.3","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}}],"references":[{"url":"https://github.com/urwid/urwid/commit/b79d9a96843a6f5950bb2bfab5d059bdc61c538b","name":"https://github.com/urwid/urwid/commit/b79d9a96843a6f5950bb2bfab5d059bdc61c538b","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/urwid/urwid/releases/tag/4.0.7","name":"https://github.com/urwid/urwid/releases/tag/4.0.7","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/urwid/urwid/pull/1201","name":"https://github.com/urwid/urwid/pull/1201","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/urwid/urwid/security/advisories/GHSA-cp25-j9x5-p5xm","name":"https://github.com/urwid/urwid/security/advisories/GHSA-cp25-j9x5-p5xm","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-103022","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-103022","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"urwid","product":"urwid","version":"affected < 4.0.7","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"urwid","vendor":"urwid","versions":[{"status":"affected","version":"< 4.0.7"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-116","description":"CWE-116: Improper Encoding or Escaping of Output","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-248","description":"CWE-248: Uncaught Exception","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-775","description":"CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-06T21:33:37.028Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/urwid/urwid/security/advisories/GHSA-cp25-j9x5-p5xm","tags":["x_refsource_CONFIRM"],"url":"https://github.com/urwid/urwid/security/advisories/GHSA-cp25-j9x5-p5xm"},{"name":"https://github.com/urwid/urwid/pull/1201","tags":["x_refsource_MISC"],"url":"https://github.com/urwid/urwid/pull/1201"},{"name":"https://github.com/urwid/urwid/commit/b79d9a96843a6f5950bb2bfab5d059bdc61c538b","tags":["x_refsource_MISC"],"url":"https://github.com/urwid/urwid/commit/b79d9a96843a6f5950bb2bfab5d059bdc61c538b"},{"name":"https://github.com/urwid/urwid/releases/tag/4.0.7","tags":["x_refsource_MISC"],"url":"https://github.com/urwid/urwid/releases/tag/4.0.7"}],"source":{"advisory":"GHSA-cp25-j9x5-p5xm","discovery":"UNKNOWN"},"title":"Urwid: handle_short_request() crashes on non-ASCII POST body (UnicodeEncodeError DoS)"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-103022","datePublished":"2026-11-06T21:33:37.028Z","dateReserved":"2026-09-29T21:13:24.031Z","dateUpdated":"2026-11-06T21:33:37.028Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-06 22:17:49","lastModifiedDate":"2026-11-06 22:17:49","problem_types":["CWE-116","CWE-248","CWE-775","CWE-116 CWE-116: Improper Encoding or Escaping of Output","CWE-248 CWE-248: Uncaught Exception","CWE-775 CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"LOW"},"exploitabilityScore":3.9,"impactScore":1.4}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"103022","Ordinal":"1","Title":"Urwid: handle_short_request() crashes on non-ASCII POST body (Un","CVE":"CVE-2026-103022","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"103022","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Urwid: handle_short_request() crashes on non-ASCII POST body (Un"}]}}}