CVE-2026-59415

TypesenseVectorStore doDelete filter injection via document ID allows unintended document deletion

Published Nov 24, 2026 CVSS 3.1 · 10 Critical EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The TypesenseVectorStore delete operation concatenates caller‑supplied document IDs directly into a Typesense filter_by expression using raw string concatenation. Because the filter grammar accepts syntactic characters such as commas, brackets, and logical operators without escaping, an attacker who supplies a specially crafted ID can break out of the intended list literal and inject arbitrary filter clauses. This allows deletion of documents beyond those explicitly requested, potentially driving bulk data loss.

Affected Systems

Spring AI’s TypesenseVectorStore component, which uses the Typesense search engine to implement vector storage. No specific version information is available; any deployment that routes external or user‑controlled document IDs to the VectorStore.delete(List<String>) API is susceptible.

Risk and Exploitability

The CVSS score of 10 highlights the high severity of this flaw. Unlike many injection bugs, the attack does not require elevated privileges; an attacker with the ability to invoke the delete API using arbitrary IDs can directly delete arbitrary documents. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Because the flaw relies on malicious input rather than a configuration error, the risk remains high until the component is updated or hardened. Immediate mitigation is required to prevent accidental or malicious bulk deletions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Validate or sanitize all document IDs before passing them to the delete API, ensuring that only allowed characters (e.g., alphanumerics) are accepted.
  • Apply the latest patch or upgrade the Spring AI TypesenseVectorStore component once a vendor fix is released.
  • Implement a temporary whitelist or escape mechanism to strip or reject syntactic characters such as commas, brackets, or logical operators in the ID list to mitigate injection.

Generated by OpenCVE AI on November 24, 2026 at 11:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Description 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.
Title TypesenseVectorStore doDelete filter injection via document ID allows unintended document deletion
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}

Subscriptions

No data.

Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Nov 24, 2026, 10:30 AM
Reserved
Jul 4, 2026, 6:16 PM
Status
Received
Published
Nov 24, 2026, 11:17 AM
Modified
Nov 24, 2026, 11:17 AM