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.
Published: 2026-09-24
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized session pairing and message access via read‑only API keys.
Action: Patch Immediately
AI Analysis

Impact

The vulnerability in OpenWA allows an API key with only viewer privileges to receive the session.qr event over the /events WebSocket stream. This event contains the QR code used to pair a WhatsApp session. Because the HTTP endpoint that normally issues QR codes requires an OPERATOR role, the WebSocket exposure bypasses this restriction, enabling an attacker to pair an external device to the account and read or send messages outside of OpenWA’s audit trail. The flaw is a missing authorization check for the QR event, classified as CWE‑862.

Affected Systems

Affected deployments run rmyndharis:OpenWA version 0.23.4 or earlier. The problem does not affect installations that exclusively issue OPERATOR or ADMIN keys, nor versions 0.23.5 and later where the patch removes the QR event for keys with restricted role scopes. Any environment hosting the WebSocket /events endpoint with viewer‑only API keys is vulnerable.

Risk and Exploitability

With a CVSS score of 8.2, the risk is high. The EPSS score is not available, and the vulnerability is not listed in CISA KEV, but the lack of an authorization guard on a WebSocket event stream makes exploitation straightforward. An attacker who can subscribe to the session.qr event stream—such as by possessing a VIEWER key—can intercept the QR code, pair a new device, and then access or transmit messages for the associated WhatsApp account, potentially bypassing OpenWA’s monitoring. The attack vector is the WebSocket event stream, requiring no privileged HTTP access beyond the read‑only key.

Generated by OpenCVE AI on September 25, 2026 at 06:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to OpenWA 0.23.5 or later, which blocks the session.qr event for viewer keys.
  • Revoke or limit the use of viewer‑only API keys, ensuring they cannot subscribe to session.qr events or reassign them to roles that do not access the WebSocket stream.
  • If an upgrade is not yet possible, consider blocking external access to the /events WebSocket endpoint for viewer keys at the network level or disabling the endpoint until the patch is applied. Additionally, rotate all existing session keys and regenerate QR codes to mitigate any tokens that were exposed.

Generated by OpenCVE AI on September 25, 2026 at 06:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Rmyndharis
Rmyndharis openwa
Vendors & Products Rmyndharis
Rmyndharis openwa

Thu, 24 Sep 2026 17:00:00 +0000

Type Values Removed Values Added
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.
Title OpenWA: A read-only API key can receive a session pairing QR over the WebSocket event stream
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N'}


Subscriptions

Rmyndharis Openwa
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-24T16:42:02.788Z

Reserved: 2026-09-14T21:20:41.196Z

Link: CVE-2026-91160

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-24T17:17:09.257

Modified: 2026-09-24T17:17:09.257

Link: CVE-2026-91160

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T14:17:02Z

Weaknesses