# GHSA-22vx-2x23-98w6: OpenSearch vulnerable to improper authorization for Rollover Requests

> Users with rollover permissions can create unauthorized indices by bypassing access controls on target index names.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 7 May 2026

## What is GHSA-22vx-2x23-98w6?

GHSA-22vx-2x23-98w6 is a missing authorization vulnerability in org.opensearch.plugin:opensearch-security, published on 7 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

### Description

A flaw was identified in the OpenSearch Security plugin's handling of index rollover requests. When a rollover request included an explicit target index name, the security plugin did not properly evaluate access control permissions against the target index. This could allow a user with rollover permissions on a source index to create a new index with a name they are not authorized to use.

### Impact

A user with `indices:admin/rollover` permission on a source index pattern could roll over to a target index name outside their authorized index patterns. This is limited to index creation via the rollover API and requires the user to already have rollover privileges on the source index.

### Patches

This issue is fixed in OpenSearch 2.19.4 and 3.2.0

### Workarounds

Grant the `indices:admin/rollover` permission only to fully trusted users.

## Which versions are affected by GHSA-22vx-2x23-98w6?

4 open source packages ship an affected version, including org.opensearch.plugin:opensearch-security.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.opensearch.plugin:opensearch-security` | Maven | From 1.0.0 | 2.19.4.0 |
| `org.opensearch.plugin:opensearch-security` | Maven | From 1.0.0 | 2.19.4.0 |
| `org.opensearch.plugin:opensearch-security` | Maven | From 3.0.0 | 3.2.0.0 |
| `org.opensearch.plugin:opensearch-security` | Maven | From 3.0.0 | 3.2.0.0 |

## How do I fix GHSA-22vx-2x23-98w6?

Upgrade org.opensearch.plugin:opensearch-security to a fixed version for your release line: 2.19.4.0 or 3.2.0.0.

## Is GHSA-22vx-2x23-98w6 being exploited?

There is no known exploitation of GHSA-22vx-2x23-98w6 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-22vx-2x23-98w6 and fix it if it is affected.

What it is: GHSA-22vx-2x23-98w6 is a missing authorization vulnerability in org.opensearch.plugin:opensearch-security, published on 7 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-22vx-2x23-98w6 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.opensearch.plugin:opensearch-security (Maven): affected from 1.0.0; fixed in 2.19.4.0
- org.opensearch.plugin:opensearch-security (Maven): affected from 1.0.0; fixed in 2.19.4.0
- org.opensearch.plugin:opensearch-security (Maven): affected from 3.0.0; fixed in 3.2.0.0
- org.opensearch.plugin:opensearch-security (Maven): affected from 3.0.0; fixed in 3.2.0.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-22vx-2x23-98w6/ (Markdown: https://insights.sbomify.com/GHSA-22vx-2x23-98w6/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-22vx-2x23-98w6

---
From sbomify Insights: https://insights.sbomify.com/GHSA-22vx-2x23-98w6/
Summaries are generated and may contain mistakes; the official description above is the record.
