You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defense-in-depth (not currently runtime-exploitable — the values are developer-controlled, not user/document input): CassandraVectorStore interpolates keyspace / table_name directly into CQL statements without validation or quoting:
Every other SQL-backed vector store in the repo validates or escapes its identifiers. This is a consistency/hardening gap: if a keyspace/table name ever becomes config- or user-derived, it's a CQL-injection sink.
Severity
LOW — defense-in-depth / consistency; no untrusted input reaches it today.
Fix (non-breaking)
Validate keyspace/table_name against a strict identifier allowlist (^[A-Za-z_][A-Za-z0-9_]*$) at construction time, raising ValueError on anything else — matching the sibling stores. Values are data-controlled, so valid names are unaffected.
Acceptance
Regression test: a keyspace/table with a quote/semicolon/space is rejected at construction; valid identifiers accepted.
Activity
style: apply ruff format to security-hardening changes
Merge pull request #1027 from SynapseKit/security/hardening-1021-1026
fix(retrieval): validate Cassandra keyspace/table identifiers