CVE-2026-42545

Granian: DoS via WSGI response header panic

State
Published
Severity
5.9 Medium
Published
May 12, 2026
Updated
May 14, 2026
Reserved
Apr 28, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

  • CWE-248 Uncaught Exception
  • CWE-755 Improper Handling of Exceptional Conditions

Affected Products

ProductVersions
granianemmett-framework
  • >= 0.2.0, < 2.7.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.