VYPR
Moderate severityNVD Advisory· Published Jul 30, 2025· Updated Jul 30, 2025

Umbraco's Delivery API allows for cached requests to be returned with an invalid API key

CVE-2025-54425

Description

Umbraco is an ASP.NET CMS. In versions 13.0.0 through 13.9.2, 15.0.0 through 15.4.1 and 16.0.0 through 16.1.0, the content delivery API can be restricted from public access where an API key must be provided in a header to authorize the request. It's also possible to configure output caching, such that the delivery API outputs will be cached for a period of time, improving performance. There's an issue when these two things are used together, where caching doesn't vary by the header that contains the API key. As such, it's possible for a user without a valid API key to retrieve a response for a given path and query if it has recently been requested and cached by request with a valid key. This is fixed in versions 13.9.3, 15.4.4 and 16.1.1.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
Umbraco.Cms.Api.DeliveryNuGet
>= 13.0.0, < 13.9.313.9.3
Umbraco.Cms.Api.DeliveryNuGet
>= 15.0.0, < 15.4.415.4.4
Umbraco.Cms.Api.DeliveryNuGet
>= 16.0.0, < 16.1.116.1.1

Affected products

1

Patches

3
da43086017e1

Merge commit from fork

https://github.com/umbraco/Umbraco-CMSAndy ButlandJul 29, 2025via ghsa
1 file changed · +6 1
  • src/Umbraco.Cms.Api.Delivery/Caching/DeliveryApiOutputCachePolicy.cs+6 1 modified
    @@ -18,7 +18,12 @@ ValueTask IOutputCachePolicy.CacheRequestAsync(OutputCacheContext context, Cance
                 .RequestServices
                 .GetRequiredService<IRequestPreviewService>();
     
    -        context.EnableOutputCaching = requestPreviewService.IsPreview() is false;
    +        IApiAccessService apiAccessService = context
    +            .HttpContext
    +            .RequestServices
    +            .GetRequiredService<IApiAccessService>();
    +
    +        context.EnableOutputCaching = requestPreviewService.IsPreview() is false && apiAccessService.HasPublicAccess();
             context.ResponseExpirationTimeSpan = _duration;
     
             return ValueTask.CompletedTask;
    
9f37db18d11c

Merge commit from fork

https://github.com/umbraco/Umbraco-CMSAndy ButlandJul 29, 2025via ghsa
1 file changed · +6 1
  • src/Umbraco.Cms.Api.Delivery/Caching/DeliveryApiOutputCachePolicy.cs+6 1 modified
    @@ -18,7 +18,12 @@ ValueTask IOutputCachePolicy.CacheRequestAsync(OutputCacheContext context, Cance
                 .RequestServices
                 .GetRequiredService<IRequestPreviewService>();
     
    -        context.EnableOutputCaching = requestPreviewService.IsPreview() is false;
    +        IApiAccessService apiAccessService = context
    +            .HttpContext
    +            .RequestServices
    +            .GetRequiredService<IApiAccessService>();
    +
    +        context.EnableOutputCaching = requestPreviewService.IsPreview() is false && apiAccessService.HasPublicAccess();
             context.ResponseExpirationTimeSpan = _duration;
     
             return ValueTask.CompletedTask;
    
7e82c258eeba

Merge commit from fork

https://github.com/umbraco/Umbraco-CMSAndy ButlandJul 29, 2025via ghsa
1 file changed · +6 1
  • src/Umbraco.Cms.Api.Delivery/Caching/DeliveryApiOutputCachePolicy.cs+6 1 modified
    @@ -18,7 +18,12 @@ ValueTask IOutputCachePolicy.CacheRequestAsync(OutputCacheContext context, Cance
                 .RequestServices
                 .GetRequiredService<IRequestPreviewService>();
     
    -        context.EnableOutputCaching = requestPreviewService.IsPreview() is false;
    +        IApiAccessService apiAccessService = context
    +            .HttpContext
    +            .RequestServices
    +            .GetRequiredService<IApiAccessService>();
    +
    +        context.EnableOutputCaching = requestPreviewService.IsPreview() is false && apiAccessService.HasPublicAccess();
             context.ResponseExpirationTimeSpan = _duration;
     
             return ValueTask.CompletedTask;
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

7

News mentions

0

No linked articles in our index yet.