Skip to content

Conversation

@despairblue
Copy link

Summary

Fixes SQL injection vulnerability in PostgreSQL enum name escaping by properly escaping double quotes within enum identifiers.

Changes

  • Updated buildEnumName method in PostgresQueryRunner to escape double quotes by replacing " with "" (PostgreSQL's quote escaping mechanism)

The buildEnumName method is protected and cannot be tested directly, but numerous tests throughout the codebase instrument this method, ensuring the change is validated through existing test coverage.

🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]

@despairblue despairblue requested review from ivov and tomi October 13, 2025 09:26
Copy link
Collaborator

@tomi tomi left a comment

Choose a reason for hiding this comment

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

🚀

@despairblue despairblue merged commit 9e71573 into master Oct 13, 2025
6 checks passed
@despairblue despairblue deleted the fix-drop-enum-types branch October 13, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants