CVE-2026-30964: Webauthn Framework Allowed_origins Collapses URL-like Origins To Vulnerability

MODERATE
Advisory Identifier: GHSA-f7pm-6hr8-7ggm
CVSS 5.4
CWE-346
Published
Advisory Summary

CVE-2026-30964 is a MODERATE (CVSS 5.4) allowed_origins collapses url-like origins to vulnerability (CWE-346: Origin Validation Error) affecting Webauthn Framework libraries in the Packagist ecosystem. The issue involves allowed_origins collapses url-like origins to host-only values, bypassing exact origin validation. Remediation is available by upgrading affected packages to version 5.2.4.

CVE-2026-30964 at a Glance

CVE Identifier CVE-2026-30964
GHSA Identifier GHSA-f7pm-6hr8-7ggm
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-346: Origin Validation Error
Affected Product Webauthn Framework
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-30964

To remediate this vulnerability, upgrade all affected Webauthn Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

web-auth/webauthn-framework fixed: 5.2.4
Upgrade web-auth/webauthn-framework to 5.2.4
web-auth/webauthn-lib fixed: 5.2.4
Upgrade web-auth/webauthn-lib to 5.2.4
web-auth/webauthn-symfony-bundle fixed: 5.2.4
Upgrade web-auth/webauthn-symfony-bundle to 5.2.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for web-auth/webauthn-framework

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-30964, inspect your project dependencies for Webauthn Framework:

inspect dependencies for web-auth/webauthn-framework

Analyze the terminal output to locate any version of Webauthn Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-346: Origin Validation Error, where the product does not properly verify that the source of data or communication is valid. In Webauthn Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary 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. ### Details `CheckAllowedOrigins` stores each configured allowed origin as: ```php parse_url($allowedOrigin)['host'] ?? $allowedOrigin ``` and later reduces the received `clientDataJSON.origin` the same way: ```php parse_url($C->origin)['host'] ?? $C->origin ``` If the reduced value matches, the method returns early. As a result, for the normal `allowed_origins` path, the later HTTPS check is not reached. This 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. **Affected code:** - [CheckAllowedOrigins.php](https://github.com/web-auth/webauthn-framework/blob/d58906e/src/webauthn/src/CeremonyStep/CheckAllowedOrigins.php) **Spec references:** - [§7.1 Registering a New Credential](https://www.w3.org/TR/webauthn-2/#sctn-registering-a-new-credential) - [§7.2 Verifying an Authentication Assertion](https://www.w3.org/TR/webauthn-2/#sctn-verifying-assertion) - [CollectedClientData.origin](https://www.w3.org/TR/webauthn-2/#dom-collectedclientdata-origin) ### PoC Configuration: ```yaml webauthn: allowed_origins: - https://login.example.com:8443 allow_subdomains: false ``` Send a registration or authentication response whose `clientDataJSON.origin` is: ```text https://login.example.com:9443 ``` **Observed:** the response is accepted, because both values are reduced to `login.example.com`. **Expected:** the response should be rejected, because `https://login.example.com:8443` and `https://login.example.com:9443` are different origins. ### Impact This 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. ### Fix Fixed in version **5.2.4** by rewriting `CheckAllowedOrigins` to perform full origin comparison (scheme + host + port) as required by the WebAuthn spec: - 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). - Origins configured without a scheme are still matched by host only, for backward compatibility. - Subdomain matching now also verifies scheme and port consistency. See commit [b4cd9a43](https://github.com/web-auth/webauthn-framework/commit/b4cd9a43). ### Mitigation Upgrade to `web-auth/webauthn-framework` (or `web-auth/webauthn-lib` / `web-auth/webauthn-symfony-bundle`) **>= 5.2.4**.

CVE-2026-30964 Affected Webauthn Framework Versions

3 component(s)
Fixed Versions:
5.2.4
Product / Package Ecosystem Affected Versions Fixed Version
web-auth/webauthn-framework
Packagist
≥ 5.2.0
< 5.2.4
5.2.4
web-auth/webauthn-lib
Packagist
≥ 5.2.0
< 5.2.4
5.2.4
web-auth/webauthn-symfony-bundle
Packagist
≥ 5.2.0
< 5.2.4
5.2.4

References

Frequently Asked Questions

What is CVE-2026-30964?
CVE-2026-30964 is a security vulnerability in Webauthn Framework involving allowed_origins collapses URL-like origins to host-only values, bypassing exact origin validation under CWE-346: Origin Validation Error.
Which Webauthn Framework versions are affected?
Affected versions include releases prior to 5.2.4 across affected packages: web-auth/webauthn-framework, web-auth/webauthn-lib, web-auth/webauthn-symfony-bundle.
What version fixes CVE-2026-30964?
Upgrading to 5.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is web-auth/webauthn-framework affected?
Yes, web-auth/webauthn-framework is affected in releases prior to 5.2.4. Upgrade your dependency to 5.2.4 or later.
Is web-auth/webauthn-lib affected?
Yes, web-auth/webauthn-lib is affected in releases prior to 5.2.4. Upgrade your dependency to 5.2.4 or later.
What is the CVSS score of CVE-2026-30964?
CVE-2026-30964 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-30964?
CVE-2026-30964 is classified under CWE-346: Origin Validation Error (The product does not properly verify that the source of data or communication is valid.).
How can I check Packagist dependencies for CVE-2026-30964?
Run the dependency tree command: 'inspect dependencies for web-auth/webauthn-framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f7pm-6hr8-7ggm",
  "modified" : "2026-03-10T22:21:15Z",
  "published" : "2026-03-10T01:19:46Z",
  "aliases" : [ "CVE-2026-30964" ],
  "summary" : "Webauthn Framework: allowed_origins collapses URL-like origins to host-only values, bypassing exact origin validation",
  "details" : "### 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**.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "web-auth/webauthn-framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.2.0"
      }, {
        "fixed" : "5.2.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "web-auth/webauthn-lib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.2.0"
      }, {
        "fixed" : "5.2.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "web-auth/webauthn-symfony-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.2.0"
      }, {
        "fixed" : "5.2.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/web-auth/webauthn-framework/security/advisories/GHSA-f7pm-6hr8-7ggm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-30964"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/web-auth/webauthn-framework/commit/535cc3c2dcbd9c3dfd5e00a254ad4a984e5e7839"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/web-auth/webauthn-framework/commit/b4cd9a4394c35fcac6080fd2f84f4f58a30abc01"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/web-auth/webauthn-framework"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-346" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-10T01:19:46Z",
    "nvd_published_at" : "2026-03-10T18:18:55Z"
  }
}