{"id":"CVE-2026-91160","published":"2026-09-24T17:17:09.257","lastModified":"2026-09-24T17:17:09.257","description":"OpenWA is a free, open source, self-hosted WhatsApp API gateway. Prior to 0.23.5, the /events WebSocket gateway delivers the session.qr event to a VIEWER API key that subscribes by event name or through either wildcard subscription form, even though GET /api/sessions/{sessionId}/qr requires the OPERATOR role. When an allowed session is waiting to be paired, the exposed QR lets the key holder link an external device to the WhatsApp account and then read and send messages outside OpenWA and its audit trail. Keys restricted through allowedSessions remain limited to those sessions, and deployments that issue only OPERATOR or ADMIN keys are not affected. This issue is fixed in version 0.23.5.","cvssScore":8.2,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","cwes":["CWE-862"],"vendors":[],"products":[],"references":[{"url":"https://github.com/rmyndharis/OpenWA/commit/acc23c3803c07f43791a92e8e48456572fd69bdc","tags":[]},{"url":"https://github.com/rmyndharis/OpenWA/commit/b9d9ea1c57bde98b7833a5d6e482998703667ef0","tags":[]},{"url":"https://github.com/rmyndharis/OpenWA/pull/1602","tags":[]},{"url":"https://github.com/rmyndharis/OpenWA/releases/tag/v0.23.5","tags":[]},{"url":"https://github.com/rmyndharis/OpenWA/security/advisories/GHSA-m427-j4h4-9qwj","tags":[]}],"exploitRefs":[{"url":"https://github.com/rmyndharis/OpenWA/commit/acc23c3803c07f43791a92e8e48456572fd69bdc","tags":[]},{"url":"https://github.com/rmyndharis/OpenWA/commit/b9d9ea1c57bde98b7833a5d6e482998703667ef0","tags":[]},{"url":"https://github.com/rmyndharis/OpenWA/pull/1602","tags":[]},{"url":"https://github.com/rmyndharis/OpenWA/releases/tag/v0.23.5","tags":[]},{"url":"https://github.com/rmyndharis/OpenWA/security/advisories/GHSA-m427-j4h4-9qwj","tags":[]}],"hasPoc":true,"ai":{"summary":"The flaw in OpenWA allows a VIEWER API key to receive the session.qr event, enabling unauthorized access to link external devices and read/send messages, despite requiring the OPERATOR role for other session-related actions.","exploitability":"Exploitation is moderately hard as it requires a VIEWER API key and knowledge of the affected WebSocket gateway, but the lack of role enforcement for the session.qr event makes it feasible.","blast_radius":"If exploited, this could lead to unauthorized access to WhatsApp accounts and their messages, compromising user privacy and the integrity of the audit trail.","remediation":"Upgrade to version 0.23.5 or later.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["api-bypass","web-socket","auth-bypass","web"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-10-02T08:50:55.105Z"}}