github DuendeSoftware/products bff-4.0.5
Duende.BFF 4.0.5

latest releases: aaj-1.0.3, bff-2.2.2, bff-2.3.2...
34 minutes ago

Duende.BFF 4.0.5

We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.

The fixes change default behavior. Read Breaking changes below before you upgrade.

The same fixes are released in 4.3.4, 4.2.2, 4.1.4 and 4.0.5. The fix for GHSA-x394-gwr7-4885 is also released in 3.1.3, 3.0.2, 2.3.2 and 2.2.2.

Security fixes

  • GHSA-x394-gwr7-4885: Responses from proxied APIs can set session cookies, and signing in then reuses that planted server-side session.
  • GHSA-6gxg-chg2-rm9v: Static asset proxying can forward requests to arbitrary URLs.

Breaking changes

  • Proxied APIs can no longer set cookies. If you rely on cookies set by a proxied API, for example load balancer affinity cookies, you can turn this off with BffOptions.RemoveCookieHeadersFromProxiedResponses = false. Only do this if you trust every API that the BFF proxies. The same setting applies to responses from the static assets server.
  • Static asset proxy requests use their own HTTP client, named Duende.Bff.StaticAssetsProxyClient (Constants.HttpClientNames.StaticAssetsProxyClientName). If you configured headers, credentials, certificates or handlers for these requests through BffOptions.StaticAssetsClientName or BffOptions.BackchannelHttpHandler, move them to this client with AddHttpClient(Constants.HttpClientNames.StaticAssetsProxyClientName). Custom handlers on this client must not follow redirects. The BFF returns a 502 response when the static assets server redirects.
  • Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced IServerTicketStore with your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make.

Dependencies

Duende.BFF.Blazor.Client now requires Microsoft.AspNetCore.Components.Authorization and Microsoft.AspNetCore.Components.WebAssembly 8.0.32 (net8.0), 9.0.21 (net9.0) and 10.0.14 (net10.0), the patched versions for CVE-2026-102870 (GHSA-g27p-qf6j-c96c).

Full Changelog: bff-4.0.4...bff-4.0.5

Don't miss a new products release

NewReleases is sending notifications on new releases.