CVE-2026-42545
MEDIUM 5.9CVSS 3.1Granian vulnerable to DoS via WSGI response header panic
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.
- Published
- 12 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-248CWE-755
- Also known as
- GHSA-f5p7-9fr5-8jmjPYSEC-2026-2502
- Sources
- NVDJSONOSV GHSA-f5p7-9fr5-8jmjJSONOSV PYSEC-2026-2502JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | granian | >= 0.2.0, < 2.7.4 | 2.7.4 |
References
- https://github.com/emmett-framework/granian/security/advisories/GHSA-f5p7-9fr5-8jmj · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42545 · ADVISORY
- https://github.com/emmett-framework/granian · PACKAGE
- https://pypi.org/project/granian · PACKAGE
- https://github.com/advisories/GHSA-f5p7-9fr5-8jmj · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 12 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 May 2026)