CVE-2026-71238 PUBLISHED

DjangoCRM: Hardcoded Django SECRET_KEY Enables Session and CSRF Token Forgery

Assigner: TuranSec
Reserved: 05.08.2026 Published: 05.08.2026 Updated: 05.08.2026

DjangoCRM ships with its Django SECRET_KEY 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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS Score: 9.1

Product Status

Vendor DjangoCRM
Product django-crm
Versions Default: unknown
  • Version 0 is affected

Credits

  • Mirdavlatov Mira'zam finder

References

Problem Types

  • CWE-798 Use of Hard-coded Credentials CWE