Cross-origin handshake bypass fixed; orgId parameter added to createSignInToken
@clerk/backend@3.12.0
Minor Changes
-
Fix a cross-origin handshake bypass where
isKnownClerkReferrer()trusted overly broad referrer hosts as Clerk-owned: anyaccounts.*host (e.g.accounts.attacker.com), plus dev account-portal domains (*.accounts.devand legacy suffixes) on production instances. These let unrelated origins skip the handshake and its session-freshness check. The referrer is now trusted only for the accounts portal derived from the instance's frontend API, plus dev account-portal domains on non-production instances. (#9145) by @dominic-clerk -
Add an optional
orgIdparameter tocreateSignInToken()for activating an Organization when the token is redeemed. (#9192) by @swolfand
Patch Changes
-
Standardize JSDoc punctuation to always follow
e.g.andi.e.with a comma (e.g.,/i.e.,), matching the docs style guide. Comment-only change; no runtime behavior is affected. This keeps the generated Typedoc reference output consistent. (#9201) by @SarahSoutoul -
Add the required
providerfield toCreateEnterpriseConnectionParams. The Backend API has always requiredproviderwhen creating an enterprise connection, so calls tocreateEnterpriseConnection()without it type-checked but failed at runtime. The field is typed to the supported provider values ('saml_custom','saml_okta','saml_google','saml_microsoft','oidc_custom','oidc_github_enterprise','oidc_gitlab'), so unsupported values are also caught at compile time. (#9155) by @manovotny -
Add the remaining optional enterprise connection parameters supported by the Backend API.
CreateEnterpriseConnectionParamsandUpdateEnterpriseConnectionParamsnow acceptallowOrganizationAccountLinking,customAttributes,authenticatable, anddisableJitProvisioning(update also acceptsdisableAdditionalIdentifications), and SAML params acceptloginHintfor configuring thelogin_hintsent to the IdP. (#9155) by @manovotny -
Align
CreateEnterpriseConnectionParamsandUpdateEnterpriseConnectionParamswith the Backend API contract: (#9155) by @manovotnynameanddomainsare now required onCreateEnterpriseConnectionParams. The Backend API already rejected requests missing either of them, so calls that omitted these fields failed at runtime; the types now surface this at compile time.- Deprecated
syncUserAttributesonCreateEnterpriseConnectionParams. The Backend API ignores this parameter on create; useupdateEnterpriseConnection()to set it. - Deprecated
provideronUpdateEnterpriseConnectionParams. The Backend API ignores this parameter on update; the provider cannot be changed after creation.
-
Updated dependencies [
858a689,c904fb4]:- @clerk/shared@4.25.6
Fetched July 21, 2026

