django-tenants 3.4.8 before 4.0.1 contains an SQL injection vulnerability in its PostgreSQL backend that allows
Source GCVE Database
Not known to be exploited · CVSS 8.7 High : upgrade to 4.0.1 soon.
Data as of 17 Nov 2026, 01:49 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.7 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 8.8 |
- Patch
- Available – fixed in 4.0.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 16 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 16 Nov 2026.
What to do
Upgrade django-tenants to 4.0.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| django-tenantsdjango-tenants | Affected
| Fixed in
|
PyPIdjango-tenantspkg:pypi/django-tenantsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fixed version is available in django-tenants 4.0.1 and later. Users should upgrade to version 4.0.1 or newer to remediate this vulnerability. No other mitigation guidance is provided, so patching is the recommended action.
Description
django-tenants versions from 3.4.8 up to but not including 4.0.1 contain an SQL injection vulnerability in the PostgreSQL backend. This flaw allows attackers who can control or influence tenant schema names to inject SQL code via unescaped schema names. Exploitation can lead to unauthorized reading of other tenants' data or execution of arbitrary SQL commands as the database user.
References
- github.com/django-tenants/django-tenants/security/advisories/GHSA-693j-7v9f-x7pw (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-130082 (opens in a new tab)
- github.com/django-tenants/django-tenants/commit/46d89c0fccc820f88657e6ec152ba855072571ff (opens in a new tab)
- github.com/django-tenants/django-tenants/blob/v4.0.0/django_tenants/postgresql_backend/base.py (opens in a new tab)
- github.com/django-tenants/django-tenants/blob/v4.0.0/django_tenants/postgresql_backend/base.py (opens in a new tab)
- github.com/django-tenants/django-tenants/releases/tag/v4.0.1 (opens in a new tab)
- vulncheck.com/advisories/django-tenants-3.4.8-before-4.0.1-sql-injection-via-unescaped-schema-name (opens in a new tab)