Improper Handling of Exceptional Conditions Affecting granian package, versions [,2.7.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-GRANIAN-16635309
  • published11 May 2026
  • disclosed6 May 2026
  • creditZ-Bra0

Introduced: 6 May 2026

CVE-2026-42545  (opens in a new tab)
CWE-248  (opens in a new tab)
CWE-755  (opens in a new tab)

How to fix?

Upgrade granian to version 2.7.4 or higher.

Overview

granian is an A Rust HTTP server for Python applications

Affected versions of this package are vulnerable to Improper Handling of Exceptional Conditions through the WSGI response conversion process. An attacker can cause the worker process to abort by supplying or influencing invalid HTTP response header names or values, such as headers containing spaces, carriage returns, line feeds, or null bytes. This is only exploitable if the WSGI application emits invalid headers, either due to application bugs or attacker-controlled input.

CVSS Base Scores

version 4.0
version 3.1