SQL Injection Affecting sonnixgres package, versions [,0.2.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-SONNIXGRES-14171922
  • published5 Dec 2025
  • disclosed2 Dec 2025
  • creditUnknown

Introduced: 2 Dec 2025

CVE NOT AVAILABLE CWE-89  (opens in a new tab)

How to fix?

Upgrade sonnixgres to version 0.2.0 or higher.

Overview

sonnixgres is an A production-ready Python library for PostgreSQL database interactions with connection pooling, query caching, and rich console output.

Affected versions of this package are vulnerable to SQL Injection due to inadequate sanitization of SQL identifiers in utils.sanitize_sql_identifier and the lack of validation for the view_query parameter in core.create_view.

References

CVSS Base Scores

version 4.0
version 3.1