# CVE-2026-22779: BlackSheep ClientSession is vulnerable to CRLF injection

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- 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.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-01-14T16:49:34.202Z
- Modified: 2026-07-07T17:57:21.550Z
- Also known as: GHSA-6pw3-h7xf-x4gp, PYSEC-2026-1222
- Weaknesses: CWE-93, CWE-113
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

BlackSheep is an asynchronous web framework to build event based web applications with Python. Prior to 2.4.6, the HTTP Client implementation in BlackSheep is vulnerable to CRLF injection. Missing headers validation makes it possible for an attacker to modify the HTTP requests (e.g. insert a new header) or even create a new HTTP request. Exploitation requires developers to pass unsanitized user input directly into headers.The server part is not affected because BlackSheep delegates to an underlying ASGI server handling of response headers. This vulnerability is fixed in 2.4.6.

(As written by CVE List.)

## Affected

- Neoteroi BlackSheep: < 2.4.6; before 2.4.6
- blacksheep (PyPI): before 2.4.6

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/Neoteroi/BlackSheep/security/advisories/GHSA-6pw3-h7xf-x4gp> (third-party-advisory, web)
- <https://github.com/Neoteroi/BlackSheep/commit/bd4ecb9542b5d52442276b5a6907931b90f38d12> (patch, web)
- <https://github.com/Neoteroi/BlackSheep/releases/tag/v2.4.6> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22779> (advisory)
- <https://github.com/Neoteroi/BlackSheep> (package)
- <https://pypi.org/project/blacksheep> (package)
- <https://github.com/advisories/GHSA-6pw3-h7xf-x4gp> (advisory)

## Sources

- CVE List: [CVE-2026-22779](https://www.cve.org/CVERecord?id=CVE-2026-22779), CVE Terms of Use, modified 2026-01-14
- GitHub Advisory Database: [GHSA-6pw3-h7xf-x4gp](https://github.com/advisories/GHSA-6pw3-h7xf-x4gp), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-22779](https://nvd.nist.gov/vuln/detail/CVE-2026-22779), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1222](https://osv.dev/vulnerability/PYSEC-2026-1222), CC-BY-4.0, modified 2026-07-07

---

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