CVE-2026-130082 — django-tenants
Research article
SQL Injection Vulnerability in django-tenants PostgreSQL Backend
| CVE | CVE-2026-130082 |
|---|---|
| Vendor and product | django-tenants |
| Published | November 24, 2026 04:55 UTC |
| Research cut-off | November 24, 2026 04:05 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-17); CISA KEV catalog; FIRST EPSS (2026-11-22) |
Executive summary
CVE-2026-130082 impacts django-tenants versions from 3.4.8 up to, but not including, 4.0.1 [1]. The CVSS 3.1 score is 8.8 HIGH, assigned by disclosure@vulncheck.com [1]. The reviewed sources do not confirm exploitation [2]. The recommended fix is to upgrade to version 4.0.1 [1].
Key points
- CVE-2026-130082 affects django-tenants versions 3.4.8 through 4.0.0 [1].
- The CVSS 3.1 score is 8.8 HIGH, assigned by disclosure@vulncheck.com [1].
- The reviewed sources do not confirm exploitation [2].
- The recommended fix is to upgrade to version 4.0.1 [1].
- Attackers can inject SQL via unescaped schema names, leading to data access or command execution [1].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-130082 |
| Vendor | django-tenants |
| Product | django-tenants |
| CWE | CWE-89 |
| CVSS 4.0 | 8.7 HIGH, scored by disclosure@vulncheck.com [1] |
| CVSS 3.1 | 8.8 HIGH, scored by disclosure@vulncheck.com [1] |
| Published | 2026-11-16T22:18:24 |
| Last Modified | 2026-11-17T14:17:42 |
| Record Status | Received |
Vulnerability description
A flaw in the PostgreSQL backend of django-tenants versions 3.4.8 through 4.0.0 allows attackers to inject SQL code. This occurs when tenant schema names are not properly escaped, enabling malicious input to be interpreted as SQL commands. Attackers with control over schema names can access data from other tenants or execute SQL as the application’s database user [1].
Attack surface and exploitation prerequisites
The CVSS vector indicates the vulnerability requires network access and no user interaction. Attackers need the ability to influence or select a tenant schema name to exploit this issue [1].
Impact analysis
The CVSS vector highlights a high impact on data confidentiality, integrity, and availability. Attackers could potentially access other tenants’ data or run SQL commands under the database user’s privileges [1].
Affected products and versions
| Product | Affected Version | Fixed Version |
|---|---|---|
| django-tenants | ≥ 3.4.8, < 4.0.1 | 4.0.1 |
Exploitation and threat intelligence status
CVE-2026-130082 is not included in the CISA KEV catalog as of 2026-11-24 [2]. The EPSS score estimates a 0.30% chance of exploitation within the next 30 days, with a percentile rank of 0.2339 [3].
Detection and exposure assessment
To assess exposure, verify if the installed version of django-tenants lies within the vulnerable range: versions 3.4.8 and above, but below 4.0.1 [1].
Remediation
The vulnerability is resolved in version 4.0.1 of django-tenants [1].
Remediation checklist
- Upgrade django-tenants to version 4.0.1 to resolve the vulnerability [1].
- Input validation and sanitization of tenant schema names is general defensive guidance; the sources do not describe it.
- Monitoring database activity for unusual query patterns is general defensive guidance; the sources do not describe it.
Evidence gaps
- The sources do not describe the technical background of the product.
- The sources do not explain the root cause of the vulnerability beyond the CWE.
- The sources do not describe how the flaw works in technical detail.
- The sources do not mention any exploitation scenarios or attack lifecycle.
- The sources do not provide indicators of compromise.
- The sources do not list any workarounds or compensating controls.
References
- CVE-2026-130082 record. NIST National Vulnerability Database (NVD), 2026-11-17. https://nvd.nist.gov/vuln/detail/CVE-2026-130082. Accessed 2026-11-24.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-24. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-24.
- EPSS score for CVE-2026-130082. FIRST, 2026-11-22. https://api.first.org/data/v1/epss?cve=CVE-2026-130082. Accessed 2026-11-24.
Summary
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.
Severity breakdown
High · 8.7
An attacker with a normal user account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- yes, a normal user account
- User action needed
- no
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| django-tenants | ≥ 3.4.8, < 4.0.1 | 4.0.1 |
References by type
Vendor advisories
Patches and fixed releases
- github.com/django-tenants/django-tenants/commit/46d89c0fccc820f88657e6e…
- github.com/django-tenants/django-tenants/releases/tag/v4.0.1
Other references
Affected
- django-tenants
Frequently asked questions
What is CVE-2026-130082?
CVE-2026-130082 impacts django-tenants versions from 3.4.8 up to, but not including, 4.0.1. The CVSS 3.1 score is 8.8 HIGH, assigned by disclosure@vulncheck.com. The reviewed sources do not confirm exploitation. The recommended fix is to upgrade to version 4.0.1. Weakness type: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE-89).
How severe is CVE-2026-130082?
CVE-2026-130082 has a CVSS 4.0 base score of 8.7 (high), from the CNA (vulncheck.com). An attacker with a normal user account can exploit this over the network, without any user action.
Is CVE-2026-130082 being exploited?
Not as far as is known: CVE-2026-130082 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-130082?
django-tenants ≥ 3.4.8, < 4.0.1 (fixed in 4.0.1).
How do I fix CVE-2026-130082?
Upgrade django-tenants to version 4.0.1 to resolve the vulnerability. Input validation and sanitization of tenant schema names is general defensive guidance; the sources do not describe it. Monitoring database activity for unusual query patterns is general defensive guidance; the sources do not describe it.
Timeline & sources
References
Related vulnerabilities & news
- Rucio: Unauthenticated Administrator Impersonation via SSH Challenge Tokens (CVE-2026-100397)
- Nuxt Content (@nuxt/content) Unauthenticated Denial of Service via Content Query API (CVE-2026-102650)
- CVE-2026-123813: pyLoad keeps old sessions alive after permission or password changes
- MongoDB Python Driver Out-of-Bounds Read Vulnerability
- CVE-2026-135146 — MongoDB Python Driver