CRLF Injection Affecting github.com/swift-server/async-http-client package, versions <1.4.1 >=1.5.0 <1.9.1 >=1.10.0 <1.12.1 >=1.13.0 <1.13.2


0.0
high

Snyk CVSS

    Attack Complexity Low
    User Interaction Required
    Integrity High

    Threat Intelligence

    EPSS 0.06% (25th percentile)
Expand this section
NVD
7.5 high

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 ID SNYK-SWIFT-SWIFTSERVERASYNCHTTPCLIENT-3237994
  • published 19 Jan 2023
  • disclosed 19 Jan 2023
  • credit Alessio Della Libera

How to fix?

Upgrade swift-server/async-http-client to version 1.4.1, 1.9.1, 1.12.1, 1.13.2 or higher.

Overview

swift-server/async-http-client is a HTTP Client library built on top of SwiftNIO

Affected versions of this package are vulnerable to CRLF Injection due to insufficient validation of HTTP header field values before sending them to the network. Users are vulnerable if they pass untrusted data into HTTP header field values without prior sanitization. This vulnerability allows attackers to inject new HTTP header fields, or entirely new requests, into the data stream. This can cause requests to be understood very differently by the remote server than was intended. In general, this is unlikely to result in data disclosure, but it can result in a number of logical errors and other misbehaviours.