Skip to content

fix: Fix vulerability by using query parameters instead of string formatting - #159

Open
dishaprakash wants to merge 8 commits into
mainfrom
fix-vul
Open

fix: Fix vulerability by using query parameters instead of string formatting#159
dishaprakash wants to merge 8 commits into
mainfrom
fix-vul

Conversation

@dishaprakash

@dishaprakash dishaprakash commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This PR patches critical SQL injection vulnerabilities within the vector store implementations. Previously, various methods constructed SQL statements using raw Python string interpolation. This PR restructures these queries to use proper parameterized execution bindings

Similar to googleapis/llama-index-alloydb-pg-python#233

@dishaprakash
dishaprakash requested review from a team as code owners July 21, 2026 14:24
@product-auto-label product-auto-label Bot added the api: cloudsql-mysql Issues related to the googleapis/langchain-google-cloud-sql-mysql-python API. label Jul 21, 2026
Comment thread pyproject.toml Outdated

[[tool.mypy.overrides]]
module="google.auth.*"
module = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this PR changes import modules of mypy, I guess some change to .github/workflows/lint.yml is needed, you can manually run mypy to see what went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: cloudsql-mysql Issues related to the googleapis/langchain-google-cloud-sql-mysql-python API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants