Spring AI Typesense Filter Injection, Fixed in 2.0.3 (CVE-2026-59415)
Spring AI before 2.0.3 and 2.1.0 lets untrusted document IDs and filter values alter Typesense queries to delete or expose records; fixed in 2.0.3 and 2.1.0.
TL;DR
TypesenseVectorStore.doDelete(List<String>)concatenates document identifiers into a Typesensefilter_byclause without validation and lets crafted identifiers delete arbitrary records or wipe the collection. Spring disclosed the flaw on 2026-11-19.- Spring AI 1.0.0 through 1.0.10 and 1.1.0 through 1.1.9 are affected alongside 2.0.0 through 2.0.2 and the 2.1.0 pre-releases. Two companion filter bugs in the same module were fixed simultaneously.
- The Common Vulnerabilities and Exposures (CVE) record scores CVE-2026-59415 at 10.0 Critical while Spring scores it at 8.1 High. No exploitation is known and the CVE is not in CISA KEV as of 2026-11-24.
- Upgrade to Spring AI 2.0.3 or 2.1.0 to apply commit c27dac074d. See "How do I fix it?" for workarounds and commercial branch options.
Am I affected?
An application is affected when it uses an unpatched spring-ai-typesense-store artifact and passes untrusted document identifiers or filter inputs into Typesense vector store operations. All of these conditions must hold for an application to be exposed to CVE-2026-59415:
- The application resolves
org.springframework.ai:spring-ai-typesense-storeat version 1.0.0 through 1.0.10 or 1.1.0 through 1.1.9, or at version 2.0.0 through 2.0.2 or 2.1.0-M1 through 2.1.0-RC2. - The application configures a
TypesenseVectorStorebean directly or throughorg.springframework.ai:spring-ai-starter-vector-store-typesense. - An endpoint or background job passes externally supplied or user-controlled document identifiers to
VectorStore.delete(List<String>)orTypesenseVectorStore.doDelete(List<String>). - The caller does not restrict each identifier to safe characters before calling the vector store.
Applications that only generate document identifiers internally with Universally Unique Identifier (UUID) values and never accept an identifier to delete from outside input are not exposed to CVE-2026-59415. However, the same spring-ai-typesense-store releases also carry two companion flaws in TypesenseFilterExpressionConverter that affect similarity search and filter-based deletion.
The first companion is CVE-2026-59369. TypesenseFilterExpressionConverter.doSingleValue serializes filter values as double-quoted JSON strings. Because Typesense uses backticks to delimit string literals in filter_by, an untrusted value passed into SearchRequest.filterExpression(...) or VectorStore.delete(Filter.Expression) can inject || or && clauses.
The second companion is CVE-2026-59442 (tracked as GHSA-34gj-fj65-637x). TypesenseFilterExpressionConverter.doGroup omits parentheses around grouped expressions. Because Typesense evaluates && and || with equal precedence from left to right, a grouped filter loses its boundary and matches documents across tenants.
| Branch | Affected versions | Fixed version |
|---|---|---|
| Spring AI 2.1.x | 2.1.0-M1 through 2.1.0-RC2 | 2.1.0 (open source on Maven Central) |
| Spring AI 2.0.x | 2.0.0 through 2.0.2 | 2.0.3 (open source on Maven Central) or 2.0.2.1 (Enterprise Support Only) |
| Spring AI 1.1.x | 1.1.0 through 1.1.9 | 1.1.10 (Enterprise Support Only) |
| Spring AI 1.0.x | 1.0.0 through 1.0.10 | 1.0.11 (Enterprise Support Only) |
The table lists all 4 release branches. Two branches (2.1.x and 2.0.x) have open-source fixed releases on Maven Central (2.1.0 and 2.0.3 published on 2026-11-19). The other two branches (1.1.x and 1.0.x) have fixes only through commercial VMware Tanzu Spring Enterprise Support (1.1.10 and 1.0.11 alongside 2.0.2.1). Their public Maven Central artifacts stop at 1.1.8 and 1.0.9.
The CVE-2026-59415 record (published by the VMware CVE Numbering Authority on 2026-11-24) scores CVE-2026-59415 at Common Vulnerability Scoring System (CVSS) v3.1 10.0 Critical (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H). Both the National Vulnerability Database (NVD) and GitHub Security Advisory (GHSA) entry GHSA-hr93-6g2r-m7rp carry that same 10.0 Critical vector.
The Spring advisory page labels CVE-2026-59415 High under Common Weakness Enumeration (CWE) identifier CWE-917 and links the NVD calculator for CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H (base score 8.1 High). Both CVE-2026-59369 (CWE-943) and CVE-2026-59442 (CWE-783) carry a CVSS v3.1 base score of 7.5 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
Spring AI is the official AI engineering framework in the Spring portfolio with 9,682 stars and 3,089 forks on GitHub as of 2026-11-24. The underlying typesense/typesense container image has 35,097,946 pulls on Docker Hub and 27,168 stars on GitHub.
Check the resolved version of the Typesense store artifact in a Maven project:
mvn dependency:tree -Dincludes=org.springframework.ai:spring-ai-typesense-store,org.springframework.ai:spring-ai-starter-vector-store-typesense
Check the resolved version in a Gradle project:
./gradlew dependencyInsight --dependency spring-ai-typesense-store --configuration runtimeClasspath
Check the packaged JAR inside a built artifact or a running container:
unzip -l target/*.jar | grep "spring-ai-typesense-store"
docker exec <container_name> sh -c 'ls -1 /app/BOOT-INF/lib/spring-ai-typesense-store*.jar 2>/dev/null || find / -name "spring-ai-typesense-store*.jar" 2>/dev/null'
Find where the application calls delete or builds filter expressions on a VectorStore or TypesenseVectorStore:
grep -rnE "TypesenseVectorStore|VectorStore" src/main/
grep -rnE "\.(delete|doDelete|filterExpression)\(" src/main/
If the resolved version is earlier than 2.0.3 (or is a 2.1.0 milestone or release candidate) and any call site passes user-controlled identifiers or filter values, the deployment is affected.
How do I fix it?
Upgrade Spring AI to 2.0.3 or 2.1.0 to pick up all three Typesense fixes from Maven Central. The CVE-2026-59415 advisory is fixed by commit c27dac074d. CVE-2026-59369 is fixed by commit 5937bd2580 and CVE-2026-59442 is fixed by commit 4d13734413.
- Update the
spring-ai-bomversion in Mavenpom.xmlto2.0.3or2.1.0:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-bom</artifactId>
<version>2.0.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
- If the project declares
spring-ai-typesense-storeorspring-ai-starter-vector-store-typesensewithout the Bill of Materials (BOM), set the version explicitly in Maven or Gradle:
dependencies {
implementation platform("org.springframework.ai:spring-ai-bom:2.0.3")
implementation "org.springframework.ai:spring-ai-starter-vector-store-typesense"
}
-
For applications on
1.0.xor1.1.x, migrate to2.0.3or2.1.0or pull1.0.11or1.1.10from the commercial Spring Enterprise Support repository. The Spring Boot starter artifact was renamed fromspring-ai-typesense-store-spring-boot-starterin early1.0.0milestones tospring-ai-starter-vector-store-typesensefrom1.0.0-M7onward. -
Rebuild the archive and recreate running containers. Pulling an image does not update a running container's classpath:
mvn clean package -DskipTests
docker build -t my-spring-ai-app:2.0.3 .
docker stop my-spring-ai-app
docker rm my-spring-ai-app
docker run -d --name my-spring-ai-app -p 8080:8080 my-spring-ai-app:2.0.3
Before deploying 2.0.3 or 2.1.0, check your application for three intentional behavior changes introduced by the fixes:
- Document identifiers passed to
delete(List<String>)may contain only letters and digits or the symbols- _ . : / @. Leading or trailing whitespace and standard Base64+or=characters now throwIllegalArgumentException. - Metadata filter values containing a literal backtick (
`) now throwIllegalArgumentExceptionat conversion time. java.util.Datefilter values are now emitted as epoch milliseconds rather than quoted ISO-8601 strings to match the numeric timestamp stored by the Typesense client.
If you cannot upgrade yet, apply these workarounds for the operations your code exposes:
- To mitigate CVE-2026-59415 before calling
VectorStore.delete(List<String>), validate every document ID against the2.0.3character allowlist and reject any non-matching ID:
import java.util.List;
import java.util.regex.Pattern;
public final class TypesenseIdGuard {
private static final Pattern SAFE_TYPESENSE_ID =
Pattern.compile("^[\\p{L}\\p{Nd}\\-_.:/@]+$");
public static List<String> requireSafeIds(List<String> ids) {
if (ids == null) {
throw new IllegalArgumentException("Document id list must not be null");
}
for (String id : ids) {
if (id == null || !SAFE_TYPESENSE_ID.matcher(id).matches()) {
throw new IllegalArgumentException("Disallowed Typesense document ID: " + id);
}
}
return ids;
}
}
-
To mitigate CVE-2026-59369 on unpatched releases, do not pass untrusted strings into
SearchRequest.filterExpression(...)orVectorStore.delete(Filter.Expression). Restrict caller-selected filter values to an allowlist of alphanumeric tokens with no spaces or punctuation. -
To mitigate CVE-2026-59442 on unpatched releases, do not use
Filter.Groupor parenthesized||expressions inside aFilter.Expressionthat enforces tenant boundaries. Keep each tenant in a dedicated Typesense collection or issue a Typesense Scoped Search API key with an embeddedfilter_byconstraint.
The check in step 1 closes only CVE-2026-59415 and does not protect metadata filter conversion. Upgrading to 2.0.3 or 2.1.0 is the only fix that repairs TypesenseFilterExpressionConverter.
What is the root cause?
TypesenseVectorStore.doDelete(List<String>) builds a Typesense filter_by query by joining caller-supplied document identifiers with commas inside id: [...] without character validation. In the same module, TypesenseFilterExpressionConverter quotes filter values with JSON double quotes instead of backticks and drops parentheses around logical groups.
TypesenseVectorStore implements Spring AI's VectorStore interface against Typesense. Because Typesense deletes multiple documents through a filter query (DeleteDocumentsParameters.filterBy(...)), TypesenseVectorStore translates both ID-list deletions and Filter.Expression trees into Typesense's filter_by string grammar.
In Spring AI 1.0.0 the doDelete(List<String>) method built the filter as id:=[id1,id2]. On 2026-04-30 commit 0146f25c5ccb escaped user-supplied IDs in MilvusVectorStore.doDelete(List<String>). That commit changed TypesenseVectorStore.doDelete(List<String>) to id: [...] and noted that raw string joining was safe because Typesense document IDs use URL-safe characters.
Here is the vulnerable doDelete(List<String>) in vector-stores/spring-ai-typesense-store/src/main/java/org/springframework/ai/vectorstore/typesense/TypesenseVectorStore.java at tag v2.0.2, lines 174 to 197:
@Override
public void doDelete(List<String> idList) {
DeleteDocumentsParameters deleteDocumentsParameters = new DeleteDocumentsParameters();
// Typesense filter_by for the id field expects bare string values, not quoted
// literals — e.g. id: [id1,id2]. Typesense document IDs are restricted to
// URL-safe characters (no commas, brackets, or quotes), so raw string joining
// is safe here. The operator is `: ` (not `:=`) per the Typesense recommendation
// for multi-value id filters.
deleteDocumentsParameters.filterBy(DOC_ID_FIELD_NAME + ": [" + String.join(",", idList) + "]");
try {
int deletedDocs = (Integer) this.client.collections(this.collectionName)
.documents()
.delete(deleteDocumentsParameters)
.getOrDefault("num_deleted", 0);
if (deletedDocs < idList.size()) {
logger.warn("Failed to delete all documents");
}
}
catch (Exception e) {
logger.error("Failed to delete documents", e);
}
}
DOC_ID_FIELD_NAME is "id" (defined at line 85) and idList is the List<String> passed by the caller to VectorStore.delete(List<String>). The comment's assumption confuses a property of stored documents with a property of untrusted caller input. Typesense's id: [...] syntax uses bare unquoted values with no escape character, and doDelete never verifies that each element of idList is a single bare identifier.
Any comma (,) inside an element of idList is parsed by Typesense as a list separator and adds another document ID to the delete list. Any closing bracket (]) ends the id: [...] list literal early. The remainder of the string can then append boolean operators (|| or &&) and a new filter clause such as || id:!= [none].
The two companion bugs live in vector-stores/spring-ai-typesense-store/src/main/java/org/springframework/ai/vectorstore/typesense/TypesenseFilterExpressionConverter.java. Both doDelete(Filter.Expression) (at TypesenseVectorStore.java line 204) and doSimilaritySearch(SearchRequest) (at line 231) call this.filterExpressionConverter.convertExpression(...) to build the filter_by string.
Here are doGroup and doSingleValue in TypesenseFilterExpressionConverter.java at tag v2.0.2, lines 56 to 88:
@Override
protected void doGroup(Filter.Group group, StringBuilder context) {
this.convertOperand(new Filter.Expression(Filter.ExpressionType.AND, group.content(), group.content()),
context); // trick
}
@Override
protected void doKey(Filter.Key key, StringBuilder context) {
var identifier = (hasOuterQuotes(key.key())) ? removeOuterQuotes(key.key()) : key.key();
// Typesense field names are bare identifiers in filter_by syntax
// (field_name:value) with no escaping mechanism. Validate that the
// identifier contains only safe characters to prevent filter injection.
for (int i = 0; i < identifier.length(); i++) {
char c = identifier.charAt(i);
if (!Character.isLetterOrDigit(c) && c != '_' && c != '.' && c != '-') {
throw new IllegalArgumentException("Not allowed filter identifier name: " + identifier);
}
}
context.append("metadata.").append(identifier).append(":");
}
@Override
protected void doSingleValue(Object value, StringBuilder context) {
emitJsonValue(value, context);
}
In doKey (hardened earlier by commit 029173fba2b1) field names were restricted to alphanumeric characters and the symbols _ . -. However, doSingleValue at line 86 still called emitJsonValue(value, context) to serialize strings with Jackson as JSON double-quoted literals ("...").
Typesense's filter_by grammar is not JSON. Only backticks (`...`) delimit string literals in Typesense while double quotes are treated as ordinary characters inside an unquoted token. A filter value containing " || metadata.tenant: "victim closes nothing and injects a new || condition (CVE-2026-59369).
Meanwhile, doGroup at lines 57 to 60 never emitted ( and ). It duplicated group.content() inside an AND expression (// trick) without parentheses. Any OR group placed on the right of an AND lost its precedence boundary when Typesense evaluated && and || from left to right (CVE-2026-59442).
How is it exploited?
An attacker exploits CVE-2026-59415 by passing a crafted document ID with a comma or a closing bracket and boolean operator to an endpoint that calls VectorStore.delete(List<String>). No standalone exploit program is public, and the injection patterns come from the advisory and the regression tests.
- The application exposes an endpoint (such as
DELETE /api/documents/{id}) that passes a caller-supplied string in aList<String>tovectorStore.delete(idList), callingTypesenseVectorStore.doDelete(List<String>). - To delete a document belonging to another user or tenant whose ID is known or guessable, the attacker submits a comma-separated string as one ID:
own-doc-1,victim-doc-2
TypesenseVectorStore.doDeletebuildsid: [own-doc-1,victim-doc-2]and sends it infilter_byto Typesense, deleting bothown-doc-1andvictim-doc-2.- To wipe every document in the collection in one request, the attacker closes the bracketed list and appends an
||clause that matches all remaining records:
own-doc-1] || id:!= [own-doc-1
doDeleteproducesid: [own-doc-1] || id:!= [own-doc-1]and deletes every document inthis.collectionNameregardless of owner or tenant metadata.- Where an application interpolates user input into a metadata filter value for search or delete (CVE-2026-59369), the integration test in commit 5937bd2580 shows the breakout value:
// Adapted from TypesenseVectorStoreIT.java in commit 5937bd2580cf
Filter.Expression injected = new Filter.Expression(
Filter.ExpressionType.AND,
new Filter.Expression(Filter.ExpressionType.EQ, new Filter.Key("tenant"), new Filter.Value("attacker")),
new Filter.Expression(Filter.ExpressionType.EQ, new Filter.Key("country"),
new Filter.Value("x\" || metadata.tenant: \"victim"))
);
On 2.0.2 and earlier TypesenseFilterExpressionConverter emits metadata.tenant: "attacker" && metadata.country: "x\" || metadata.tenant: \"victim". Typesense does not treat " as a string delimiter, so its parser tokenizes || metadata.tenant: \"victim" as a top-level OR clause and returns or deletes the victim tenant's documents.
How does the attack flow?
Caller-supplied document identifiers reach TypesenseVectorStore.doDelete(List<String>) and are joined into an unquoted id: [...] filter string without character validation, letting injected ] || clauses delete arbitrary documents.
doc1] || id:!= [doc1"] --> B["Application calls
VectorStore.delete(idList)"] B --> C["TypesenseVectorStore.doDelete
receives List of String"] C --> D["No character check on idList
String.join with comma"] D --> E["Builds filter_by string
id: [doc1] || id:!= [doc1]"] E --> F["Typesense documents().delete()
evaluates injected OR clause"] F --> G["Unintended documents or entire
collection deleted"]
What can an attacker do?
An attacker who controls a document identifier or filter value passed to an affected TypesenseVectorStore can delete documents across the collection or read documents belonging to other tenants. None of the three vulnerabilities executes code on the application host or the Typesense server.
- Delete specific documents or wipe the entire vector collection (CVE-2026-59415). Injecting commas or closing the
id: [...]list and appending an||clause indoDelete(List<String>)deletes arbitrary documents or empties the Retrieval-Augmented Generation (RAG) knowledge base. The CVE-2026-59415 record scores this at 10.0 Critical (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) while Spring's advisory scores CVE-2026-59415 at 8.1 High (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H). - Read or delete cross-tenant documents through metadata filter values (CVE-2026-59369). Passing an untrusted string as a
Filter.ValueinSearchRequest.filterExpression(...)orVectorStore.delete(Filter.Expression)lets an injected||clause bypass tenant filters. That exposes or deletes records from other tenants (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:Nat 7.5 High). - Access or delete records across tenants when a filter uses logical groups (CVE-2026-59442). Combining a tenant constraint with an
ORgroup such astenant == 'A' && (category == 'a' || category == 'b')causes the converter to omit parentheses. Typesense then returns or deletes every document matching the right branch of theORacross all tenants (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:Nat 7.5 High).
Every condition required for these impacts is explicit. The application must run spring-ai-typesense-store 1.0.0 through 1.0.10 or 1.1.0 through 1.1.9, or run 2.0.0 through 2.0.2 or 2.1.0-M1 through 2.1.0-RC2.
For CVE-2026-59415 the attacker must reach an endpoint that passes an unvalidated caller-supplied string into VectorStore.delete(List<String>). For CVE-2026-59369 the attacker must control a metadata filter value passed to TypesenseFilterExpressionConverter. For CVE-2026-59442 the application must evaluate a Filter.Expression containing a Filter.Group on the right of an AND expression. Whether authentication is required depends on whether the application's delete or search endpoint is public or authenticated.
Why does the fix work?
The fix for CVE-2026-59415 validates every document identifier in idList against a strict character allowlist before joining the list and throws IllegalArgumentException if any character fails. Alongside it, the companion patches in TypesenseFilterExpressionConverter wrap string values in backticks while rejecting embedded backticks and emit parentheses around Filter.Group nodes.
Here is the CVE-2026-59415 diff in vector-stores/spring-ai-typesense-store/src/main/java/org/springframework/ai/vectorstore/typesense/TypesenseVectorStore.java from commit c27dac074d (shipped in v2.0.3 and v2.1.0):
@Override
public void doDelete(List<String> idList) {
+ Assert.notNull(idList, "Document id list must not be null");
DeleteDocumentsParameters deleteDocumentsParameters = new DeleteDocumentsParameters();
- deleteDocumentsParameters.filterBy(DOC_ID_FIELD_NAME + ": [" + String.join(",", idList) + "]");
+ String joinedIds = idList.stream()
+ .map(TypesenseVectorStore::validateIdForFilter)
+ .collect(Collectors.joining(","));
+ deleteDocumentsParameters.filterBy(DOC_ID_FIELD_NAME + ": [" + joinedIds + "]");
@@
+ static String validateIdForFilter(String id) {
+ for (int i = 0; i < id.length(); i++) {
+ char c = id.charAt(i);
+ if (!Character.isLetterOrDigit(c) && c != '-' && c != '_' && c != '.' && c != ':' && c != '/' && c != '@') {
+ throw new IllegalArgumentException(
+ "Document ID contains a character that is not allowed in a Typesense filter expression: '" + c
+ + "' in id: " + id);
+ }
+ }
+ return id;
+ }
Why did the maintainers choose a character allowlist in validateIdForFilter instead of wrapping each ID in backticks? The built-in Typesense id field uses bare values in id: [...] and Typesense's tokenizer has no escape sequence for a backtick. An unbalanced backtick inside an ID would swallow the comma separators and alter the filter.
Permitting only letters and digits plus - _ . : / @ supports UUID and Uniform Resource Name (URN) identifiers alongside path-like and email-style or base64url strings. It blocks , ] [ | & ` ! = < > + and whitespace. Because the stream validates every element before calling this.client.collections(...), one invalid ID aborts the batch with no partial delete.
Here is the companion diff in vector-stores/spring-ai-typesense-store/src/main/java/org/springframework/ai/vectorstore/typesense/TypesenseFilterExpressionConverter.java combining commits 5937bd2580 (CVE-2026-59369) and 4d13734413 (CVE-2026-59442):
@Override
- protected void doGroup(Filter.Group group, StringBuilder context) {
- this.convertOperand(new Filter.Expression(Filter.ExpressionType.AND, group.content(), group.content()),
- context); // trick
+ protected void doStartGroup(Filter.Group group, StringBuilder context) {
+ context.append("(");
+ }
+
+ @Override
+ protected void doEndGroup(Filter.Group group, StringBuilder context) {
+ context.append(")");
}
@@
@Override
protected void doSingleValue(Object value, StringBuilder context) {
- emitJsonValue(value, context);
+ if (value instanceof Number || value instanceof Boolean) {
+ context.append(value);
+ }
+ else if (value instanceof Date date) {
+ context.append(date.getTime());
+ }
+ else {
+ String stringValue = String.valueOf(value);
+ if (stringValue.indexOf('`') >= 0) {
+ throw new IllegalArgumentException("Illegal character '`' in filter value: " + stringValue);
+ }
+ context.append('`').append(stringValue).append('`');
+ }
}
Together, the three commits close every filter_by construction path in TypesenseVectorStore and TypesenseFilterExpressionConverter. Keys are validated in doKey and values are backtick-delimited in doSingleValue while groups are parenthesized in doStartGroup and doEndGroup and document IDs are checked in validateIdForFilter.
How do I check if I was compromised?
Start by searching Typesense and reverse-proxy request logs and Spring AI application logs for injected filter syntax or unexpected deletions. No indicators of compromise are published for CVE-2026-59415 or for companions CVE-2026-59369 and CVE-2026-59442.
When TypesenseVectorStore.doDelete calls the Typesense client, the client sends an HTTP DELETE request to /collections/<collection>/documents?filter_by=.... Search reverse-proxy or Typesense access logs for DELETE requests whose filter_by query string contains || or && or != in raw or URL-encoded form:
grep -Ei 'DELETE .*/collections/[^/]+/documents\?filter_by=.*(\|\||%7C%7C|&&|%26%26|!=|%21=)' /var/log/nginx/access.log /var/log/typesense/typesense.log 2>/dev/null
In the Spring application log, TypesenseVectorStore.doSimilaritySearch logs the converted filter string at INFO level (Filter expression: ... at line 234 of v2.0.2). Meanwhile doDelete(List<String>) logs Failed to delete all documents at WARN level when deletedDocs < idList.size(). Search the application log for injected operators inside logged filter expressions:
grep -Ei 'Filter expression:.*(".*(\|\||&&).*")' /var/log/spring-ai-app.log 2>/dev/null
Check your Typesense collection document counts (num_documents via GET /collections/<collection>) against expected application records to detect an unexplained bulk delete. A log match is a lead to investigate rather than proof of compromise because legitimate application filters also use && and ||.
Conversely, a bulk delete through doDelete(List<String>) does not log the filter_by string in the Spring log when deletedDocs >= idList.size(). An attack where Typesense sits on an internal network with no HTTP access log may leave only missing documents as its trace.
Timeline
- 2026-04-30: Commit
0146f25c5ccbwas authored, switchingTypesenseVectorStore.doDelete(List<String>)toid: [...]with rawString.join(",", idList). - 2026-08-20: Fix commit
5937bd2580cffor companion CVE-2026-59369 (backtick filter-value escaping) was authored in the Spring AI repository. - 2026-10-05: Fix commit
c27dac074dcafor CVE-2026-59415 (validateIdForFilterindoDelete) was authored in the Spring AI repository. - 2026-10-13: Fix commit
4d1373441388for companion CVE-2026-59442 (parenthesized groups inTypesenseFilterExpressionConverter) was authored. - 2026-11-19: Spring published the advisories for CVE-2026-59415 and companions CVE-2026-59369 and CVE-2026-59442, and released Spring AI
2.0.3and2.1.0to Maven Central. - 2026-11-20: The
v2.0.3andv2.1.0release tags were published on GitHub. - 2026-11-23: The CVE record for companion CVE-2026-59442 and GitHub advisory
GHSA-34gj-fj65-637xwere published. - 2026-11-24: The CVE record for CVE-2026-59415 and GitHub advisory
GHSA-hr93-6g2r-m7rpwere published, 50 days after the fix commit was authored.
FAQ
Why does the CVE record score CVE-2026-59415 at 10.0 Critical while the Spring advisory page says High?
Both records come from VMware/Spring and publish different CVSS v3.1 vectors. The CVE List and NVD carry CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H (10.0 Critical) while the Spring page links CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H (8.1 High). The 8.1 vector reflects document deletion impact while scanners reading NVD or GHSA-hr93-6g2r-m7rp flag 10.0 Critical.
Are Spring AI 2.1.0 milestone and release-candidate builds fixed?
No. Tagged source inspection shows that 2.1.0-M1 and release candidates 2.1.0-RC1 (2026-10-23) and 2.1.0-RC2 (2026-11-05) still contain the unvalidated String.join(",", idList) in TypesenseVectorStore.doDelete. Upgrade any 2.1.0 pre-release to the final 2.1.0 release or 2.0.3.
Does CVE-2026-59415 allow remote code execution on the Spring application or Typesense server?
No. The injection targets Typesense's filter_by query language inside documents().delete(...) and controls which documents in the collection are deleted. It does not evaluate Java code or SpEL expressions or run operating system commands.
Are there open-source fixes for the Spring AI 1.0.x and 1.1.x branches?
No. Fixed versions 1.0.11 and 1.1.10 (alongside 2.0.2.1) ship only through commercial VMware Tanzu Spring Enterprise Support. Public Maven Central artifacts on those branches stop at 1.0.9 and 1.1.8, so open-source deployments must upgrade to 2.0.3 or 2.1.0 or apply the workarounds.
Will upgrading to 2.0.3 or 2.1.0 break existing document IDs or metadata filters?
It can if your application uses document IDs outside the allowlist (such as spaces or Base64 + and =) or filter values with literal backticks. Switch Base64 IDs to URL-safe Base64 (base64url without = padding) before calling delete(List<String>). Also note that java.util.Date filter values now serialize as epoch milliseconds to match stored Typesense timestamps.
How do I find vulnerable Spring AI dependencies with Ostorlab?
Use Ostorlab SCA and SBOM analysis to inventory your repositories and build artifacts for org.springframework.ai:spring-ai-typesense-store and org.springframework.ai:spring-ai-starter-vector-store-typesense across the 1.0.x and 1.1.x lines as well as 2.0.x and 2.1.0 pre-releases. After upgrading to 2.0.3 or 2.1.0, re-run the dependency tree check from "Am I affected?" in CI to confirm that no transitive module pins an older spring-ai-bom.
References
- Spring Security Advisory for CVE-2026-59415, published 2026-11-19 (checked November 24, 2026): https://spring.io/security/cve-2026-59415
- CVE-2026-59415 record in the CVE List, published 2026-11-24 (checked November 24, 2026): https://www.cve.org/CVERecord?id=CVE-2026-59415
- GitHub Advisory Database entry GHSA-hr93-6g2r-m7rp for CVE-2026-59415, published 2026-11-24 (checked November 24, 2026): https://github.com/advisories/GHSA-hr93-6g2r-m7rp
- Spring Security Advisory for companion CVE-2026-59369, published 2026-11-19 (checked November 24, 2026): https://spring.io/security/cve-2026-59369
- Spring Security Advisory for companion CVE-2026-59442, published 2026-11-19 (checked November 24, 2026): https://spring.io/security/cve-2026-59442
- CVE-2026-59442 record in the CVE List, published 2026-11-23 (checked November 24, 2026): https://www.cve.org/CVERecord?id=CVE-2026-59442
- GitHub Advisory Database entry GHSA-34gj-fj65-637x for CVE-2026-59442, published 2026-11-23 (checked November 24, 2026): https://github.com/advisories/GHSA-34gj-fj65-637x
- Fix commit
c27dac074dcafor CVE-2026-59415, "Validate IDs inTypesenseVectorStoredoDelete", authored 2026-10-05 (checked November 24, 2026): https://github.com/spring-projects/spring-ai/commit/c27dac074dca878fab424a2828f0c398374d8331 - Fix commit
5937bd2580cffor CVE-2026-59369, "Sanitize Typesense filter expression values", authored 2026-08-20 (checked November 24, 2026): https://github.com/spring-projects/spring-ai/commit/5937bd2580cf4b26006aa574512b57652a7f85ad - Fix commit
4d1373441388for CVE-2026-59442, "Fix grouping in Typesense filter expression converter", authored 2026-10-13 (checked November 24, 2026): https://github.com/spring-projects/spring-ai/commit/4d1373441388862addabcdf830f9e93994e8e735 - Earlier commit
0146f25c5ccb, "Fix MilvusVectorStore doDelete idList string esacping", authored 2026-04-30 (checked November 24, 2026): https://github.com/spring-projects/spring-ai/commit/0146f25c5ccbcb927c664b8886bc100be6f0de25 - Earlier commit
029173fba2b1, "fix: vector store filter expression converter key handling", authored 2026-03-20 (checked November 24, 2026): https://github.com/spring-projects/spring-ai/commit/029173fba2b1dbbaa5d79e3883e90a271c5869b2 - Vulnerable
TypesenseVectorStore.javaat tagv2.0.2(checked November 24, 2026): https://github.com/spring-projects/spring-ai/blob/v2.0.2/vector-stores/spring-ai-typesense-store/src/main/java/org/springframework/ai/vectorstore/typesense/TypesenseVectorStore.java - Vulnerable
TypesenseFilterExpressionConverter.javaat tagv2.0.2(checked November 24, 2026): https://github.com/spring-projects/spring-ai/blob/v2.0.2/vector-stores/spring-ai-typesense-store/src/main/java/org/springframework/ai/vectorstore/typesense/TypesenseFilterExpressionConverter.java - Fixed
TypesenseVectorStore.javaat tagv2.0.3(checked November 24, 2026): https://github.com/spring-projects/spring-ai/blob/v2.0.3/vector-stores/spring-ai-typesense-store/src/main/java/org/springframework/ai/vectorstore/typesense/TypesenseVectorStore.java - Fixed
TypesenseFilterExpressionConverter.javaat tagv2.0.3(checked November 24, 2026): https://github.com/spring-projects/spring-ai/blob/v2.0.3/vector-stores/spring-ai-typesense-store/src/main/java/org/springframework/ai/vectorstore/typesense/TypesenseFilterExpressionConverter.java - Spring AI 2.0.3 release on GitHub, published 2026-11-20 (checked November 24, 2026): https://github.com/spring-projects/spring-ai/releases/tag/v2.0.3
- Spring AI 2.1.0 release on GitHub, published 2026-11-20 (checked November 24, 2026): https://github.com/spring-projects/spring-ai/releases/tag/v2.1.0
- Maven Central repository metadata for
spring-ai-typesense-store, updated 2026-11-19 (checked November 24, 2026): https://repo1.maven.org/maven2/org/springframework/ai/spring-ai-typesense-store/maven-metadata.xml - Spring AI GitHub repository, 9,682 stars and 3,089 forks (checked November 24, 2026): https://github.com/spring-projects/spring-ai
- Typesense GitHub repository, 27,168 stars (checked November 24, 2026): https://github.com/typesense/typesense
- Typesense official Docker Hub repository, 35,097,946 pulls (checked November 24, 2026): https://hub.docker.com/r/typesense/typesense
- CWE-917, Improper Neutralization of Special Elements used in an Expression Language Statement (checked November 24, 2026): https://cwe.mitre.org/data/definitions/917.html
- CWE-943, Improper Neutralization of Special Elements in Data Query Logic (checked November 24, 2026): https://cwe.mitre.org/data/definitions/943.html
- CWE-783, Operator Precedence Logic Error (checked November 24, 2026): https://cwe.mitre.org/data/definitions/783.html
- CISA Known Exploited Vulnerabilities catalog, catalog version 2026.11.23 (checked November 24, 2026): https://www.cisa.gov/known-exploited-vulnerabilities-catalog
Keep reading
