Skip to content

Cassandra vector store builds CQL by f-string #784

Closed

Description

@AmitoVrito

Location: src/synapsekit/retrieval/cassandra_vector.py:160-164

Problem: top_k and the vector literal are interpolated into the SELECT ... LIMIT {top_k} statement instead of bound. top_k is unvalidated; a non-int/user-controlled value is injectable.

Fix: cast/validate top_k and use bound parameters.

Severity: Low (security). Found in production-readiness audit.

Activity

  1. added
    bug
    security
    on Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions