Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Python

CVE-2026-130082 — django-tenants

High · CVSS 8.7EPSS 0.5% First seen November 16, 2026
PythonWebDatabasesVulnerabilitiesLaw enforcement

Research article

SQL Injection Vulnerability in django-tenants PostgreSQL Backend

CVECVE-2026-130082
Vendor and productdjango-tenants
PublishedNovember 24, 2026 04:55 UTC
Research cut-offNovember 24, 2026 04:05 UTC
Sources reviewed3: 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

FieldValue
CVE IDCVE-2026-130082
Vendordjango-tenants
Productdjango-tenants
CWECWE-89
CVSS 4.08.7 HIGH, scored by disclosure@vulncheck.com [1]
CVSS 3.18.8 HIGH, scored by disclosure@vulncheck.com [1]
Published2026-11-16T22:18:24
Last Modified2026-11-17T14:17:42
Record StatusReceived

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

ProductAffected VersionFixed Version
django-tenants≥ 3.4.8, < 4.0.14.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

  1. Upgrade django-tenants to version 4.0.1 to resolve the vulnerability [1].
  2. Input validation and sanitization of tenant schema names is general defensive guidance; the sources do not describe it.
  3. 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

  1. 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. CVE identification, vulnerability description, CVSS scores, affected versions, and remediation.
  2. 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. Exploitation status and KEV listing status.
  3. 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. EPSS score and threat intelligence status.

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 8.7 CVSS 4.0 base score from the CNA (vulncheck.com)

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

Vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 8.8 from the CNA (vulncheck.com): CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Affected and fixed versions

ProductAffected versionsFixed in
django-tenants≥ 3.4.8, < 4.0.14.0.1

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain).

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