cd /news/ai-safety/typesense-body-matches-locate-the-se… · home › topics › ai-safety › article
[ARTICLE · art-180456] src=dev.to ↗ pub= topic=ai-safety verified=true sentiment=↓ negative

Typesense body matches locate the service edge, not the Spring AI tenant filter

A security writeup details CVE-2026-59369, a filter-injection flaw in Spring AI's Typesense filter converter that lets user-controlled metadata values break out of the intended clause and add conditions to the filter_by query, potentially broadening document access in multi-tenant vector stores. A ZoomEye probe on December 2, 2026 returned zero matches for app="Typesense" but 3,055 for http.body="Typesense", showing that product fingerprinting alone cannot reliably locate affected deployments. The guidance recommends inventorying Typesense endpoints, upgrading Spring AI to fixed releases (2.0.3, 2.0.2.1, 1.1.10, or 1.0.11), adding post-retrieval authorization checks, and separating read, write, and administrative keys.

recommendation

Upgrade Spring AI to a fixed release and test the Typesense filter converter with bracket, comma, boolean, and escaped-quote metadata values, then add post-retrieval tenant authorization checks and separate read, write, and admin keys.

more in playbook: Securing agents and AI tools
by read2 min views18 publishedDec 2, 2026

CVE-2026-59369 affects Spring AI's Typesense filter converter. User-controlled metadata values can break out of the intended clause and add filter conditions to the filter_by query. In a multi-tenant vector store, that can broaden document access beyond the application's intended scope.

A count-only ZoomEye probe on December 2, 2026 returned zero for app="Typesense" and 3,055 for http.body="Typesense". Both used sub_type=all, page 1, and page size 1.

The body count points to pages and services that mention Typesense. It does not show which applications use Spring AI, which converter version is installed, or whether user input reaches SearchRequest.filterExpression. The zero app count shows that a direct product fingerprint is not reliable for every deployment.

Find Typesense endpoints in cloud inventory, Kubernetes services, and application configuration. Map each endpoint to the application that queries it and to the team that owns the data collection. Record whether the endpoint is public, internal, or reachable only through a service mesh.

Then search application code for TypesenseVectorStore, filterExpression, and delete operations. Upgrade Spring AI to a fixed release: 2.0.3, 2.0.2.1, 1.1.10, or 1.0.11 as applicable. Confirm enterprise-only fix availability for the older branches.

A reachable Typesense port is not the whole issue. The application can authenticate to the vector store correctly and still construct an unsafe query. Test with metadata values that contain brackets, commas, boolean operators, escaped quotes, and encoded strings. The fixed converter should reject or preserve them without changing the filter structure.

Add an authorization check after retrieval for documents with tenant or permission labels. Keep the tenant clause in a trusted branch that user input cannot modify. Log result counts by tenant context and alert on a sudden increase.

If the endpoint is internet-facing, restrict it to the application network and require a dedicated key. Separate read, write, and administrative keys. A key that can delete documents should not be available to a search-only service. ZoomEye gives a useful external service edge and a time-stamped count for body references. The Spring AI boundary sits inside the application query builder. Combining both views tells a response team where to look, while code and version checks decide what is actually affected.

app="Typesense": 0 matches http.body="Typesense": 3,055 matches The queries ran with sub_type=all, page 1, and page size 1 between 18:58:13Z and 18:58:17Z on 2026-12-02. Evidence: D:\autopr-data\logs\codex-generation\task-30aaad012cc54f81bedfa88043e0c922\zoomeye-evidence-final.json.

── more in #ai-safety 4 stories · sorted by recency
── more on @spring ai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/typesense-body-match…] indexed:0 read:2min 2026-12-02 · —