Repository navigation
Releases
Duende Storage 2.0.0-preview.8
This is a preview release of Duende Storage 2.0, and the Storage version IdentityServer 8.1.0-preview.8 builds on. It changes the Storage schema. See the IdentityServer 8.1.0-preview.8 release notes for what changes for your application.
Before you upgrade
Migrate your database. This release adds schema version 4. Migrate every storage instance before the new version starts serving traffic:
duende storage migrate --provider <provider> --connection-string <connection-string>
You can also call IStorageInstanceSchema.MigrateAsync in code. Run it from one place, such as a deployment step, not from every app instance at startup.
On SQL Server and PostgreSQL, the migration rebuilds part of the search index, which can take a while on a large database, so plan for it. On Oracle and SQLite, it only updates the schema version. Stored data doesn't need to be rewritten.
What's new
duende storage verifydocuments its exit codes.duende storage verify --helplists them: 0 when the schema is current and valid, 2 when a migration is pending, and 1 for an error, a schema newer than the tool, or a current schema that differs.
Full Changelog: storage-2.0.0-preview.7...storage-2.0.0-preview.8
IdentityServer 8.1.0-preview.8
This is a preview release of IdentityServer 8.1. It builds on Duende Storage 2.0.0-preview.8.
Upgrading from an earlier preview
- Run the Storage migration. Duende Storage 2.0.0-preview.8 adds schema version 4. Migrate every storage instance before you deploy, with the Duende CLI (
duende storage migrate) or in code withIStorageInstanceSchema.MigrateAsync. On SQL Server and PostgreSQL the migration rebuilds part of the search index and can take a while on a large database. - Save every user profile again. Unique attribute values, such as
userName, use a new storage key that follows the attribute's casing and ignores the casing of the attribute's name. Until a profile written by an earlier preview is saved again, lookups by its unique values don't find it, including password sign-in byuserName, and its values aren't checked for uniqueness. Page through the users withIUserProfileAdmin.QueryAsync, and save each one withGetAsyncandUpdateAsync. For a unique attribute that isn't case-sensitive, two profiles whose values differ only in case now conflict: one of the saves fails withduplicate_value, and you need to resolve it.
DataRange? range = null;
do
{
var page = await profileAdmin.QueryAsync(
new QueryRequest<UserProfileFilter, UserProfileSortField> { Range = range }, ct);
foreach (var item in page.Results)
{
var profile = await profileAdmin.GetAsync(item.SubjectId, ct);
if (!profile.Found)
{
logger.LogWarning("User {SubjectId} not found", item.SubjectId);
continue;
}
var saved = await profileAdmin.UpdateAsync(
item.SubjectId, profile.Item.ToUpdate(), profile.Version, ct);
if (!saved.IsSuccess)
{
logger.LogWarning("User {SubjectId} could not be saved: {Errors}", item.SubjectId, saved.Errors);
}
}
range = page.HasNextResults && page.ResultsToken is { } nextToken
? DataRange.FromContinuationToken(nextToken)
: null;
}
while (range is not null);- Save every space again. The keys that match a request to a space are stored differently, so a space created by an earlier preview isn't found from its URL until it's saved again. Get each space with
ISpaceAdmin.GetAsync, and save it withToUpdate()andUpdateAsync. Use a loop similar to the one above, but then with ISpaceAdmin. - Save configuration entities with extended attributes again. Clients, API scopes, API resources, identity resources, identity providers, SAML service providers and spaces now index their extended attributes. An entity saved by an earlier preview isn't found by an attribute filter, an attribute sort or
GetByAttributeAsyncuntil it's saved again. Use a loop similar to the one above. - Mark inactive users again. Whether a user is active is now part of the user, not a profile attribute, and the default user schemas no longer define
active. Anactivevalue that SCIM stored as a profile attribute in an earlier preview doesn't carry over: after the upgrade every user is active.activeis now a reserved attribute name in the user profile schema, so rename anactiveattribute in your own schema. After the upgrade, you can no longer use a property calledactive. - Entity Framework configuration store. The
Clientstable gets a nullableMaxPrivateKeyJwtLifetimecolumn. Generate and apply a migration before you deploy. Without it, every client read fails.
Breaking changes
Admin APIs
IUserProfileAdminworks like the other admin interfaces.CreateAsync,GetAsyncandUpdateAsync(with an expected version) replaceTryAddAsyncandTryGetAsync, take anAttributeValueCollection, and return aSaveResultorGetResult. A failed save returnsvalidation_failed,already_exists,not_found,version_conflictorduplicate_value; the codes are constants onStorageErrorCodes.GetByAttributeAsync(code, value)replacesTryGetAsync(code, value).QueryAsynctakes aQueryRequest<UserProfileFilter, UserProfileSortField>;userNameis an ordinary schema attribute, sorted withSortBy.Attribute.IGroupAdminandIRoleAdminuse separate read and write models:GroupConfiguration,CreateGroupandUpdateGroup, andRoleConfiguration,CreateRoleandUpdateRole, with plainstringproperties.GroupandRoleare removed.UpdateAsyncreplaces the whole entity, so anulldescription clears it. Invalid values return avalidation_failederror instead of throwing.GroupFilter.SearchExpressionis removed: put a group filter expression inQueryRequest.Filter, as with every other admin.ISpaceAdminusesSpaceConfiguration,CreateSpaceandUpdateSpace.CreateSpaceConfigurationis removed, andUpdateAsynctakes the space id, anUpdateSpaceand the expected version.IApiResourceAdmin.CreateSecretAsynctakes aCreateApiResourceSecret, likeIClientAdmin.CreateSecretAsynctakes aCreateClientSecret.QueryRequest<TFilter, TSort>.Sortis aSortBy<TSort>?. A sort enum value converts to it implicitly.QueryResult<T>.HasPrevResultsis renamed toHasPreviousResults. Update code that reads or sets it, includingPages/ServerSideSessions/Index.cshtmlin projects created from the Quickstart UI templates. If you serializeQueryResult<T>, the JSON property name changes too.- Created and last-updated times. The list items and read models of every admin API have required
CreatedandLastUpdatedproperties. Code that constructs them must set both. - Reserved attribute names. An extended attribute can't use the name of one of the entity's built-in fields (for example
enabledon a client),created_atorlast_updated_at, and a user profile attribute can't be calledactive. The name is rejected when an entity is saved, when a schema is saved throughISchemaAdmin, and at startup for in-memory schemas. - Sort order. In a descending sort, entities without a value for the sort field now come first instead of last. Text sorts by ordinal (binary) order on every database, so accented letters and punctuation can sort differently than under your database's collation.
notinside a bracket filter is a true negation.contacts[not (type eq "work")]now also matches entries that have notype.
User Management
- Attribute names use the schema's spelling. Profile reads, and the extended properties of the other admin APIs, return attribute and property names as the schema spells them, whatever spelling they were stored under.
IUserProfileAdminsaves returnvalidation_failed,IUserProfileSelfServicethrowsArgumentException, andIUserImporterfails the record when a name differs from the schema's spelling. The runtimePropertiesof aClient,ApiResource,ApiScope,IdentityResourceorIdentityProvidersaved through an admin API hold the schema's spelling, and their keys compare with case. UserManagementProfileService.IsUserActiveAsyncis removed. The defaultIsActiveAsyncanswers from the user's active state. To use a different rule, overrideIsActiveAsync.
Spaces
AddSpaces()registersISpaceAdminandISpaceContextAccessorwithAddinstead ofTryAdd. A registration made beforeAddSpaces()no longer replaces the Spaces implementation. Register your own afterAddSpaces().
SCIM
SCIM follows RFC 7643 and RFC 7644 more closely, and some requests that succeeded before now get a 400:
- An attribute name with surrounding whitespace, such as
" password", is rejected instead of trimmed:invalidPathin a PATCH,invalidValuein a create or replace. Before, a paddedpasswordcould be stored as a plaintext profile attribute. sortBywith an attribute the server can't sort on, and asortOrderother thanascendingordescending, return 400invalidValueon user and group list and search. Before, they were ignored.externalIdon a user, when the profile schema doesn't define it, returns 400 instead of being dropped.DefaultScimUserSchemadefinesexternalId.- PATCH
addon a multi-valued attribute adds to its values instead of replacing them; usereplaceto replace the whole list. Anaddofnullor[]changes nothing. - PATCH
addorreplaceon a complex attribute, such asname, changes only the sub-attributes in the value and keeps the others. Anullsub-attribute clears only that sub-attribute. - PATCH on
id,schemas,metaor the user'sgroupsreturns 400mutability, and so does aremoveof a required attribute, includinguserName. Before, some of these returned 200, 500, or a different error. - User create and replace ignore
groups, as a read-only attribute. If your profile schema defines its owngroupsattribute, SCIM no longer writes it. - A group PATCH without a path whose value contains an attribute other than
displayName,externalId,membersor the group's ownidreturns 400 instead of ignoring it. - A
nullentry inattributesorexcludedAttributesreturns 400invalidValue, with or without a cursor. - Users without a value for the sort attribute come first in a descending sort.
/Schemasnames attributes by their profile code, no longer listsexternalId(a common attribute, likeidandmeta), and listsactive.- DateTime sub-values are returned in round-trip format, like top-level DateTime attributes.
- The index-mode
counton user lists is limited byScimOptions.MaxResultsas well as 200, as on group lists.
What's changed
Admin APIs
- Query every admin API the same way. Every admin accepts a typed filter or a filter expression, and a sort by built-in field or by extended attribute. Before, the configuration admins ignored a filter expression and returned every enti...
Duende CLI 0.0.6
This release of the Duende CLI makes the Duende Storage plugin work reliably next to dotnet restore and on machines without network access. Use it with Duende Storage 2.0.0-preview.7 to run duende storage migrate and duende storage verify.
What's changed
- Plugins install in the standard NuGet layout. The CLI installs a plugin, such as
Duende.Storage.CliPlugin, into the NuGet packages folder the same waydotnet restoredoes. Before, the two layouts clashed: after a restore of the plugin package, the CLI failed with "Could not find plugin assembly", and the storage commands were not available. - A restored plugin works offline. If the plugin package is already in the NuGet packages folder, for example on a build agent that restored it in advance, the CLI uses it without going to nuget.org.
- Plugins installed by an earlier CLI version are installed again in the new layout the first time you use them. You don't need to do anything.
- The CLI now ships
System.Security.Cryptography.Pkcs10.0.14.
Full Changelog: cli-0.0.5...cli-0.0.6
Duende Storage 2.0.0-preview.7
This is a preview release of Duende Storage 2.0, and the Storage version IdentityServer 8.1.0-preview.7 builds on. It adds a schema migration and better tools to check your database.
Before you upgrade
Migrate your database. This release changes the Storage schema. Migrate every storage instance before the new version starts serving traffic:
duende storage migrate --provider <provider> --connection-string <connection-string>
You can also call IStorageInstanceSchema.MigrateAsync in code. Run it from one place, such as a deployment step, not from every app instance at startup.
Earlier previews didn't enforce the relationships between stored records, so a database can contain links to records that were deleted. The migration removes those links. Nothing else is deleted.
What's new
- Check a database before you deploy.
duende storage verifychecks that a database's schema is complete and correct, without changing anything. Use it in a deployment pipeline or a health check. - Migrations check their result. A migration, or
MigrateAsyncon a schema that is already current, now also checks the schema, and fails if something is missing or different. An app that migrates at startup won't start on a schema that has drifted. - A clear error when you forget to migrate. If the Storage tables don't exist, the error tells you to run
duende storage migrate, instead of a raw database error about a missing table.
Breaking changes
- Extensible attributes are removed. The
Duende.Storage.EntityAttributeValuenamespace is no longer part of Duende Storage.
Full Changelog: storage-2.0.0-preview.6...storage-2.0.0-preview.7
Duende IdentityServer 8.1.0-preview.7
This is a preview release of IdentityServer 8.1. It builds on Duende Storage 2.0.0-preview.7.
User Management and Spaces are now part of IdentityServer and ship in the Duende.IdentityServer package. There are no new Duende.UserManagement or Duende.Spaces packages.
The NuGet Packages for User Management and Spaces will be deprecated and should no longer be used.
Upgrading from an earlier preview
- Run the Storage migration. Duende Storage 2.0.0-preview.7 adds schema version 3, which adds foreign keys to the links between stored entities. Migrate every storage instance before you deploy, with the Duende CLI (
duende storage migrate) or in code withIStorageInstanceSchema.MigrateAsync. The migration first deletes links whose entity no longer exists. See the Duende Storage 2.0.0-preview.7 release notes. - Re-create stored API resources, clients and SAML service providers. If you store API resources, clients or SAML service providers in Duende Storage, their scopes are now stored as links to the API scopes and identity resources, not as names. Those saved by an earlier preview read back with no scopes. Save them again with their scopes, or re-create them.
- Remove the User Management and Spaces packages. Remove your references to
Duende.UserManagement,Duende.UserManagement.IdentityServer8andDuende.Spaces. The types are inDuende.IdentityServernow, with the same namespaces and names. CallAddUserManagement()andAddSpaces()on the IdentityServer builder. - Entity Framework server-side sessions. The
ServerSideSessionstable gets aVersioncolumn. Generate and apply a migration before you deploy. Without it, every session read and delete fails.
Security fixes
This preview includes the fixes for the advisories published with IdentityServer 8.0.11:
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-wcc6-7mjx-g6j5: Incorrectly formatted SAML messages can cause a denial of service.
- GHSA-hmrv-xfgm-wgh2: The SAML service provider doesn't validate bearer SubjectConfirmationData.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
- GHSA-6xhh-5qhq-m9vf: The SAML service provider ends a session when it receives a logout request from a different identity provider.
- GHSA-hhqg-4hp5-4v5h: The SAML service provider accepts a changed RelayState in signed HTTP-Redirect messages.
The upgrade notes in the IdentityServer 8.0.11 release notes apply to this preview too: mTLS, introspection, end session, server-side sessions, DPoP, SAML XML limits, SAML logout with an external login callback, and SAML logout with SameSite.
Breaking changes
- Server-side session store.
IServerSideSessionStore.UpdateSessionAsyncnow returnsTask<bool>, and saves a session only while the version it was read at is still the stored version. Custom stores and decorators must return the result and do this check. Code that calls it should check the result:falsemeans the save didn't happen. - Fixed
IssuerUriwith Spaces. A host that registers Spaces and setsIdentityServerOptions.IssuerUrifails at startup, because every space would get the same issuer. SetSpacesOptions.AllowSharedIssuerUrito use one issuer on purpose. - Lowercase space paths and match patterns. A space path resolves only when the prefix and the space segment are lowercase; other spellings get a 404.
SpacesOptions.SpacePathPrefixmust be lowercase.ISpaceAdminaccepts only lowercase ASCII match patterns. - Dynamic provider options with Spaces. With Spaces, the host fails at startup when the options cache for a dynamic provider type isn't space-aware, for example when you registered your own
IOptionsMonitorCache<T>for it. - Scopes in the Admin API. Client and SAML service provider
AllowedScopes, and API resource scopes, must name existing scopes, and match them exactly, including case. A client can't listoffline_access; useAllowOfflineAccess. API scope and identity resource names must be unique across both kinds. An API scope or identity resource that is still in use can't be deleted. - Client validation in the Admin API. Client URIs are validated on create and update, and adding or removing a client secret validates the whole client. The storage client store validates the clients it returns, like the other client stores.
What's changed
Spaces
- In-memory operational stores keep each space's data separate.
- Deleting a space purges its data in every storage instance, and pool IDs of purged spaces aren't reused automatically.
- SCIM authenticates tokens per space by default. New options
ReadAuthorizationPolicyNameandWriteAuthorizationPolicyNamelet you set separate read and write policies. - With signing keys shared by every space,
UseIdentityServer()logs a warning. - Idle cached dynamic provider state is released per space, and extended properties survive the Spaces cache.
Storage
- Signing-key creation and background jobs (outbox processing, storage purge and server-side session cleanup) are coordinated across nodes when you use Duende Storage.
- Renaming an API scope or identity resource is reflected everywhere it's used.
User Management
- SCIM is no longer experimental. You no longer need to suppress the
duende_experimentaldiagnostic. - OTP email recipient addresses are masked in logs.
Fixes
- Concurrent updates to a server-side session no longer silently overwrite each other.
- Replacing a server-side session only revokes grants of clients whose lifetime is coordinated with the user session.
- Redirect scripts accept only HTTP and HTTPS destinations.
- Paging back before the first page of server-side sessions works.
- Stopping an IdentityServer host synchronously from a thread with a single-threaded synchronization context no longer hangs.
Full Changelog: is-8.1.0-preview.6...is-8.1.0-preview.7
Duende IdentityServer 8.0.11
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 that aren't SAML-specific are also released in 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-wcc6-7mjx-g6j5: Incorrectly formatted SAML messages can cause a denial of service.
- GHSA-hmrv-xfgm-wgh2: The SAML service provider doesn't validate bearer SubjectConfirmationData.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
- GHSA-6xhh-5qhq-m9vf: The SAML service provider ends a session when it receives a logout request from a different identity provider.
- GHSA-hhqg-4hp5-4v5h: The SAML service provider accepts a changed RelayState in signed HTTP-Redirect messages.
Upgrade notes
-
mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. -
Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
-
End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. -
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
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. -
DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check. -
SAML XML limits: SAML messages whose XML elements are nested deeper than
MaxXmlNestingDepth(32 by default) are rejected. You can change the limit for the identity provider (SamlOptions.MaxXmlNestingDepth), for service providers configured in code (SamlServiceProviderOptions.MaxXmlNestingDepth) and for SAML dynamic providers. The service provider now also rejects messages that contain a DTD and drops XML processing instructions, as the identity provider already did. -
SAML logout with an external login callback: if you use SAML dynamic providers (
AddSamlDynamicProvider()), orAddSamlServiceProvider()with the external cookie as its sign-in scheme, your external login callback creates the IdentityServer session. Copy the SAML sign-in claims into that session, or IdP-initiated logout stays exposed after the upgrade. In our templates, add this toCaptureExternalLoginContextinPages/ExternalLogin/Callback.cshtml.cs, right after the block that copies thesidclaim:localClaims.AddRange(externalResult.Principal.Claims.Where(claim => claim.Type is "https://duendesoftware.com/Saml2/Scheme" or "https://duendesoftware.com/Saml2/LogoutNameIdentifier" or "https://duendesoftware.com/Saml2/SessionIndex"));
-
SAML logout and SameSite: if your session cookie uses
SameSite=LaxorSameSite=Strictand an identity provider sends itsLogoutRequestwith the HTTP-POST binding, the logout no longer ends the IdentityServer session. The default,SameSite=None, isn't affected.
Other changes
- Stopping an IdentityServer host synchronously from a thread with a single-threaded synchronization context, for example in xUnit v2 tests with
WebApplicationFactory, no longer hangs.
Full Changelog: is-8.0.10...is-8.0.11
Duende IdentityServer 7.4.15
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 same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
Upgrade notes
- mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. - Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
- End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. - 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
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. - DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.
Other changes
- Stopping an IdentityServer host synchronously from a thread with a single-threaded synchronization context, for example in xUnit v2 tests with
WebApplicationFactory, no longer hangs.
Full Changelog: is-7.4.14...is-7.4.15
Duende IdentityServer 7.3.6
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 same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
Upgrade notes
- mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. - Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
- End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. - 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
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. - DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.
Full Changelog: is-7.3.5...is-7.3.6
Duende IdentityServer 7.2.6
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 same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
Upgrade notes
- mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. - Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
- End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. - 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
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. - DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.
Full Changelog: is-7.2.5...is-7.2.6
Duende IdentityServer 7.1.4
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 same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
Upgrade notes
- mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. - Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
- End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. - 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
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. - DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.
Full Changelog: is-7.1.3...is-7.1.4