# CVE-2026-42545: Granian: DoS via WSGI response header panic

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-06T21:24:56.000Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-f5p7-9fr5-8jmj, PYSEC-2026-2502
- Weaknesses: CWE-248, CWE-755
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- emmett-framework granian: >= 0.2.0, < 2.7.4
- granian (PyPI): from 0.2.0 before 2.7.4

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/emmett-framework/granian/security/advisories/GHSA-f5p7-9fr5-8jmj> (exploit, 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)

## Sources

- CVE List: [CVE-2026-42545](https://www.cve.org/CVERecord?id=CVE-2026-42545), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-f5p7-9fr5-8jmj](https://github.com/advisories/GHSA-f5p7-9fr5-8jmj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42545](https://nvd.nist.gov/vuln/detail/CVE-2026-42545), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2502](https://osv.dev/vulnerability/PYSEC-2026-2502), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-42545 · Whole record: https://cve.day/CVE-2026-42545.json · Rebuilt by cve.day 2026-11-25T22:59:21.505Z
