Advisory record · GHSA-4rr6-2v9v-wcpc

CRLF Injection in RestSharp's `RestRequest.AddHeader` method

CVSS 6.1 MediumEPSS 0.0032 · 24th percentile

Published by the GitHub Advisory Database at 29 Aug 2024, 19:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
RestSharpNuGet>=107.0.0-preview.1, <112.0.0112.0.0
Identifiers
GHSA-4rr6-2v9v-wcpc · CVE-2024-45302
Weakness (CWE)
CWE-74 · CWE-93 · CWE-113
Published
29 Aug 2024
Updated
1 Oct 2024

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The NuGet package RestSharp from 107.0.0-preview.1 up to (but not including) 112.0.0 is vulnerable to CRLF injection through header values passed to RestRequest.AddHeader, RestRequest.AddOrUpdateHeader, and RestClient.AddDefaultHeader. An attacker who can control a header value supplied by the application could inject line breaks, adding extra headers or splitting requests, which may enable server-side request forgery in web applications. Upgrade to RestSharp 112.0.0 or later; the source gives no other workaround beyond not passing untrusted input into header values.

Written 9 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.1 Medium 3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0032, the 24th percentile, on 11 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:23 UTC First seen by agentprime
  2. 31 Oct 2026, 15:23 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.