SQL Injection in Django-Tenants
CVE-2026-130082
django-tenants 3.4.8 before 4.0.1 contains an SQL injection vulnerability in its PostgreSQL backend that allows attackers to inject SQL through unescaped tenant schema names. Attackers who can choose or influence a schema name can supply quote characters that are interpolated into SET search_path and CREATE, DROP or ALTER SCHEMA statements, letting them read other tenants' data or run SQL as the application's database user.
Vulnerability class: SQL Injection
Published .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
FIRST.org has not scored this CVE yet. About EPSS.
Affected products
Weakness classification (CWE)
References
- github.com/django-tenants/django-tenants/blob/v4.0.0/django_tenants/postgresql_… (technical-description)
- github.com/django-tenants/django-tenants/blob/v4.0.0/django_tenants/postgresql_… (technical-description)
- github.com/django-tenants/django-tenants/commit/46d89c0fccc820f88657e6ec152ba85… (patch)
- github.com/django-tenants/django-tenants/releases/tag/v4.0.1 (release-notes)
- github.com/django-tenants/django-tenants/security/advisories/GHSA-693j-7v9f-x7pw (vendor-advisory)
- www.vulncheck.com/advisories/django-tenants-3.4.8-before-4.0.1-sql-injection-vi… (third-party-advisory)