CVE-2026-91160
OpenWA: A read-only API key can receive a session pairing QR over the WebSocket event stream
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.rmyndharis » openwapreliminary | < 0.23.5< acc23c3803c07f43791a92e8e48456572fd69bdc< b9d9ea1c57bde98b7833a5d6e482998703667ef0< b4d3754de7649ea24b72f1b1bd997bf6095b25f3 | 0.23.5, acc23c3803c07f43791a92e8e48456572fd69bdc, b9d9ea1c57bde98b7833a5d6e482998703667ef0, b4d3754de7649ea24b72f1b1bd997bf6095b25f3 |
Blast radius
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | CVE record CVE-2026-91160 | github.com |
| Advisory | rmyndharis/OpenWA advisory GHSA-m427-j4h4-9qwj | github.com |
| Advisory | NVD CVE-2026-91160 | nvd.nist.gov |
| Fix | rmyndharis/OpenWA commit acc23c3 | github.com |
| Fix | rmyndharis/OpenWA commit b9d9ea1 | github.com |
| Fix | rmyndharis/OpenWA pull request #1602 | github.com |
| Web | rmyndharis/OpenWA release v0.23.5 | github.com |
