Vulnerabilities

Security research · CVE-2026-34157

Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins

Published Oct 27, 2026 · catalog updated Oct 27, 2026 · Wails: wildcardPatternToRegex allows Origin

Last checked Nov 6, 2026. A connected source was read within the last 7 days.

Open the advisory

Exploitation likelihood is not on this record for CVE-2026-34157. A missing EPSS score is not a low risk. Compare Wails: wildcardPatternToRegex allows Origin with the linked advisory before you change production.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (Wails: wildcardPatternToRegex allows Origin).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
  • EPSS is missing. A missing score is not a low risk.
Severity
High—
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
Not in the current FIRST EPSS dataset
Remediation
Advisory link
Affected products
Go github.com/wailsapp/wails/v2

# Security Vulnerability Report: Wails v2 — Origin Validator Bypass via Wildcard Pattern | | | |---|---| | **Product** | wailsapp/wails (v2) | | **Affected File** | | | **Affected Versions** | All versions containing originValidator (latest as of 2026-03-26) | | **CVSSv4.0** | **7.6 HIGH** — | | **CWE** | CWE-625: Permissive Regular Expression | | **Platforms** | Windows / Linux / macOS (all desktop targets) | --- ## Summary Wails v2 provides to restrict which web origins can invoke Go backend methods via IPC. The wildcard pattern matching in converts to without anchoring subcomponents, allowing suffix-matched origins to bypass the restriction. An attacker who controls a domain sharing a prefix with the allowed origin (e.g., when is configured) can invoke arbitrary bound Go methods, potentially achieving file system access, data exfiltration, or code execution depending on the application's exposed API surface. --- ## Vulnerability Details ### Root Cause converts a wildcard pattern to a regular expression by escaping special characters and replacing with . The substituted has no restriction — it matches any character sequence including dots and additional domain components. ### Vulnerable Code **File:** The generated regex for is: This matches any string beginning with , including: - — different TLD - — attacker-controlled subdomain - — any arbitrary suffix ### Scope Note The official comment in gives as the example pattern (subdomain prefix wildcard). This pattern is **not affected**. The vulnerability only manifests when developers use a trailing wildcard ( ), which is a natural misuse when intending to permit a domain and all its subpaths or ports. --- ## Impact Any Go method registered with Wails bindings becomes callable from the attacker's origin. Depending on the application: - File system read / write (common in desktop apps) - Database queries - OS command execution (if exposed via bindings) - Sensitive configuration or credential access --- ## Fix **PR:**

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • Go github.com/wailsapp/wails/v22.0.0 → 2.13.0

How to fix CVE-2026-34157

  • Upgrade

    CVE-2026-34157 lists a fix boundary at 2.13.0. Compare the installed build with that boundary before you change production.

  • Version check

    Seen in 2.0.0 → 2.13.0

  • Advisory

    Open the cve_org record and follow its fix.

  • Official advisories

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

Exploitation likelihood is not on this record for CVE-2026-34157. A missing EPSS score is not a low risk. Compare Wails: wildcardPatternToRegex allows Origin with the linked advisory before you change production.

Which versions are affected?

Compare what you have installed with 2.0.0 → 2.13.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-625. EPSS is absent from the current FIRST dataset. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 27, 2026 · Go Vulnerability Database

    Detected

    # Security Vulnerability Report: Wails v2 — Origin Validator Bypass via Wildcard Pattern | | | |---|---| | **Product** | wailsapp/wails (v2) | | **Affected File** | | | **Affected Versions** | All versions containing originValidator (latest as of 2026-03-26) | | **CVSSv4.0** | **7.6 HIGH** — | | **CWE** | CWE-625: Permissive Regular Expression | | **Platforms** | Windows / Linux / macOS (all deskt

  2. Oct 27, 2026 · Go Vulnerability Database

    Fix available

    github.com/wailsapp/wails/v2 fixed in 2.13.0

  3. Oct 27, 2026 · Go Vulnerability Database

    Fix available

    github.com/wailsapp/wails/v2 fixed in 2.13.0

  4. Oct 27, 2026 · Go Vulnerability Database

    Updated

    # Security Vulnerability Report: Wails v2 — Origin Validator Bypass via Wildcard Pattern | | | |---|---| | **Product** | wailsapp/wails (v2) | | **Affected File** | | | **Affected Versions** | All versions containing originValidator (latest as of 2026-03-26) | | **CVSSv4.0** | **7.6 HIGH** — | | **CWE** | CWE-625: Permissive Regular Expression | | **Platforms** | Windows / Linux / macOS (all deskt

Sources

  • CVE.orgVulnerability recordCVE-2026-34157

    CVE.org record is not available yet.

    cve.org
  • Go Vulnerability DatabasePackage advisoryGHSA-47hv-j4px-h3c9

    Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins

    osv.dev

References

Freshness

Last verified in this catalog Nov 6, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • Go Vulnerability DatabaseOct 28, 2026
  • CVE.orgOct 27, 2026