{"id":"CVE-2026-30964","aliases":["CVE-2026-30964","GHSA-f7pm-6hr8-7ggm"],"related":[],"kind":"vulnerability","state":"published","title":"Webauthn Framework: allowed_origins collapses URL-like origins to host-only values, bypassing exact origin validation","summary":"web-auth/webauthn-lib is an open source set of PHP libraries and a Symfony bundle to allow developers to integrate that authentication mechanism into their web applications. Prior to 5.2.4, when allowed_origins is configured, CheckAllowedOrigins reduces URL-like values to their host component and accepts on host match alone. This makes exact origin policies impossible to express: scheme and port differences are silently ignored. This vulnerability is fixed in 5.2.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"web-auth/webauthn-lib is an open source set of PHP libraries and a Symfony bundle to allow developers to integrate that authentication mechanism into their web applications. Prior to 5.2.4, when allowed_origins is configured, CheckAllowedOrigins reduces URL-like values to their host component and accepts on host match alone. This makes exact origin policies impossible to express: scheme and port differences are silently ignored. This vulnerability is fixed in 5.2.4.","source":"cvelist"},{"lang":"en","text":"### Summary\nWhen `allowed_origins` is configured, `CheckAllowedOrigins` reduces URL-like values to their `host` component and accepts on host match alone. This makes exact origin policies impossible to express: scheme and port differences are silently ignored.\n\n### Details\n`CheckAllowedOrigins` stores each configured allowed origin as:\n\n```php\nparse_url($allowedOrigin)['host'] ?? $allowedOrigin\n```\n\nand later reduces the received `clientDataJSON.origin` the same way:\n\n```php\nparse_url($C->origin)['host'] ?? $C->origin\n```\n\nIf the reduced value matches, the method returns early. As a result, for the normal `allowed_origins` path, the later HTTPS check is not reached.\n\nThis differs from [WebAuthn Level 2](https://www.w3.org/TR/webauthn-2/), which requires verifying that `C.origin` matches the RP's origin (scheme + host + port), separately from verifying that `authData.rpIdHash` matches the expected RP ID.\n\n**Affected code:**\n- [CheckAllowedOrigins.php](https://github.com/web-auth/webauthn-framework/blob/d58906e/src/webauthn/src/CeremonyStep/CheckAllowedOrigins.php)\n\n**Spec references:**\n- [§7.1 Registering a New Credential](https://www.w3.org/TR/webauthn-2/#sctn-registering-a-new-credential)\n- [§7.2 Verifying an Authentication Assertion](https://www.w3.org/TR/webauthn-2/#sctn-verifying-assertion)\n- [CollectedClientData.origin](https://www.w3.org/TR/webauthn-2/#dom-collectedclientdata-origin)\n\n### PoC\nConfiguration:\n\n```yaml\nwebauthn:\n  allowed_origins:\n    - https://login.example.com:8443\n  allow_subdomains: false\n```\n\nSend a registration or authentication response whose `clientDataJSON.origin` is:\n\n```text\nhttps://login.example.com:9443\n```\n\n**Observed:** the response is accepted, because both values are reduced to `login.example.com`.\n\n**Expected:** the response should be rejected, because `https://login.example.com:8443` and `https://login.example.com:9443` are different origins.\n\n### Impact\nThis is an origin validation error (CWE-346) affecting deployments that use `allowed_origins`. The most practical browser-facing scenario is same-host / different-port origin confusion. In non-browser or custom clients, scheme confusion may also be relevant.\n\n### Fix\nFixed in version **5.2.4** by rewriting `CheckAllowedOrigins` to perform full origin comparison (scheme + host + port) as required by the WebAuthn spec:\n\n- Origins configured with a scheme (e.g. `https://example.com:8443`) are now stored and compared as full `scheme://host[:port]` values, with default port normalization (443 for HTTPS, 80 for HTTP).\n- Origins configured without a scheme are still matched by host only, for backward compatibility.\n- Subdomain matching now also verifies scheme and port consistency.\n\nSee commit [b4cd9a43](https://github.com/web-auth/webauthn-framework/commit/b4cd9a43).\n\n### Mitigation\nUpgrade to `web-auth/webauthn-framework` (or `web-auth/webauthn-lib` / `web-auth/webauthn-symfony-bundle`) **>= 5.2.4**.","format":"markdown","source":"ghsa"},{"lang":"es","text":"web-auth/webauthn-lib es un conjunto de código abierto de bibliotecas PHP y un paquete de Symfony para permitir a los desarrolladores integrar ese mecanismo de autenticación en sus aplicaciones web. Antes de la versión 5.2.4, cuando se configura allowed_origins, CheckAllowedOrigins reduce los valores similares a URL a su componente de host y acepta solo la coincidencia de host. Esto hace que las políticas de origen exactas sean imposibles de expresar: las diferencias de esquema y puerto se ignoran silenciosamente. Esta vulnerabilidad se corrige en la versión 5.2.4.","source":"nvd"}],"published":"2026-03-10T01:19:46.000Z","modified":"2026-09-10T03:50:38.931Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-346"],"affected":[{"ranges":[{"version":"< 5.2.4","status":"affected"}],"vendor":"web-auth","product":"webauthn-framework","source":"cvelist"},{"ranges":[{"version":"< 5.2.4","status":"affected"}],"vendor":"web-auth","product":"webauthn-lib","source":"cvelist"},{"ranges":[{"version":"< 5.2.4","status":"affected"}],"vendor":"web-auth","product":"webauthn-symfony-bundle","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.2.0","status":"affected","fixed":"5.2.4"}],"ecosystem":"Packagist","package":"web-auth/webauthn-framework","purl":"pkg:composer/web-auth/webauthn-framework","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.2.0","status":"affected","fixed":"5.2.4"}],"ecosystem":"Packagist","package":"web-auth/webauthn-lib","purl":"pkg:composer/web-auth/webauthn-lib","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.2.0","status":"affected","fixed":"5.2.4"}],"ecosystem":"Packagist","package":"web-auth/webauthn-symfony-bundle","purl":"pkg:composer/web-auth/webauthn-symfony-bundle","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.2.0","fixed":"5.2.4"}],"vendor":"spomky-labs","product":"webauthn-lib","cpe":"cpe:2.3:a:spomky-labs:webauthn-lib:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"5.2.0","fixed":"5.2.4"}],"vendor":"spomky-labs","product":"webauthn-symfony-bundle","cpe":"cpe:2.3:a:spomky-labs:webauthn-symfony-bundle:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"5.2.0","fixed":"5.2.4"}],"vendor":"spomky-labs","product":"webauthn_framwork","cpe":"cpe:2.3:a:spomky-labs:webauthn_framwork:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/web-auth/webauthn-framework/security/advisories/GHSA-f7pm-6hr8-7ggm","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/web-auth/webauthn-framework/commit/535cc3c2dcbd9c3dfd5e00a254ad4a984e5e7839","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/web-auth/webauthn-framework/commit/b4cd9a4394c35fcac6080fd2f84f4f58a30abc01","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30964","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/web-auth/webauthn-framework","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-03-10T17:57:30.314Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-30964","url":"https://www.cve.org/CVERecord?id=CVE-2026-30964","licence":"CVE Terms of Use","modified":"2026-03-10T17:57:34.091Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f7pm-6hr8-7ggm","url":"https://github.com/advisories/GHSA-f7pm-6hr8-7ggm","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:38.931Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-30964","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30964","licence":"Public domain","modified":"2026-06-17T10:33:14.180Z"}],"updatedAt":"2026-11-25T22:59:15.623Z","epss":{"score":0.00228,"percentile":0.08048,"date":"2026-11-30T12:00:22.000Z"}}