# CVE-2026-91161: OpenWA: VIEWER API keys can read WhatsApp group invite codes

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.4
- **CVSS:** 6.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.30% (percentile 16, 2026-11-28)
- **CWE:** CWE-863
- **Published:** 2026-09-24T16:46:33.707Z
- **Modified:** 2026-10-05T16:17:17.610Z

## Who should check

- Anyone running rmyndharis OpenWA \< 0.23.5

## 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 and fixed versions

- rmyndharis OpenWA: \< 0.23.5 (cvelist)

## Mitigation

- Upgrade OpenWA to 0.23.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-91161. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-91161.md
Affected: rmyndharis OpenWA < 0.23.5
Fixed in: rmyndharis OpenWA 0.23.5

Steps:
1. Search this machine and project for rmyndharis OpenWA: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-91161 being exploited?

There is no confirmed exploitation: CVE-2026-91161 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-91161?

Medium: CVSS 6.4 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-91161?

rmyndharis OpenWA \< 0.23.5.

### Is there a fix for CVE-2026-91161?

Yes. Fixed in rmyndharis OpenWA 0.23.5. Upgrade OpenWA to 0.23.5 or later.

### How do I check if I'm affected by CVE-2026-91161?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/rmyndharis/OpenWA/security/advisories/GHSA-45fh-xj7x-vj2x>
- patch: <https://github.com/rmyndharis/OpenWA/pull/1572>
- patch: <https://github.com/rmyndharis/OpenWA/commit/a888a0121543426d4e1bf55f9edaed8306ae2699>
- patch: <https://github.com/rmyndharis/OpenWA/commit/d66439db9653c7aa7cbfb763003c8d3cbc8f623c>
- other: <https://github.com/rmyndharis/OpenWA/releases/tag/v0.23.5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-91161>

HTML: <https://flawdb.com/CVE-2026-91161> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-91161>
