PoC Archive PoC Archive
CVE-2026-59415 category: web CVSS 10 (CRITICAL)
Unverified

Spring AI TypesenseVectorStore Delete Filter Injection (CVE-2026-59415)

Published: 2026-11-25 • Researcher: daehyuh (reporter and PoC author); Spring / VMware security team (CNA, security@vmware.com)

Target software Spring AI, Typesense vector store adapter (org.springframework.ai:spring-ai-typesense-store)
Affected versions 2.0.0 to before 2.0.3 (OSS); 2.0.0 to before 2.0.2.1, 1.1.0 to before 1.1.10, 1.0.0 to before 1.0.11 (Enterprise Support Only) — CNA/NVD ranges
Status PoC
Severity Critical · CVSS 10
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-10-19
Author / Researcherdaehyuh (reporter and PoC author); Spring / VMware security team (CNA, security@vmware.com)
CVE / AdvisoryCVE-2026-59415
Categoryweb
SeverityCritical
CVSS Score10.0 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, NVD/CNA); the reporter score was 7.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L)
StatusPoC
TagsCWE-74, CWE-943, injection, Spring AI, Typesense, vector-store, Java, data-deletion, delete-by-query, authorization-bypass
RelatedN/A

Affected Target

FieldValue
Software / SystemSpring AI, Typesense vector store adapter (org.springframework.ai:spring-ai-typesense-store)
Versions Affected2.0.0 to before 2.0.3 (OSS); 2.0.0 to before 2.0.2.1, 1.1.0 to before 1.1.10, 1.0.0 to before 1.0.11 (Enterprise Support Only) — CNA/NVD ranges
Language / PlatformJava 17+; Spring AI on any JVM, deleting against a Typesense server
Authentication RequiredPartial (depends on the host application; the library itself enforces no authorization)
Network Access RequiredYes (through the host application’s HTTP API)

Summary

Spring AI’s Typesense vector store adapter builds a Typesense delete filter by concatenating caller-supplied document IDs into an id list with no escaping or per-element validation. A single ID containing a comma, a closing bracket, or boolean operator tokens can close the list literal and either name extra documents or match the whole collection, so an application that authorizes deletion of one document can be tricked into deleting others or everything. The upstream reproducer calls the public delete method on spring-ai-typesense-store 2.0.1 with one crafted ID and shows that the resulting filter is identical to a legitimate two-ID delete. Impact is destructive integrity loss of vector-store data executed with the application’s Typesense credentials.

Vulnerability Details

Root Cause

TypesenseVectorStore.doDelete(List<String>) (reached from the public VectorStore.delete(List<String>) contract) builds its filter_by expression with String.join(",", idList) inside the literal form id: [id1,id2,...]. Typesense’s id field grammar uses bare, unquoted values in that list form and provides no escaping mechanism, so any character with syntactic meaning inside the filter grammar — comma, ], ||, &&, and comparable operator tokens — can break out of the list literal and change the structure of the predicate. The adapter’s source comment assumes document IDs never contain commas, but the public delete method never validates or encodes that assumption. The same code path also warns only when fewer documents were deleted than requested, so a response count larger than the supplied list size passes silently, which is exactly the over-deletion case. Classification: CWE-74 (CNA) / CWE-943 per the reporter.

Attack Vector

A network-facing application that accepts a document ID from a user and forwards it to VectorStore.delete(List.of(id)) is the attack surface. The attacker submits a single ID such as doc-a,doc-b, which becomes the two-document deletion predicate id: [doc-a,doc-b]; bracket and operator payloads can extend this to a predicate that matches every document in the collection. The reporter’s threat model is a low-privileged authenticated user who is allowed to delete one document; the CNA scored the issue as PR:N because the library enforces no check of its own. The crafted ID does not need to exist as a stored document — it is split by the backend filter grammar after the authorized call has been made.

Impact

Unintended deletion of documents outside the caller’s authorization scope, up to bulk deletion of an entire collection. Vector-store content is typically derived from private or tenant data, so loss is destructive and difficult to reverse without re-ingestion; deletion runs with the application’s full Typesense API credentials. No confidentiality or code-execution impact is demonstrated by this PoC.

Environment / Lab Setup

Output
OS:          Any (reproducer recorded on Windows; Java is cross-platform)
Target:      Published Maven artifact org.springframework.ai:spring-ai-typesense-store:2.0.1
             (Typesense Java client 1.3.0), Java 17
Attacker:    N/A for this lab — the PoC is a local unit-level reproducer, not a remote client
Tools:       JDK 17+, Gradle 9.7 (wrapper) or Gradle 9.x, Mockito 5.11.0

The reproducer mocks the Typesense Client with Mockito and captures the actual DeleteDocumentsParameters object Spring AI constructs. No Typesense server, network credential, or live user data is involved, so this is a lab-only validation of the vulnerable primitive rather than an end-to-end destructive exploit.

Setup Steps

Shell script
1
2
3
4
5
git clone --depth=1 https://github.com/daehyuh/CVE-2026-59415
cd CVE-2026-59415
./gradlew --no-daemon clean run      # .\gradlew.bat --no-daemon clean run on Windows

gradle --no-daemon clean run

Proof of Concept

