Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. RestSharp
  4. ›
  5. GHSA-4rr6-2v9v-wcpc

GHSA-4rr6-2v9v-wcpc: CRLF Injection in RestSharp's `RestRequest.AddHeader` method

August 29, 2024

The second argument to RestRequest.AddHeader (the header value) is vulnerable to CRLF injection. The same applies to RestRequest.AddOrUpdateHeader and RestClient.AddDefaultHeader.

References

  • github.com/advisories/GHSA-4rr6-2v9v-wcpc
  • github.com/restsharp/RestSharp
  • github.com/restsharp/RestSharp/blob/777bf194ec2d14271e7807cc704e73ec18fcaf7e/src/RestSharp/Request/HttpRequestMessageExtensions.cs
  • github.com/restsharp/RestSharp/commit/0fba5e727d241b1867bd71efc912594075c2934b
  • github.com/restsharp/RestSharp/security/advisories/GHSA-4rr6-2v9v-wcpc

Code Behaviors & Features

Detect and mitigate GHSA-4rr6-2v9v-wcpc 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 starting from 107.0.0-preview.1 before 112.0.0

Fixed versions

  • 112.0.0

Solution

Upgrade to version 112.0.0 or above.

Impact 6.1 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

nuget/RestSharp/GHSA-4rr6-2v9v-wcpc.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:13 +0000.