Wailsの脆弱性、接頭辞一致の判定で許可外のオリジンから動かされるおそれ
Summary
2026年10月27日に公表された、Wails v2のオリジン判定の脆弱性です。BindingsAllowedOriginsのワイルドカード判定が接尾辞一致を許すため、許可された名前と前方が同じ別ドメインから、バインドされたGoのメソッドを呼び出されるおそれがあります。影響は2.0.0以降2.13.0未満で、修正版は2.13.0です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
2026年10月27日に公表された、Wails v2のオリジン判定の脆弱性です。BindingsAllowedOriginsのワイルドカード判定が接尾辞一致を許すため、許可された名前と前方が同じ別ドメインから、バインドされたGoのメソッドを呼び出されるおそれがあります。影響は2.0.0以降2.13.0未満で、修正版は2.13.0です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| gogithub.com/wailsapp/wails/v2 |
≥ 2.0.0, < 2.13.0→ 2.13.0 |
2.13.0 |
| wailsappwails | — | Not listed |
Original description The description as published by the source.
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: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com