Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. blacksheep
  4. ›
  5. CVE-2026-22779

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

January 14, 2026

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.

Attack vector: Applications using user input in HTTP client requests (method, URL, headers).

References

  • github.com/Neoteroi/BlackSheep
  • github.com/Neoteroi/BlackSheep/commit/bd4ecb9542b5d52442276b5a6907931b90f38d12
  • github.com/Neoteroi/BlackSheep/releases/tag/v2.4.6
  • github.com/Neoteroi/BlackSheep/security/advisories/GHSA-6pw3-h7xf-x4gp
  • github.com/advisories/GHSA-6pw3-h7xf-x4gp
  • nvd.nist.gov/vuln/detail/CVE-2026-22779

Code Behaviors & Features

Detect and mitigate CVE-2026-22779 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.4.6

Fixed versions

  • 2.4.6

Solution

Upgrade to version 2.4.6 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
  • CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')

Source file

pypi/blacksheep/CVE-2026-22779.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:36:02 +0000.