Skip to content
CVE Alert: CVE-2026-130082 – django-tenants – django

CVE Alert: CVE-2026-130082 – django-tenants – django

Redpacketsecurity •admin • November 17, 2026

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.

**Risk verdict:** Treat this as a high-priority remediation for exposed multi-tenant applications; no KEV, SSVC, PoC or EPSS status was supplied, so active exploitation cannot be confirmed.

**Why this matters:** Successful exploitation could undermine tenant isolation, exposing customer data or enabling changes and disruption through the application’s database account. Attackers could target one tenant to reach data belonging to others, or damage the service; the practical impact depends partly on database permissions.

**Most likely attack path:** A network-reachable attacker needs low-level privileges and a way to choose or influence a tenant schema name; no user interaction is required, and the attack is described as low complexity. The assessed scope is unchanged, but database access may still affect multiple tenants within the application.

**Who is most exposed:** Django services using PostgreSQL and schema-per-tenant isolation are most at risk, particularly where users, APIs or integrations can supply tenant identifiers or schema names.

Review application and database logs for malformed schema names, quotes, or unusual SQL syntax.

Alert on unexpected `search_path` changes and schema creation, alteration or deletion.

Investigate database activity inconsistent with normal tenant access or application roles.

Check for unexpected cross-tenant reads and changes.

Mitigation and prioritisation:

Identify affected deployments and upgrade promptly to the vendor-fixed release.

If KEV is true or EPSS is at least 0.5, **treat as priority 1**; obtain these missing indicators to refine urgency.

Until patched, strictly validate schema names against an allowlist and prevent user-controlled SQL identifiers.

Restrict database-role permissions and review tenant isolation after remediation.

Test the upgrade and any interim controls in staging, then deploy through change management without delaying urgent risk reduction.

A considerable amount of time and effort goes into maintaining this website, creating backend automation and creating new features and content for you to make actionable intelligence decisions. Everyone that supports the site helps enable new functionality.

If you like the site, please support us on Patreon or Buy Me A Coffee using the buttons below.

Extracted Entities

Attack Types (1)

CWE Weaknesses (1)

Platforms (2)