Original description
Wails before 2.17.1 on Linux contains an origin validation error in the sendMessageToBackend WebKitGTK handler that allows child-frame scripts to invoke the privileged IPC channel. Attackers controlling content loaded in an iframe can post messages that pass the top-level URI origin check and call bound Go methods and Wails runtime operations.
Affected products and versions
wailsapp wails< 2.17.1Fixed in: 2.17.1
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- None (no login)
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- Low impact
Weakness type (CWE)
- CWE-346 Origin Validation Error
References
- github.com/wailsapp/wails/security/advisories/GHSA-r5j2-ghh9-2jqw vendor advisory
- github.com/wailsapp/wails/commit/99fd52407fc2be283e3572920749975dff98c14c patch
- github.com/wailsapp/wails/commit/0d660b45a2e2ad82ecc3947d30806505c1837fde patch
- github.com/wailsapp/wails/releases/tag/v2.17.1
- github.com/wailsapp/wails/blob/v2.17.0/v2/internal/frontend/desktop/linux/window.c#L50-L75
- www.vulncheck.com/advisories/wails-before-2.17.1-on-linux-origin-validation-error-via-ipc-
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.