Spring AIのTypesense連携に脆弱性、修正版あり
Summary
Spring AIのTypesenseVectorStoreに、削除処理で意図しないドキュメントが消える脆弱性があります。外部から受け取ったIDを削除に渡すアプリは、2.0.3などの修正版への更新か、ID検証を急いでください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Spring AIのTypesenseVectorStoreに、削除処理で意図しないドキュメントが消える脆弱性があります。外部から受け取ったIDを削除に渡すアプリは、2.0.3などの修正版への更新か、ID検証を急いでください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| SpringSpring AI |
≥ 2.0.0, < 2.0.3→ 2.0.3 ≥ 1.1.0, < 1.1.10→ 1.1.10 ≥ 1.0.0, < 1.0.11→ 1.0.11 ≥ 2.0.0, < 2.0.2.1→ 2.0.2.1 |
2.0.3 1.1.10 1.0.11 2.0.2.1 |
Original description The description as published by the source.
TypesenseVectorStore is vulnerable to a document ID injection in its delete operation that can cause unintended documents to be deleted.
TypesenseVectorStore.doDelete(List) 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) backed by TypesenseVectorStore are affected.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web spring.io
- web nvd.nist.gov
- web github.com