Skip to content

Escape dict keys to prevent SQL injection (CVE-2025-65896)#141

Open
chredeur wants to merge 1 commit intolong2ice:devfrom
pastanetwork:dev
Open

Escape dict keys to prevent SQL injection (CVE-2025-65896)#141
chredeur wants to merge 1 commit intolong2ice:devfrom
pastanetwork:dev

Conversation

@chredeur
Copy link
Copy Markdown

Summary

Fix SQL injection vulnerability (CVE-2025-65896) where dict keys were not escaped in escape_dict(), allowing attackers to inject arbitrary SQL via crafted dict keys.

Changes

  • Escape dict keys using escape_string() in converters.pyx
  • Add unit test for dict key escaping
  • Update conftest to allow running unit tests without MySQL

References

…for it and update conftest to allow unit tests without MySQL
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.

1 participant