Read the docs

SQL injection in django-tenants via unescaped schema names

Priority MEDIUM 53CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.

Summary

django-tenants from 3.4.8 before 4.0.1 contains an SQL injection flaw in its PostgreSQL backend, where tenant schema names are not escaped. An attacker who can choose or influence a schema name can insert quote characters that are interpolated into SET search_path and CREATE, DROP or ALTER SCHEMA statements, which allows reading other tenants' data or running SQL as the application's database user. The flaw is tracked as CWE-89 and is rated with a CVSS 4.0 vector that requires low privileges on the network.

Written with Claude Haiku 5.5 from the sources below · 2026-11-17

Description from the CNA

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.

Why it matters now

Fix Fixed django-tenants (django-tenants): 4.0.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
django-tenantsdjango-tenants3.4.8 to before 4.0.14.0.1Patch availableCNA
  • django-tenants Vendordjango-tenants Affected 3.4.8 to before 4.0.1 Fixed in 4.0.1 Patch available CNA

Remediation

django-tenants should be updated to version 4.0.1, which fixes the flaw in the affected range from 3.4.8 before 4.0.1.

Written with Claude Haiku 5.5 from the sources below · 2026-11-17

  • Fix · CNA django-tenants (django-tenants) Fixed in 4.0.1

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-130082
  2. 2026-11-17 Alias added: GHSA-pg64-4qv2-75g5

References

Sources