{"slug": "typesense-body-matches-locate-the-service-edge-not-the-spring-ai-tenant-filter", "title": "Typesense body matches locate the service edge, not the Spring AI tenant filter", "summary": "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.", "body_md": "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.\n\nA 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.\n\nThe 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.\n\nFind 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.\n\nThen 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.\n\nA 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.\n\nAdd 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.\n\nIf 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.\n\nZoomEye 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.\n\n`app=\"Typesense\"`: 0 matches` http.body=\"Typesense\"`: 3,055 matches\nThe 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`.", "url": "https://wpnews.pro/news/typesense-body-matches-locate-the-service-edge-not-the-spring-ai-tenant-filter", "canonical_source": "https://dev.to/sorrelthorncroft/typesense-body-matches-locate-the-service-edge-not-the-spring-ai-tenant-filter-34pn", "published_at": "2026-12-02 19:12:56+00:00", "updated_at": "2026-12-02 19:16:31.818589+00:00", "lang": "en", "topics": ["ai-safety", "ai-agents", "ai-infrastructure", "mlops"], "entities": ["Spring AI", "Typesense", "ZoomEye", "CVE-2026-59369"], "also_reported_by": [], "takeaway": "Spring AI's Typesense filter converter lets user-controlled metadata inject extra clauses into filter_by, so upgrade to 2.0.3, 2.0.2.1, 1.1.10, or 1.0.11 and test metadata values with brackets, commas, boolean operators, and escaped quotes.", "recommendation": {"advice": "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.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/typesense-body-matches-locate-the-service-edge-not-the-spring-ai-tenant-filter", "markdown": "https://wpnews.pro/news/typesense-body-matches-locate-the-service-edge-not-the-spring-ai-tenant-filter.md", "text": "https://wpnews.pro/news/typesense-body-matches-locate-the-service-edge-not-the-spring-ai-tenant-filter.txt", "jsonld": "https://wpnews.pro/news/typesense-body-matches-locate-the-service-edge-not-the-spring-ai-tenant-filter.jsonld"}}