CVE-2026-34157

Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins

Published Nov 5, 2026 CVSS 4.0 · 7.6 High EPSS < 1% KEV · Not listed
Description
Wails is a framework for building desktop applications using Go and web technologies. From 2.0.0 until 2.13.0, BindingsAllowedOrigins in v2/internal/frontend/originvalidator/originValidator.go passes wildcard patterns to wildcardPatternToRegex, which expands every asterisk to an unrestricted regular-expression match. When an application configures a trailing or partial-label wildcard immediately after an allowed domain, an attacker-controlled lookalike origin can match the allowed suffix and invoke bound Go methods through IPC. A complete-component subdomain wildcard is an unaffected configuration. The resulting confidentiality, integrity, and availability impact depends on the file, database, command, credential, or other operations exposed by the application's bound methods. This issue is fixed in version 2.13.0.

Analysis

AI-generated

Technical impact

The flaw arises from the handling of wildcard patterns in the BindingsAllowedOrigins configuration within the Wails framework. Wildcards are expanded using wildcardPatternToRegex, turning each asterisk into an unrestricted regular‑expression match. When a trailing or partial‑label wildcard is placed directly after an allowed domain, an attacker‑controlled origin that mimics the suffix can match the allowed pattern, bypassing the origin check. This allows the attacker to invoke bound Go methods through interprocess communication, potentially exposing file, database, command, or credential operations and leading to full remote code execution.

Affected Systems

The vulnerability affects the Wails application framework (wailsapp:wails) in all releases from version 2.0.0 up through, but not including, the security release 2.13.0. Any application built using any of those versions that configures BindingsAllowedOrigins with a trailing or partial‑label wildcard is susceptible.

Risk and Exploitability

The CVSS base score of 7.6 reflects significant severity, and while an EPSS score is not currently available, the violation is not listed in the CISA KEV catalog. The exploitation requires only an attacker‑controllable origin header, which can be supplied from a malicious webpage or script that the desktop application loads. Because the attack originates from normal browser‑like contexts, the attack vector is likely network‑remote or local depending on the host environment. Once the origin bypass is achieved, the attacker can execute any bound Go method and gain full confidentiality, integrity, and availability compromise of the target system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Wails to version 2.13.0 or later, where the origin validation logic has been corrected.
  • If an upgrade is not immediately possible, reconfigure BindingsAllowedOrigins to eliminate any trailing or partial‑label wildcards; list only fully‑qualified domain names or IP addresses.
  • Ensure that only trusted and intended origins are added to the BindingsAllowedOrigins table, and audit any developers who configure this setting to prevent accidental wildcard usage.

Generated by OpenCVE AI on November 5, 2026 at 21:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-47hv-j4px-h3c9 Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Wailsapp
Wailsapp wails
Vendors & Products Wailsapp
Wailsapp wails
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Description Wails is a framework for building desktop applications using Go and web technologies. From 2.0.0 until 2.13.0, BindingsAllowedOrigins in v2/internal/frontend/originvalidator/originValidator.go passes wildcard patterns to wildcardPatternToRegex, which expands every asterisk to an unrestricted regular-expression match. When an application configures a trailing or partial-label wildcard immediately after an allowed domain, an attacker-controlled lookalike origin can match the allowed suffix and invoke bound Go methods through IPC. A complete-component subdomain wildcard is an unaffected configuration. The resulting confidentiality, integrity, and availability impact depends on the file, database, command, credential, or other operations exposed by the application's bound methods. This issue is fixed in version 2.13.0.
Title Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins
Weaknesses CWE-625
References
Metrics cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-625

    Permissive Regular Expression

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 6:28 PM
Reserved
Mar 25, 2026, 8:12 PM
Status
Deferred
Published
Nov 5, 2026, 9:18 PM
Modified
Nov 12, 2026, 10:18 PM
Severity
Important
Public date
Nov 5, 2026, 8:26 PM