Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
wailsapp wails
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Wails 是一个使用 Go 语言和 Web 技术构建桌面应用程序的框架。在从 2.0.0 到 2.13.0 的版本中, 文件中的 配置会将通配符模式传递给 函数,该函数会将每个星号(*)展开为无限制的正则表达式匹配。如果应用程序在允许的域名之后配置了末尾通配符或部分标签通配符,则攻击者可控制的仿冒源(lookalike origin)能够匹配该允许的域名后缀,并通过进程间通信(IPC)调用已绑定的 Go 方法。完整的子域名通配符配置不受此问题影响。该漏洞对机密性、完整性和可用性的具体影响程度,取决于应用程序所暴露

CVSS 7.6 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-34157

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
宽松定义的正则表达式
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
wailsapp wails >= 2.0.0, < 2.13.0 -

II. Public POCs for CVE-2026-34157

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-34157

请登录查看更多情报信息。

Other References for CVE-2026-34157 (4)

IV. Related Vulnerabilities