GHSA-mgr7-5782-6jh9

Suggest an improvement
Source
https://github.com/advisories/GHSA-mgr7-5782-6jh9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-mgr7-5782-6jh9/GHSA-mgr7-5782-6jh9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mgr7-5782-6jh9
Published
2025-01-13T16:18:39Z
Modified
2025-01-13T16:34:22Z
Summary
The Umbraco Heartcore headless client library uses a vulnerable Refit dependency package
Details

Impact

The Heartcore headless client library depends on 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.

Workarounds

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

References

See the original Refit advisory for further info.

Database specific
{
    "cwe_ids":  [
        "CWE-1395",
        "CWE-93"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-01-13T16:18:39Z",
    "nvd_published_at":  null,
    "severity":  "LOW"
}
References

Affected packages

NuGet / Umbraco.Headless.Client.Net

Package

Name
Umbraco.Headless.Client.Net
View open source insights on deps.dev
Purl
pkg:nuget/Umbraco.Headless.Client.Net

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.5.0

Affected versions

0.*
0.9.0.27621-RC
0.9.0.27622-RC
0.9.0.27906-RC
0.9.0.28041-RC
0.9.0.28188-RC
0.9.0.28348-RC
0.9.0.28847-RC
0.9.0.28874-RC
0.9.0.29124-RC
0.9.0.29125-RC
0.9.0.29126-RC
0.9.0.29224-RC
1.*
1.0.0.29753
1.0.0.31151-RC
1.0.0.31370-RC
1.1.0.31374-RC
1.1.0.31402-RC
1.1.0.31406
1.1.0.31470-RC
1.1.1
1.2.0
1.2.1
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.4.0
1.4.1

Database specific

last_known_affected_version_range
"<= 1.4.1"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-mgr7-5782-6jh9/GHSA-mgr7-5782-6jh9.json"