CVE-2026-130082: django-tenants 3.4.8 before 4.0.1 SQL Injection via Unescaped Schema Name

Published Nov 16, 2026
·
Updated

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 searchpath and CREATE, DROP or ALTER SCHEMA statements, letting them read other tenants' data or run SQL as the application's database user.

Affected Software

1 affected component
pypi/django-tenants>=3.4.8<4.0.1

Event History

Nov 16, 2026
CVE Published
via MITRE·09:59 PM
Data Sourced
via MITRE·09:59 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker must be able to choose or influence a tenant schema name. The vulnerable code path is in the PostgreSQL backend, where that name is used in SQL statements without escaping.

2

Are deployments using the default PostgreSQL schema naming behavior affected?

The data does not identify any safe default configuration. Exposure depends on whether an untrusted party can influence the schema name used by django-tenants.

3

What impact can successful exploitation have?

Injected SQL can be executed with the application's database-user privileges. This can allow reading data belonging to other tenants or executing SQL through the application's database account.

4

What versions should be remediated?

Versions from 3.4.8 before 4.0.1 are affected. Upgrade to 4.0.1 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203