Security
Nov 30, 2026

CVE-2026-59415: Spring AI document ID injection in Typesense delete

How a crafted document ID can delete the wrong records, or even all records in a Typesense-backed Spring AI collection

Give me the TL;DR
CVE-2026-59415: Spring AI document ID injection in Typesense delete

CVE-2026-59415 is a newly published Spring AI vulnerability in TypesenseVectorStore, published on November 19, 2026 and rated High by Spring. The flaw affects Spring AI 1.0.0 to 1.0.10, 1.1.0 to 1.1.9, and 2.0.0 to 2.0.2. In affected versions, TypesenseVectorStore.doDelete(List<String>) builds a Typesense filter_by expression by concatenating document IDs directly into the query. If an application passes user-controlled document IDs into that delete path, a crafted ID can change the filter and delete documents other than the intended ones. For teams on open source 2.0.x, a free fix is available. For the 1.0.x and 1.1.x lines HeroDevs covers, no free fix is available.

Affected and unsupported? See NES for Spring.

‍

What is CVE-2026-59415?

This issue is in Spring AI's TypesenseVectorStore integration, specifically the delete path used by VectorStore.delete(List<String>). According to Spring's advisory, the vulnerable code builds a Typesense filter_by expression in the form id: [id1,id2,...] by inserting the provided document IDs directly into the string.

That becomes dangerous when those IDs are not fully under the application's control. Typesense uses bare values in this list form, and Spring says characters such as commas, closing brackets, and boolean operators can change the meaning of the filter. In practice, that means a crafted ID can break out of the intended list and expand the delete operation.

The result is not remote code execution, but it can still be severe. An attacker who can influence the document ID values passed to the delete operation may be able to delete records they were not meant to touch, or even build a filter that matches every document in the collection.

Applications are affected when they pass externally supplied or user-controlled IDs into VectorStore.delete(List<String>) while using TypesenseVectorStore.

‍

How severe is CVE-2026-59415?

Spring labels this issue High. NVD shows a VMware CNA CVSS v3.1 score of 10.0 Critical for the CVE, while Spring links to a CVSS vector that reflects a High-severity rating for the vulnerable delete path. What matters most operationally is the impact: this flaw can let a crafted input alter which documents are deleted, including causing unintended bulk deletion.

Because the advisory says applications are affected when they pass externally supplied or user-controlled IDs into the delete call, the practical risk depends on whether your application exposes that operation to untrusted input.

‍

Which Spring AI versions are affected?

Spring's advisory lists three affected version lines. HeroDevs covers the 1.0.x and 1.1.x Spring AI lines as part of NES for Spring.

HeroDevs release notes show supported Spring AI release lines for both 1.0.x and 1.1.x. The latest HeroDevs release notes pages for those lines list 1.0.11 and 1.1.10 as the latest patched releases for those covered branches.

‍

How to fix or reduce the risk

The primary fix is to move to a patched release on your line. Spring lists fixed versions for every affected branch.

If you cannot upgrade immediately, Spring recommends validating every document ID before passing it to VectorStore.delete(List<String>) and rejecting IDs that contain characters outside a known-safe set. Spring says a safe set for Typesense bare-value list syntax includes letters, digits, hyphens, underscores, dots, colons, forward slashes, and at-signs.

‍

Taking action

Teams using Spring AI with TypesenseVectorStore should review any path that accepts outside input and passes document IDs into delete operations. If you are on open source 2.0.x, move to 2.0.3. If you are still running Spring AI 1.0.x or 1.1.x, plan to move to a supported patched release through HeroDevs NES for Spring.

If you also maintain a vulnerability inventory, add CVE-2026-59415 to your tracking and check whether your application uses affected Spring AI lines or user-controlled delete inputs. For a quick reference, HeroDevs also maintains a directory entry for CVE-2026-59415.

Table of Contents
Author
Greg Allen
Chief Technology Officer
Open Source Insights Delivered Monthly