CRLF Injection Affecting refit package, versions [,8.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.04% (11th 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-DOTNET-REFIT-8344796
  • published 7 Nov 2024
  • disclosed 4 Nov 2024
  • credit sofiaml

How to fix?

Upgrade Refit to version 8.0.0 or higher.

Overview

Affected versions of this package are vulnerable to CRLF Injection due to header-related attributes: Header, HeaderCollection and Authorize, through the HttpHeaders.TryAddWithoutValidation method. An attacker can manipulate HTTP headers or perform HTTP request smuggling.

Notes:

  1. This is not necessarily a security issue for a command line application, but if such code were present in a web application then it becomes vulnerable to request splitting.

  2. This is a potential vulnerability in applications using Refit, not in Refit itself.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
7.8 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    High
  • Integrity (SI)
    High
  • Availability (SA)
    None