Skip to content

fix: Add table name whitelist to prevent SQL injection in project del…#162

Merged
prabinoid merged 1 commit intonaxa-develop-latestfrom
pr-7218
Apr 7, 2026
Merged

fix: Add table name whitelist to prevent SQL injection in project del…#162
prabinoid merged 1 commit intonaxa-develop-latestfrom
pr-7218

Conversation

@prabinoid
Copy link
Copy Markdown

No description provided.

…etion

The DELETE query loop in Project.delete() interpolated table names
directly into an f-string. Added an explicit whitelist with a
validation check before each query to prevent SQL injection if
table names ever become user-controlled. Flagged by Bandit (B608)
and Semgrep.
@prabinoid prabinoid merged commit 315d715 into naxa-develop-latest Apr 7, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants