sdk/python/Databases

Databases

sqlite3, psycopg2, pymongo, redis — SQL and NoSQL sinks

All 12Source: 1Sink: 8
PyHdbcli
hdbcli

Third-party Python package module — hdbcli. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

10 methods
PyIbmDb
ibm_db

Third-party Python package module — ibm_db. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

10 methods
PyLdap3
ldap3

ldap3 is a pure-Python LDAP client. Connection.search() accepts a search_filter — LDAP injection sink when the filter is built from user input without escaping. Use ldap3.utils.conv.escape_filter_chars() for safe construction.

1 sink3 methods
PyMysqlDb
MySQLdb

MySQLdb (mysqlclient) is a C-extension MySQL driver. Cursor.execute() is an SQL injection sink when the query is built without %s placeholders.

2 sinks3 methods
PyPlayhouse
playhouse

Third-party Python package module — playhouse. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

1 methods
PyPony
pony

Third-party Python package module — pony. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

10 methods
PyPsycopg2
psycopg2

psycopg2 is the canonical PostgreSQL driver for Python. Cursor.execute() and executemany() are SQL injection sinks when the query is built by string concatenation or f-strings. Use %s placeholders for safe binding.

2 sinks4 methods
PyPyMongo
pymongo

PyMongo is the official MongoDB driver for Python. Collection methods accept filter dicts; NoSQL injection occurs when filter dicts are built from user-supplied JSON that lets attackers inject $where, $regex, or operator keys.

5 sinks5 methods
PyPymysql
pymysql

PyMySQL is a pure-Python MySQL driver. Cursor.execute() accepts a raw query and parameter tuple — injection sink when the query is built from user input without the %s placeholder.

2 sinks3 methods
PyRedis
redis

redis-py is the de-facto Redis client for Python. Most commands are typed and safe. The main sinks are eval() and evalsha() which run Lua scripts — injection-sensitive when the script body is user-controlled.

1 source3 sinks5 methods
PySqlalchemy
sqlalchemy

SQLAlchemy is the most-used Python ORM. The text() wrapper and raw execute() are SQL injection sinks when the SQL is built from user input. Core and ORM query APIs with bound parameters are safe.

4 sinks4 methods
PySqlite3
sqlite3

The sqlite3 module wraps the SQLite C library. cursor.execute() and executemany() accept raw SQL strings and are injection sinks when the SQL is built from user input. Use the ? placeholder form for safe parameter binding.

3 sinks4 methods