---
id: CVE-2026-91161
title: 'OpenWA is a free, open source, self-hosted WhatsApp API gateway'
summary: >-
  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 v…
severity: medium
cvss: 6.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-863
vendor: rmyndharis
product: OpenWA
affected:
  - OpenWA < 0.23.5
published: '2026-09-24'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T17:17:09.437'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-91161'
references:
  - url: >-
      https://github.com/rmyndharis/OpenWA/commit/a888a0121543426d4e1bf55f9edaed8306ae2699
    label: security-advisories@github.com
  - url: >-
      https://github.com/rmyndharis/OpenWA/commit/d66439db9653c7aa7cbfb763003c8d3cbc8f623c
    label: security-advisories@github.com
  - url: 'https://github.com/rmyndharis/OpenWA/pull/1572'
    label: security-advisories@github.com
  - url: 'https://github.com/rmyndharis/OpenWA/releases/tag/v0.23.5'
    label: security-advisories@github.com
  - url: >-
      https://github.com/rmyndharis/OpenWA/security/advisories/GHSA-45fh-xj7x-vj2x
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-09-24T17:48:30.388Z'
epss: 0.00177
epssPercentile: 0.06494
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
