CVE-2026-42545: CWE-248: Uncaught Exception in emmett-framework granian
Granian is a Rust HTTP server for Python applications. From 0.2.0 to 2.7.4, Granian aborts a worker process if a WSGI application returns an invalid HTTP response header name or value. The WSGI response conversion path uses .unwrap() on both the header name and header value constructors, so malformed output from the application becomes a process abort instead of a handled error. This vulnerability is fixed in 2.7.4.
AI Analysis
Technical Summary
Granian versions 0.2.0 through 2.7.3 contain a vulnerability where malformed HTTP response headers from WSGI applications cause the server to abort worker processes. This is due to the use of .unwrap() on header name and value constructors, which triggers an uncaught exception and process termination. The issue is tracked as CWE-248 (Uncaught Exception) and CWE-755 (Improper Handling of Exceptional Conditions). The vulnerability was fixed in Granian version 2.7.4.
Potential Impact
The vulnerability causes denial of service by aborting worker processes when invalid HTTP response headers are returned by the WSGI application. There is no impact on confidentiality or integrity, only availability is affected. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade Granian to version 2.7.4 or later, where this issue is fixed. No other official remediation or temporary workaround is documented. Patch status is not explicitly stated but the fix is included in version 2.7.4.
CVE-2026-42545: CWE-248: Uncaught Exception in emmett-framework granian
Description
Granian is a Rust HTTP server for Python applications. From 0.2.0 to 2.7.4, Granian aborts a worker process if a WSGI application returns an invalid HTTP response header name or value. The WSGI response conversion path uses .unwrap() on both the header name and header value constructors, so malformed output from the application becomes a process abort instead of a handled error. This vulnerability is fixed in 2.7.4.
CVSS v3.1
Score 5.9medium
Affected software
pkg:cargo/github/emmett-framework/granianRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Granian versions 0.2.0 through 2.7.3 contain a vulnerability where malformed HTTP response headers from WSGI applications cause the server to abort worker processes. This is due to the use of .unwrap() on header name and value constructors, which triggers an uncaught exception and process termination. The issue is tracked as CWE-248 (Uncaught Exception) and CWE-755 (Improper Handling of Exceptional Conditions). The vulnerability was fixed in Granian version 2.7.4.
Potential Impact
The vulnerability causes denial of service by aborting worker processes when invalid HTTP response headers are returned by the WSGI application. There is no impact on confidentiality or integrity, only availability is affected. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade Granian to version 2.7.4 or later, where this issue is fixed. No other official remediation or temporary workaround is documented. Patch status is not explicitly stated but the fix is included in version 2.7.4.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-28T16:56:50.191Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a03a7e4cbff5d86101ff970
Added to database: 05/12/2026, 22:21:24 UTC
Last enriched: 05/20/2026, 18:50:32 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 81
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.