Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.1
CVE-2026-59415: Spring AI Typesense store can delete unintended documents
CVE-2026-59415 · published 11 days ago
Summary
When an application uses the Spring AI Typesense vector store and sends document IDs that come from users, the delete function builds a filter by simply joining those IDs. If an ID contains special characters, it can change the filter and cause other records—or even all records—to be removed. Review any code that passes external IDs to the delete method, ensure IDs are strictly validated or escaped, and apply any available fixes or updates from the library vendor.
What to do
- Update spring spring ai to version 2.0.3 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| spring | spring ai | < 2.0.3 |
Original advisory text
TypesenseVectorStore doDelete filter injection via document ID allows unintended document deletion
TypesenseVectorStore is vulnerable to a document ID injection in its delete operation that can cause unintended documents to be deleted.
TypesenseVectorStore.doDelete(List<String>) builds a Typesense filter_by expression by raw string concatenation of caller-supplied document IDs into the form id: [id1,id2,...] . The Typesense id field uses bare (unquoted) values in this list form with no escaping mechanism. An ID containing characters with syntactic meaning in the Typesense filter grammar — such as a comma ( , ), a closing bracket ( ] ), or operator tokens ( || , && ) — can break out of the list literal and alter the structure of the filter expression.
An attacker who controls a document ID passed to the delete operation can use this to delete documents other than the intended ones (comma injection), or to construct a filter that matches every document in the collection (operator breakout), resulting in unintended bulk deletion.
Applications that pass externally supplied or user-controlled document IDs to VectorStore.delete(List<String>) backed by TypesenseVectorStore are affected.
TypesenseVectorStore.doDelete(List<String>) builds a Typesense filter_by expression by raw string concatenation of caller-supplied document IDs into the form id: [id1,id2,...] . The Typesense id field uses bare (unquoted) values in this list form with no escaping mechanism. An ID containing characters with syntactic meaning in the Typesense filter grammar — such as a comma ( , ), a closing bracket ( ] ), or operator tokens ( || , && ) — can break out of the list literal and alter the structure of the filter expression.
An attacker who controls a document ID passed to the delete operation can use this to delete documents other than the intended ones (comma injection), or to construct a filter that matches every document in the collection (operator breakout), resulting in unintended bulk deletion.
Applications that pass externally supplied or user-controlled document IDs to VectorStore.delete(List<String>) backed by TypesenseVectorStore are affected.
References
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker full control
Severity
8.1
High
Type
CWE-74Injection
Timeline
Published24 Nov 2026
Updated3 Dec 2026
First seen24 Nov 2026
Track software like this
Free during beta