CVE-2026-71238
JSON

9.1critical

DjangoCRM - Hardcoded Django SECRET_KEY Enables Session and CSRF Token Forgery

Severity
9.1critical CVSS:3.1 by TuranSec
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
TuranSec

Description

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.

Affected

Product or packageVersionsReported by
DjangoCRM django-crm0CVE List

Classification

CWE-798

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

DjangoCRM se distribuye con su SECRET_KEY de Django codificada directamente en el archivo webcrm/settings.py del repositorio, en lugar de leerse de una variable de entorno. Dado que esta clave se utiliza para la firma de sesión, la generación de tokens CSRF y los tokens de restablecimiento de contraseña, cualquiera que lea el repositorio público puede falsificar cookies de sesión válidas (incluso para la cuenta de superadministrador), falsificar tokens CSRF y falsificar tokens de restablecimiento de contraseña, logrando una toma de control total de la cuenta. El repositorio también se distribuye con DEBUG=True como valor predeterminado, lo que provoca que las páginas de error filtren credenciales de la base de datos, credenciales de correo electrónico, datos de OAuth y rutas de archivos internas.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-71238 changed 2026-08-10CVE Terms of Use
NVDCVE-2026-71238 changed 2026-10-24Public domain