All vulnerabilities

PyPI

CVE-2026-130082

django-tenants 3.4.8 before 4.0.1 SQL Injection via Unescaped Schema Name

Severity
High 8.7
Published
16 Nov 2026
Last changed
17 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
4.0.1
Exploit chance
0.3% in the next 30 daysHigher than 23% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
SQL injection (CWE-89)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS 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
Sources
CVE Program

Description

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.

From the CVE Program.

Affected software

SoftwareAffected versions
django-tenantsPyPI · osv:PyPI:django-tenants
  • From 3.4.8 before 4.0.1

About django-tenants

Weekly downloads (PyPI)
304,618PyPI Stats, 23 Nov 2026

This is the only vulnerability in django-tenants in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-130082