Introduction
OpenSearch, the open-source search and analytics engine backed by Amazon, is widely used as an alternative to Elasticsearch. Beyond traditional keyword search, it doubles as a vector database, storing embeddings that power AI features such as semantic search, retrieval-augmented generation, and recommendation systems. Recently, security research revealed a flaw in how OpenSearch handled vector searches for fields that were supposed to be hidden. This post explains what happened, why it matters, and what teams using OpenSearch should know.
What Happened
OpenSearch includes a feature called field-level security, which lets administrators restrict which document fields specific roles or users can see. The goal is to avoid duplicating data into separate indexes just to create different views of the same information.
Researchers found that while field-level security blocked direct access to excluded fields and kept them out of ordinary lexical search, those same fields remained visible to the vector search engine if they contained vector embeddings. In other words, a user without permission to read a hidden vector field could still influence search results and receive relevance scores tied to that hidden data.
The attack worked by treating the search score as a side channel. By sending carefully chosen query vectors and observing the returned scores, an attacker could mathematically reverse-engineer the hidden vector. In a two-dimensional example, three probe queries were enough to reconstruct a concealed embedding with high precision. For an n-dimensional vector, the process required n plus one queries, provided the target document appeared in the search results.
The root cause was in the k-NN plugin. Unlike lexical search, which fully respects field-level security during matching and ranking, the vector search component accessed the underlying reader directly. This meant vectors that should have been hidden were still treated as candidates and their scores were returned.
- September 25, 2026: Vulnerability discovered and reported to the OpenSearch team.
- September 30, 2026: OpenSearch Security Response Team accepted the report.
- October 5, 2026: Fix scheduled for OpenSearch 3.10.0.
- November 17, 2026: OpenSearch 3.10.0 released with the patch.
Why This Matters
Vector databases are increasingly central to AI workloads, and the embeddings they store can represent sensitive information, including customer profiles, proprietary content, or behavioral patterns. When a security control like field-level security can be bypassed through a side channel, the protection model breaks down. Organizations that rely on field-level security to enforce data separation between teams, such as QA, support, or machine learning engineers, may have unknowingly exposed restricted data.
This case also illustrates a broader lesson for security engineering: access controls must be enforced consistently across every query path. A control that works for keyword search is not automatically effective for vector search, and attackers will look for the weakest available channel.
Key Takeaways
- OpenSearch 3.10.0 patches a side-channel vulnerability that allowed hidden vector fields to be reconstructed through vector search queries.
- Field-level security blocked direct reads and lexical search matches, but did not initially prevent excluded vector fields from influencing k-NN scores.
- Attackers could recover concealed embeddings by issuing a small number of crafted probe queries and analyzing the relevance scores returned.
- The flaw originated in the k-NN plugin's handling of filtered views, not in OpenSearch's core authentication system.
- Users should upgrade to OpenSearch 3.10.0 or later and review their field-level security configurations.
Conclusion
The OpenSearch vulnerability is a reminder that modern search engines must apply security boundaries uniformly across all search modalities. As vector search becomes a default feature in more applications, developers and platform teams need to verify that permissions intended for traditional search also extend to embeddings and similarity queries. The issue has been resolved in OpenSearch 3.10.0, but the underlying lesson remains relevant: side channels can turn a well-intentioned feature into an unintended information leak.

Discussion
Join the conversation
Thoughtful reactions, questions, and follow-up ideas help shape the next story.