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.

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 the application to read SECRET_KEY from an environment variable instead.

    DjangoCRM (Django app) - webcrm/settings.py SECRET_KEY = REPLACE hardcoded value with environment variable (load SECRET_KEY from env)
  2. Operational

    After changing SECRET_KEY, invalidate any existing sessions and rotate any tokens that may have been forged/issued previously (e.g., require users to log in again; ensure password reset tokens cannot be reused).

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

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