fix(auth): move passkeys to SimpleWebAuthn 14, which no longer fetches a CRL a client names

@simplewebauthn/server 13.3.3 fetched the CRL address in an android-key
attestation certificate before it checked the chain or the signature, with
no timeout or size cap, so anyone signed in could make the server request
any URL by registering a passkey. 14.1.0 only checks revocation for a chain
it validated against Google's pinned roots.

14.x refuses an expected origin with a path, a trailing slash or an
uppercase host and an RP ID that is not lower case, where 13.x only failed
to match them. The configured origins are now reduced to the origin the
browser reports and the RP ID is lower-cased, so such settings keep
working; an origins list in which nothing parses leaves passkeys
unconfigured instead of falling back to APP_URL. Verification gets the
algorithm list the options offer, and stored transports are read as plain
strings.

Stored credentials keep their format. typescript-eslint moves to 8.73.0.
This commit is contained in:
Maurice
2026-11-24 23:58:39 +01:00
parent 3754518d37
commit c65e9bf76e
9 changed files with 802 additions and 171 deletions
+2 -2
View File
@@ -82,7 +82,7 @@
"@nestjs/schedule": "^12.0.4",
"@nestjs/swagger": "^11.4.7",
"@nestjs/websockets": "^11.2.5",
"@simplewebauthn/server": "^13.3.3",
"@simplewebauthn/server": "^14.1.0",
"@trek/shared": "*",
"archiver": "^6.0.2",
"bcryptjs": "^2.4.3",
@@ -151,7 +151,7 @@
"prettier": "^3.10.1",
"prettier-plugin-organize-imports": "^4.3.0",
"supertest": "^7.3.1",
"typescript-eslint": "^8.72.1",
"typescript-eslint": "^8.73.0",
"unplugin-swc": "^1.6.0",
"vitest": "^4.1.11"
}