Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/wailsapp/wails/v2
  4. ›
  5. CVE-2026-34157

CVE-2026-34157: Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins

October 27, 2026

Wails v2 provides BindingsAllowedOrigins to restrict which web origins can invoke Go backend methods via IPC. The wildcard pattern matching in wildcardPatternToRegex 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., myapp.community when myapp.com* 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.


References

  • github.com/advisories/GHSA-47hv-j4px-h3c9
  • github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81
  • github.com/wailsapp/wails/pull/5074
  • github.com/wailsapp/wails/security/advisories/GHSA-47hv-j4px-h3c9
  • nvd.nist.gov/vuln/detail/CVE-2026-34157

Code Behaviors & Features

Detect and mitigate CVE-2026-34157 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.0.0 before 2.13.0

Fixed versions

  • 2.13.0

Solution

Upgrade to version 2.13.0 or above.

Impact 9.6 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-625: Permissive Regular Expression

Source file

go/github.com/wailsapp/wails/v2/CVE-2026-34157.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 28 Oct 2026 00:15:10 +0000.