Description
DjangoCRM's toggle_default_sorting view is the only route in common/urls.py that is not wrapped in login_required or staff_member_required, and it redirects to a caller-supplied next_url GET parameter after only checking secure_url(next_url), which merely verifies the target host matches the current site's domain (blocking only cross-domain redirects) while allowing any same-site path with no authentication required to reach the view. This enables unauthenticated phishing redirects and referrer-based token leakage via redirect chains.
Published: 2026-08-05
Score: 4.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

DjangoCRM’s toggle_default_sorting view is exposed without authentication and redirects to a caller‑supplied next_url after only verifying that the host matches the current site. This open redirect, recognized as CWE‑601, permits an attacker to manipulate the redirect destination, enabling phishing attacks and the possibility of leaking sensitive tokens through referrer chains. The impact is limited to confidentiality and integrity of users’ session data rather than direct code execution or denial of service.

Affected Systems

Any deployment of the DjangoCRM django‑crm app that includes the unprotected toggle_default_sorting route, irrespective of version, is vulnerable. No specific version information is supplied, so the risk applies broadly to installed instances.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate severity; the EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. An attacker can trigger the redirect by simply visiting the route with a crafted next_url parameter, making exploitation trivial without authentication or elevated privileges. The primary attack vector is a network request to the vulnerable endpoint, which may happen through link clicking or malicious code in web pages. Given the lack of mitigation on the server side, the risk of successful phishing or token leakage is significant in environments where the site is publicly reachable.

Generated by OpenCVE AI on August 5, 2026 at 12:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest DjangoCRM patch that secures the toggle_default_sorting view or removes the open redirect feature.
  • Add authentication checks (e.g., login_required or staff_member_required) to the toggle_default_sorting endpoint to ensure only authorized users can trigger the redirect.
  • Implement stricter validation of the next_url parameter so that only a defined whitelist of internal paths is allowed, preventing accidental redirect loops and token leakage.

Generated by OpenCVE AI on August 5, 2026 at 12:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Wed, 05 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 05 Aug 2026 13:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}


Wed, 05 Aug 2026 11:15:00 +0000

Type Values Removed Values Added
Description DjangoCRM's toggle_default_sorting view is the only route in common/urls.py that is not wrapped in login_required or staff_member_required, and it redirects to a caller-supplied next_url GET parameter after only checking secure_url(next_url), which merely verifies the target host matches the current site's domain (blocking only cross-domain redirects) while allowing any same-site path with no authentication required to reach the view. This enables unauthenticated phishing redirects and referrer-based token leakage via redirect chains.
Title DjangoCRM: Unauthenticated Open Redirect via toggle_default_sorting next_url Parameter
Weaknesses CWE-601
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-05T12:57:46.901Z

Reserved: 2026-08-05T10:53:53.175Z

Link: CVE-2026-71240

cve-icon Vulnrichment

Updated: 2026-08-05T12:57:38.175Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T12:30:12Z

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')