Description
OpenWA is a free, open source, self-hosted WhatsApp API gateway. Prior to 0.23.5, the GET /api/sessions/{sessionId}/groups/{groupId}/invite-code endpoint and the GroupGetInviteCode MCP tool have no OPERATOR role requirement, allowing a valid VIEWER key scoped to a session to retrieve an active group invite code. The invite code is a transferable WhatsApp bearer capability, so an external account can join a group administered by the session without an OpenWA credential, gain read and post access to the group, and retain membership after the VIEWER key is revoked. Affected deployments are those that issue VIEWER keys to parties who should not be able to add accounts to administered groups; OPERATOR and ADMIN access is intended. This issue is fixed in version 0.23.5.
Published: 2026-09-24
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized group membership via invite code leakage
Action: Immediate Patch
AI Analysis

Impact

A missing operator role check on the API endpoint that retrieves a group’s invite code permits any viewer‑scoped key to obtain the code for a WhatsApp group administered by the session. The invite code is a bearer token that can be used by an external account to join the group and gain read or post rights. Consequently, an attacker who possesses a valid viewer key scoped to a session can add an arbitrary account to a group and retain membership after revoking the viewer key. This exposes the group to unauthorized participants and potentially sensitive communications, and the vulnerability is categorized with a CVSS score of 6.4.

Affected Systems

The OpenWA project by rmyndharis, versions earlier than 0.23.5, is affected. Deployments that issue viewer keys to parties that should not be able to add external accounts to groups are at risk, while operator or admin access can prevent the exploitation.

Risk and Exploitability

The vulnerability is actionable via an authenticated GET request to /api/sessions/{sessionId}/groups/{groupId}/invite-code. An attacker needs a valid viewer key and knowledge of the session and group identifiers. The EPSS score is not available and it is not listed in CISA’s KEV catalog. The CVSS score of 6.4 indicates moderate severity. Because the endpoint is publicly accessible when a viewer key is available, the exploitation likelihood depends on how broadly viewer keys are distributed and whether they are protected. In environments where viewer keys are exposed to untrusted users, the risk of unauthorized group membership is significant.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update OpenWA to version 0.23.5 or later, which restores operator requirement on the invite-code endpoint
  • Revoke all existing viewer keys and issue operator or admin keys only to trusted parties
  • Enforce least‑privilege for API key issuance and monitor for unusual group join activity

Generated by OpenCVE AI on September 25, 2026 at 06:23 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 GET /api/sessions/{sessionId}/groups/{groupId}/invite-code endpoint and the GroupGetInviteCode MCP tool have no OPERATOR role requirement, allowing a valid VIEWER key scoped to a session to retrieve an active group invite code. The invite code is a transferable WhatsApp bearer capability, so an external account can join a group administered by the session without an OpenWA credential, gain read and post access to the group, and retain membership after the VIEWER key is revoked. Affected deployments are those that issue VIEWER keys to parties who should not be able to add accounts to administered groups; OPERATOR and ADMIN access is intended. This issue is fixed in version 0.23.5.
Title OpenWA: VIEWER API keys can read WhatsApp group invite codes
Weaknesses CWE-863
References
Metrics cvssV3_1

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


Subscriptions

Rmyndharis Openwa
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-24T16:46:33.707Z

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

Link: CVE-2026-91161

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-91161

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T14:16:57Z

Weaknesses