# GHSA-7jxj-rpx7-ph2c: Umbraco.Forms CDN may cache sensitive form uploads when processed by ImageSharp

- Severity: Low 3.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-01-22T18:06:01.000Z
- Modified: 2026-02-03T03:11:19.722Z
- Weaknesses: CWE-524

## Description

### Impact
Protected files uploaded through Umbraco Forms may be served to unauthenticated users when a CDN or caching layer is present and ImageSharp processes the request. ImageSharp sets aggressive cache headers by default, which can cause intermediary caches to store and serve files that should require authentication.

### Patches
This issue affects all (supported) versions Umbraco Forms and is patched in 13.9.0, 16.4.0 and 17.1.0.

### Workarounds
Add middleware to set cache headers for form uploads. Place the following code in your `Startup.cs` or `Program.cs` after `app.UseStaticFiles()` and any image processing middleware:

```cs
app.Use(async (context, next) =>
{
    var path = context.Request.Path.Value;

    if (!string.IsNullOrEmpty(path) && path.StartsWith("/media/forms/upload/", StringComparison.OrdinalIgnoreCase))
    {
        context.Response.OnStarting(() =>
        {
            context.Response.Headers["Cache-Control"] = "private, no-store, no-cache, must-revalidate";
            context.Response.Headers["Pragma"] = "no-cache";
            context.Response.Headers["Expires"] = "0";
            return Task.CompletedTask;
        });
    }

    await next();
});
```

Alternatively, configure your CDN to bypass caching for URLs matching `/media/forms/upload/*`.

  Note: The vulnerability requires:
  - A CDN in front of the website
  - An authenticated user having previously requested the image
  - Knowledge of the form GUID, entry GUID, and image filename

  If no CDN is in use, this vulnerability does not apply.

(As written by GitHub Advisory Database.)

## Affected

- Umbraco.Forms (NuGet): before 13.9.0; from 14.0.0-beta001 before 16.4.0; from 17.0.0-rc1 before 17.1.0

## References

- <https://github.com/umbraco/Umbraco.Forms.Issues/security/advisories/GHSA-7jxj-rpx7-ph2c> (web)
- <https://github.com/umbraco/Umbraco.Forms.Issues> (package)

## Sources

- GitHub Advisory Database: [GHSA-7jxj-rpx7-ph2c](https://github.com/advisories/GHSA-7jxj-rpx7-ph2c), CC-BY-4.0, modified 2026-02-03

---

Page: https://cve.day/GHSA-7jxj-rpx7-ph2c · Whole record: https://cve.day/GHSA-7jxj-rpx7-ph2c.json · Rebuilt by cve.day 2026-11-25T22:56:29.549Z
