RedisChatMemoryRepository has a vulnerability involving RediSearch query injection when processing untrusted input. The issue arises because some query-building paths do not properly escape user-supplied content or metadata, allowing attackers to inject RediSearch query syntax. This can cause searches to return or interfere with chat messages outside the intended conversation scope. Applications passing end-user content into these search methods are affected.