CVE-2026-71238: DjangoCRM: Hardcoded Django SECRET_KEY Enables Session and CSRF Token Forgery

Published Aug 5, 2026
·
Updated

DjangoCRM ships with its Django SECRETKEY hardcoded directly in the committed webcrm/settings.py rather than read from an environment variable. Since this key is used for session signing, CSRF token generation, and password reset tokens, anyone who reads the public repository can forge valid session cookies (including for the superadmin account), forge CSRF tokens, and forge password reset tokens, achieving full account takeover. The repository also ships with DEBUG=True as the default, causing error pages to leak database credentials, email credentials, OAuth data, and internal file paths.

Affected Software

1 affected component
DjangoCRM

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Remove the hardcoded Django SECRET_KEY from committed webcrm/settings.py and configure Django to read SECRET_KEY from an environment variable instead, then restart the application.

    DjangoCRM (webcrm/settings.py) SECRET_KEY = (remove hardcoded value; use a securely generated environment variable)
  2. Configuration

    Change the default DEBUG=True to DEBUG=False to prevent error pages from leaking database credentials, email credentials, OAuth data, and internal file paths.

    DjangoCRM (Django settings) DEBUG = False
  3. Operational

    After updating SECRET_KEY handling, rotate any exposed secrets (e.g., any session/CSRF/password-reset tokens that could have been forged) and ensure the new SECRET_KEY is in use.

Event History

Aug 5, 2026
CVE Published
via MITRE·10:56 AM
Data Sourced
via MITRE·10:56 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-71238?

CVE-2026-71238 has a critical severity score of 9.1.

2

How do I fix CVE-2026-71238?

To fix CVE-2026-71238, remove the hardcoded SECRET_KEY from webcrm/settings.py and use an environment variable to set the key.

3

What impact does CVE-2026-71238 have?

CVE-2026-71238 allows attackers to forge valid session tokens and CSRF tokens, compromising user sessions and security.

4

Is CVE-2026-71238 exploitable?

Yes, CVE-2026-71238 is exploitable as it exposes the hardcoded SECRET_KEY to anyone with access to the public repository.

5

Which software is affected by CVE-2026-71238?

CVE-2026-71238 affects DjangoCRM due to the hardcoded SECRET_KEY in its settings.

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