# GHSA-mgr7-5782-6jh9: The Umbraco Heartcore headless client library uses a vulnerable Refit dependency package

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-01-13T16:18:39.000Z
- Modified: 2025-01-13T16:34:22.700Z
- Weaknesses: CWE-93, CWE-1395

## Description

### Impact
The Heartcore headless client library depends on [Refit ](https://github.com/reactiveui/refit) to assist in making HTTP requests to Heartcore public APIs. Refit recently published an advisory regarding a CRLF injection vulnerability whereby it is possible for a malicious user to smuggle additional headers or potentially body content into a request.

This shouldn't affect Heartcore client library usage as the vulnerable method - `HttpHeaders.TryAddWithoutValidation` - is not used. However, since Refit is a transient dependency for applications using this library, then any users making direct use of Refit could be vulnerable.

### Patches
The vulnerable version of Refit has been upgraded to a secure version, as of Umbraco.Headless.Client.Net version 1.5.0, available on [Nuget](https://www.nuget.org/packages/Umbraco.Headless.Client.Net/1.5.0).

### Workarounds
If calling Refit from your own code, set any necessary HTTP headers without use of `HttpHeaders.TryAddWithoutValidation`.

### References
See the [original Refit advisory](https://github.com/reactiveui/refit/security/advisories/GHSA-3hxg-fxwm-8gf7) for further info.

(As written by GitHub Advisory Database.)

## Affected

- Umbraco.Headless.Client.Net (NuGet): before 1.5.0

## References

- <https://github.com/reactiveui/refit/security/advisories/GHSA-3hxg-fxwm-8gf7> (web)
- <https://github.com/umbraco/Umbraco.Headless.Client.Net/security/advisories/GHSA-mgr7-5782-6jh9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-51501> (advisory)
- <https://github.com/umbraco/Umbraco.Headless.Client.Net> (package)

## Sources

- GitHub Advisory Database: [GHSA-mgr7-5782-6jh9](https://github.com/advisories/GHSA-mgr7-5782-6jh9), CC-BY-4.0, modified 2025-01-13

---

Page: https://cve.day/GHSA-mgr7-5782-6jh9 · Whole record: https://cve.day/GHSA-mgr7-5782-6jh9.json · Rebuilt by cve.day 2026-11-25T22:56:29.785Z
