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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.07% (30th percentile)

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.

CVSS Scores

version 3.1
Expand this section

Snyk

7.1 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    High
  • Availability (A)
    None
Expand this section

NVD

7.5 high