MODERATE 6.4

CVE-2026-91161

OpenWA: VIEWER API keys can read WhatsApp group invite codes

Preliminary: affected artifacts were inferred from the fix commits of the source repository and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
com.rmyndharis » openwapreliminary
< 0.23.5< a888a0121543426d4e1bf55f9edaed8306ae2699< d66439db9653c7aa7cbfb763003c8d3cbc8f623c< b4d3754de7649ea24b72f1b1bd997bf6095b25f3
0.23.5, a888a0121543426d4e1bf55f9edaed8306ae2699, d66439db9653c7aa7cbfb763003c8d3cbc8f623c, b4d3754de7649ea24b72f1b1bd997bf6095b25f3

Blast radius

1affected artifacts
15affected versions
0dependent artifacts (est.)
0dependent versions

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.