Step-by-Step Reproduction

  1. Obtain the vulnerable artifact — Gradle resolves org.springframework.ai:spring-ai-typesense-store:2.0.1 from Maven Central; the runner asserts that TypesenseVectorStore was loaded from spring-ai-typesense-store-2.0.1.jar and aborts on any other version.
  2. Build a store with a mocked backend — a deep-stub Client and a mocked EmbeddingModel are passed to TypesenseVectorStore.builder(...).build(); the mock intercepts collections(...).documents().delete(...).
  3. Send the malicious single ID — call the public delete with List.of("doc-a,doc-b"), i.e. one list element, and capture the DeleteDocumentsParameters.
  4. Send the control — call delete with the legitimate two-element list List.of("doc-a", "doc-b").
  5. Compare the filters — both calls produce id: [doc-a,doc-b], so one attacker-controlled element has the same backend effect as two authorized IDs; Typesense 0.24.0 documents that form as deletion of multiple document IDs.

Exploit Code

See TypesenseDeleteFilterRepro.java for the full reproducer.

Java source
1
2
3
4
// One list element, two backend documents: the injected comma expands the delete scope.
store.delete(List.of("doc-a,doc-b"));      // captured filter: id: [doc-a,doc-b]
store.delete(List.of("doc-a", "doc-b"));   // control filter:    id: [doc-a,doc-b]
// filters_identical = true  ->  the single element was executed as a two-ID delete

Operator payloads follow the same construction path: a value containing ] closes the list literal, and ||/&& can be used to append a predicate such as one matching every document in the collection.

Expected Output

Output
1
2
3
4
5
6
7
tested_dependency=org.springframework.ai:spring-ai-typesense-store:2.0.1
single_input_count=1
single_input_value=doc-a,doc-b
single_input_filter=id: [doc-a,doc-b]
control_input_count=2
control_filter=id: [doc-a,doc-b]
filters_identical=true

The upstream run also prints artifact_location=.../spring-ai-typesense-store-2.0.1.jar and the evidence file records the JAR SHA-256 E61D3425E892160A547ED2B5725173326CD8AA2803324FD14279AACF4710924F (see VERIFICATION.md).

Detection & Indicators of Compromise

  • Typesense delete-by-query activity whose filter_by id list contains a comma inside what the application intends to be a single ID, unbalanced [/], or bare ||, &&, and wildcard-style predicates.
  • A delete response whose num_deleted is greater than the number of document IDs the request was authorized to remove — the adapter does not warn on over-deletion.
  • Application logs showing user-supplied document IDs containing filter metacharacters ([, ], ,, |, &, *, :) reaching the vector-store delete path.
  • Sudden loss of documents or whole collections with no matching authorized bulk-delete job, especially from a normal low-privileged account.
  • Spring AI debug logs or HTTP traces to the Typesense port showing DELETE /collections/<name>/documents with a filter_by value that differs structurally from the ID count supplied by the caller.
Output
1
filter_by=id: [doc-a,doc-b]   ids_supplied=1   num_deleted=2

SIEM / IDS rule (example):

Output
1
2
3
4
alert http any any -> any any (msg:"Typesense delete filter with boolean operator breakout"; \
  content:"filter_by"; http_uri; nocase; \
  content:"%7C%7C"; http_uri; \
  sid:9005941;)

Remediation

ActionDetail
PatchUpgrade to Spring AI 2.0.3 or later (the CNA range lists 2.0.0 to before 2.0.3 as affected); Enterprise Support users: 2.0.2.1, 1.1.10 or later. No patch was verified in the upstream PoC repository, so confirm the fixed version against the Spring advisory before relying on it.
WorkaroundValidate and reject document IDs containing filter metacharacters (comma, [, ], `
Config HardeningGive the application a least-privilege Typesense API key scoped to one collection with no wildcard delete permission, enforce per-document authorization in the application (not in the filter), enable delete audit logging and alert on num_deleted exceeding the requested ID count, and keep the Typesense API off untrusted networks.

References

Notes

Auto-ingested from https://github.com/daehyuh/CVE-2026-59415 on 2026-11-25. The default branch of the repository is sample; the last commit (2026-10-19, “Record CVE-2026-59415 attribution”) was used for the Last Updated field.

Review verdict: this is a genuine proof of concept of the reported primitive, not a detector or audit tool. It exercises the published 2.0.1 jar through the public delete API and proves that one delimiter-bearing ID produces the same Typesense filter as two IDs. It is deliberately limited: the Typesense client is mocked with Mockito, the backend response is stubbed (num_deleted=2), no HTTP request is sent and no document is actually deleted, so the entry is marked Status PoC rather than Weaponized. A full exploit would need a host application that forwards user-controlled IDs to delete and a reachable Typesense instance; operator/bracket-breakout payloads described in the NVD text are not demonstrated by this repository.

Version/score reconciliation: the reporter’s October 2026 write-up scored the issue 7.1 High (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L, CWE-943) and noted that only 2.0.1 was executed and that no fixed release had been verified at disclosure time. The CNA entry published on 2026-11-24 scores it 10.0 Critical (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, CWE-74) across the broader version ranges listed above; NVD status is “Awaiting Analysis” and CISA SSVC lists exploitation as “none”. The 10.0 figure is used in Metadata because it is the published CNA/NVD score.

License: the repository declares no license file. The upstream README asks that the material be kept private until coordinated disclosure completes; it is now public, and the files here are archived with attribution for authorized security research only. The Gradle wrapper JAR, gradlew/gradlew.bat scripts and build outputs were not copied (binary/generated, non-exploit files); the Java source, build files and the wrapper properties are kept so the reproducer remains auditable. Do not run this against systems or data you do not own or have written authorization to test; the delete path is destructive.