Hanko v3.2 brings important vulnerability fixes, adds lifecycle management for SAML certificates and improves the reliability of SAML sign-in. This release also tightens redirect URL validation, improves passkey registration in the frontend SDK, and adds Danish translations.
Security
This release fixes the following security vulnerabilities. We recommend all users upgrade to 3.2.0.
- Deleting a SAML provider in a multi-tenant setup deleted the linked social, OIDC and SAML identities of all users in all tenants, not just the ones tied to that provider. GHSA-9c6x-m5j7-cj8h
- The SAML redirect allowlist matched wildcard entries without checking where the host ends, so
https://app.example.com**also acceptedhttps://app.example.com.evil.com. This could leak a one-time login token to an attacker's domain and lead to account takeover. GHSA-jfqc-fr2q-fvx6 - The one-time nonce for SP-initiated SAML logins could be used more than once at the same time, so a captured SAML response could produce extra login tokens. GHSA-q5g6-55h6-gm58
- A disabled SAML identity provider could still be used for IdP-initiated login. GHSA-pm29-79w6-73xj
- A captured IdP-initiated SAML assertion could be replayed by changing the unsigned Response ID, when the IdP signs only the assertions and not the response. GHSA-5q99-9mgg-pcwh
- Two login flows running at the same time could both accept the same TOTP code, which broke the rule that each code works only once. GHSA-h4w8-v289-cr8w
SAML certificate lifecycle
Hanko now supports managing the lifecycle of SAML certificates, helping teams prepare for certificate changes before they affect sign-in. Hanko also signs SAML authentication requests sent via HTTP Redirect, records SAML callback failures correctly in the audit log, and fixes SAML lookups on MySQL.
See #3038, #3042, #3068, and #3062.
Redirect URL validation
Third-party sign-in now rejects wildcard-only entries in allowed_redirect_urls. Hanko also validates each entry in the SAML redirect allowlist. If your third-party sign-in configuration uses a standalone *, replace it with the redirect URLs your application needs before upgrading.
More improvements
- Passkey registration: The frontend SDK now enforces a deadline for passkey creation so the registration flow can recover if the ceremony does not complete. See #2883.
- Danish translations: Hanko Elements and authentication emails are now available in Danish. See #2992.
- Tenant-aware security notifications: Security notifications now use the configuration of the tenant they belong to. See #3162.
- Audit logs:
actor_user_idnow contains the public user ID, making it easier to match audit events to users through the API. See #3037.
Thanks to everyone who contributed to this release!
What's changed
- feat: add Danish (da) translations for mail and elements by @spirir in #2992
- feat(thirdparty): reject wildcard-only allowed_redirect_urls entries by @lfleischmann in #2999
- chore: autogenerate config JSON schema by @github-actions[bot] in #3001
- chore(deps): bump handlebars from 4.7.9 to 4.7.10 in /frontend by @dependabot[bot] in #3002
- chore(deps): bump next from 16.3.6 to 16.3.8 in /frontend by @dependabot[bot] in #3003
- chore(deps-dev): bump brace-expansion from 1.1.12 to 1.1.21 in /frontend by @dependabot[bot] in #3012
- chore(deps): bump proxy-addr from 2.0.7 to 2.0.8 in /frontend by @dependabot[bot] in #3011
- chore(deps): bump compression from 1.8.1 to 1.8.2 in /frontend by @dependabot[bot] in #3010
- chore(deps): bump github.com/moby/sys/user from 0.4.0 to 0.4.1 in /backend by @dependabot[bot] in #3009
- chore(deps): bump sharp from 0.35.4 to 0.35.5 in /frontend by @dependabot[bot] in #3008
- chore(deps): bump source-map-js from 1.2.1 to 1.2.2 in /frontend by @dependabot[bot] in #3007
- chore(deps): bump shell-quote from 1.10.0 to 1.12.0 in /frontend by @dependabot[bot] in #3006
- chore(deps): bump markdown-it from 14.3.0 to 14.3.2 in /frontend by @dependabot[bot] in #2986
- chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.5 to 1.33.6 in /backend by @dependabot[bot] in #2978
- chore(deps): bump github.com/knadh/koanf/v2 from 2.3.6 to 2.3.7 in /backend by @dependabot[bot] in #2977
- chore(deps-dev): bump ip-address from 10.4.0 to 10.7.2 in /frontend by @dependabot[bot] in #2979
- chore(deps-dev): bump prettier from 3.9.8 to 3.9.9 in /frontend by @dependabot[bot] in #2975
- chore(deps-dev): bump turbo from 2.11.2 to 2.11.4 in /frontend by @dependabot[bot] in #2974
- chore(deps): bump github.com/aws/aws-sdk-go-v2/service/kms from 1.61.0 to 1.61.3 in /backend by @dependabot[bot] in #2976
- chore(deps-dev): bump ts-jest from 29.4.12 to 29.4.14 in /frontend by @dependabot[bot] in #2973
- chore(deps): bump dotenv from 18.0.3 to 18.0.4 in /frontend by @dependabot[bot] in #2971
- chore(deps): bump github.com/beevik/etree from 1.8.0 to 1.8.1 in /backend by @dependabot[bot] in #2970
- chore(deps): bump golang.org/x/text from 0.42.0 to 0.43.0 in /backend by @dependabot[bot] in #3017
- chore(deps): bump github.com/knadh/koanf/v2 from 2.3.7 to 2.3.8 in /backend by @dependabot[bot] in #3016
- chore(deps): bump golang.org/x/crypto from 0.57.0 to 0.58.0 in /backend by @dependabot[bot] in #3015
- chore(deps-dev): bump vite from 8.3.0 to 8.3.4 in /frontend by @dependabot[bot] in #3018
- chore(deps-dev): bump @vitejs/plugin-vue from 6.0.8 to 6.0.10 in /frontend by @dependabot[bot] in #3021
- chore(deps): bump dotenv from 18.0.4 to 18.0.7 in /frontend by @dependabot[bot] in #3023
- chore(deps-dev): bump @vitejs/plugin-react from 6.1.1 to 6.1.2 in /frontend by @dependabot[bot] in #3031
- chore(deps): bump github.com/aws/aws-sdk-go-v2/service/kms from 1.61.3 to 1.61.4 in /backend by @dependabot[bot] in #3024
- chore(deps): bump express from 5.2.1 to 5.3.0 in /frontend by @dependabot[bot] in #3026
- chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.6 to 1.33.9 in /backend by @dependabot[bot] in #3029
- chore(deps): bump @rollup/rollup-linux-x64-gnu from 4.63.4 to 4.64.5 in /frontend by @dependabot[bot] in #3028
- chore(deps): bump github.com/knadh/koanf/v2 from 2.3.8 to 2.4.0 in /backend by @dependabot[bot] in #3045
- Clean up license file by @FlxMgdnz in #3049
- chore(deps): bump github.com/knadh/koanf/v2 from 2.4.0 to 2.4.1 in /backend by @dependabot[bot] in #3050
- chore(deps): bump markdown-it from 14.3.2 to 14.3.3 in /frontend by @dependabot[bot] in #3048
- chore(deps): bump launch-editor from 2.14.1 to 2.14.2 in /frontend by @dependabot[bot] in #3047
- chore(deps): bump vue from 3.5.43 to 3.5.44 in /frontend by @dependabot[bot] in #3039
- chore(deps-dev): bump vue-tsc from 3.3.11 to 3.3.13 in /frontend by @dependabot[bot] in #3032
- chore(deps-dev): bump sass from 1.104.1 to 1.105.1 in /frontend by @dependabot[bot] in #3025
- chore(deps): bump vue-router from 5.3.1 to 5.4.0 in /frontend by @dependabot[bot] in #3035
- chore(deps): bump next from 16.3.8 to 16.4.1 in /frontend by @dependabot[bot] in #3052
- chore(deps): bump github.com/tidwall/gjson from 1.19.0 to 1.20.0 in /backend by @dependabot[bot] in #3027
- chore(deps-dev): bump turbo from 2.11.4 to 2.11.9 in /frontend by @dependabot[bot] in #3054
- chore(deps-dev): bump eslint-plugin-prettier from 5.5.6 to 5.5.7 in /frontend by @dependabot[bot] in #3055
- bug(#2969): Change password fields from StringInput -> PasswordInput by @irby in #2982
- fix: make register password have a max length on input by @irby in #2989
- chore(deps): bump next from 16.4.1 to 16.4.2 in /frontend by @dependabot[bot] in #3058
- chore(deps-dev): bump hono from 4.13.7 to 4.13.13 in /frontend by @dependabot[bot] in #3061
- chore(deps): bump follow-redirects from 1.16.0 to 1.16.1 in /frontend by @dependabot[bot] in #3060
- chore(deps): bump github.com/aws/aws-sdk-go-v2/service/kms from 1.61.4 to 1.61.5 in /backend by @dependabot[bot] in #3057
- chore(deps-dev): bump ts-jest from 29.4.14 to 29.4.15 in /frontend by @dependabot[bot] in #3066
- chore(deps): bump github.com/labstack/echo/v4 from 4.15.3 to 4.16.1 in /quickstart by @dependabot[bot] in #3071
- chore(deps): bump body-parser in /frontend by @dependabot[bot] in #3074
- chore(deps): bump fast-uri from 3.1.7 to 3.1.9 in /frontend by @dependabot[bot] in #3072
- chore: add threat model and scanner Dockerfile for security analysis by @FreddyDevelop in #3077
- docs: remove Go Report Card badge from README by @lfleischmann in #3075
- chore(deps): bump dotenv from 18.0.7 to 18.0.9 in /frontend by @dependabot[bot] in #3081
- chore(deps): bump next from 16.4.2 to 16.4.3 in /frontend by @dependabot[bot] in #3080
- chore(deps-dev): bump prettier from 3.9.9 to 3.9.10 in /frontend by @dependabot[bot] in #3078
- chore(deps): bump github.com/aws/aws-sdk-go-v2/service/kms from 1.61.5 to 1.61.6 in /backend by @dependabot[bot] in #3082
- chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.9 to 1.33.10 in /backend by @dependabot[bot] in #3084
- chore(deps): bump postcss-selector-parser in /frontend by @dependabot[bot] in #3076
- Fix tests by @FreddyDevelop in #3085
- fix(saml): send authentication requests with a signed redirect url by @lfleischmann in #3042
- chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.10 to 1.33.11 in /backend by @dependabot[bot] in #3094
- chore(deps): bump github.com/go-redsync/redsync/v4 from 4.18.0 to 4.18.1 in /backend by @dependabot[bot] in #3090
- chore(deps-dev): bump jest-environment-jsdom from 30.5.1 to 30.5.2 in /frontend by @dependabot[bot] in #3089
- chore(deps): bump github.com/aws/aws-sdk-go-v2/service/kms from 1.61.6 to 1.62.1 in /backend by @dependabot[bot] in #3092
- chore(deps): bump node-forge from 1.4.0 to 1.4.2 in /frontend by @dependabot[bot] in #3096
- chore(deps): bump follow-redirects from 1.16.1 to 1.16.2 in /frontend by @dependabot[bot] in #3097
- fix(frontend-sdk): bound passkey creation with a ceremony deadline by @ousamabenyounes in #2883
- chore(deps): bump github.com/aws/aws-sdk-go-v2/service/kms from 1.62.1 to 1.62.2 in /backend by @dependabot[bot] in #3103
- fix(config): validate each SAML allowed redirect URL by @AARUSHGAUR in #3091
- chore(deps): bump github.com/go-playground/validator/v10 from 10.30.5 to 10.30.6 in /backend by @dependabot[bot] in #3106
- chore(deps): bump qs and express in /frontend by @dependabot[bot] in #3099
- ci: include version in release artifact names by @egezamb in #2996
- chore(deps): bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6 in /backend by @dependabot[bot] in #3098
- chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.11 to 1.33.13 in /backend by @dependabot[bot] in #3113
- chore(deps): bump react-router-dom from 7.18.4 to 7.18.5 in /frontend by @dependabot[bot] in #3112
- chore(deps): bump github.com/nicksnyder/go-i18n/v2 from 2.6.1 to 2.7.0 in /backend by @dependabot[bot] in #3111
- chore(deps): bump github.com/jackc/pgx/v5 from 5.11.0 to 5.12.0 in /backend by @dependabot[bot] in #3114
- fix(saml): fix audit logging of SAML callback failures by @lfleischmann in #3068
- fix(server): bump echo to 4.16.3 and keep trusting X-Forwarded-Proto for pagination links by @lfleischmann in #3063
- fix(persistence): make SAML lookups and test teardown work on MySQL by @lfleischmann in #3062
- ci: pin the third-party actions by commit and declare what each workflow may do with the token by @Totara-thib in #3013
- chore(deps-dev): bump turbo from 2.11.9 to 2.11.10 in /frontend by @dependabot[bot] in #3121
- chore(deps-dev): bump vite from 8.3.4 to 8.3.5 in /frontend by @dependabot[bot] in #3122
- chore(deps-dev): bump webpack from 5.111.1 to 5.112.2 in /frontend by @dependabot[bot] in #3124
- chore(deps-dev): bump vue-tsc from 3.3.13 to 3.3.14 in /frontend by @dependabot[bot] in #3128
- chore(deps): bump tslib from 2.8.1 to 2.9.1 in /frontend by @dependabot[bot] in #3129
- feat(saml): SAML certificate lifecycle by @lfleischmann in #3038
- chore(deps): bump vue from 3.5.44 to 3.5.45 in /frontend by @dependabot[bot] in #3140
- chore(deps): bump github.com/tidwall/gjson from 1.20.0 to 1.20.1 in /backend by @dependabot[bot] in #3141
- chore(deps): bump github.com/aws/aws-sdk-go-v2/service/kms from 1.62.2 to 1.62.5 in /backend by @dependabot[bot] in #3142
- chore(deps-dev): bump @vitejs/plugin-react from 6.1.2 to 6.2.1 in /frontend by @dependabot[bot] in #3132
- chore(deps): bump github.com/tidwall/sjson from 1.2.5 to 1.2.7 in /backend by @dependabot[bot] in #3143
- chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.13 to 1.33.16 in /backend by @dependabot[bot] in #3144
- chore(deps): bump @rollup/rollup-linux-x64-gnu from 4.64.5 to 4.68.0 in /frontend by @dependabot[bot] in #3145
- chore(flow_api): remove unused OAuth links hook by @lfleischmann in #3125
- fix(auditlog): store the public user id as actor_user_id by @FreddyDevelop in #3037
- fix(flow_api): pass tenant config to security notifications by @FreddyDevelop in #3162
- chore: update frontend versions by @FreddyDevelop in #3163
New Contributors
- @spirir made their first contribution in #2992
- @AARUSHGAUR made their first contribution in #3091
- @egezamb made their first contribution in #2996
- @Totara-thib made their first contribution in #3013
Full Changelog: backend/v3.1.2...backend/v3.2.0