8.7high
RELATE Vulnerable to Stored XSS via Unprivileged User Profile
- Severity
- 8.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
RELATE is a web-based courseware package. Versions prior to commit 555f0efb1c5bd7531c07cd73724d7e566a81f620 have a stored cross-site scripting vulnerability that allows any enrolled student to execute arbitrary JavaScript in an administrator's browser session, potentially leading to full admin account takeover. The `get_user()` method in `ParticipationAdmin` renders user-controlled input using `mark_safe` combined with Python's % string formatting. This bypasses Django\'s automatic HTML escaping entirely. The value returned by `get_full_name` is derived directly from the `first_name` and `last_name` fields of the User model. These fields are freely editable by any authenticated user through the profile page (`/profile/`) with no sanitization applied. When an admin views the Participation list in the Django admin panel, the unsanitized value is rendered directly into the HTML response, causing the injected script to execute in the admin's browser. Commit 555f0efb1c5bd7531c07cd73724d7e566a81f620 fixes the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| inducer relate | < 555f0efb1c5bd7531c07cd73724d7e566a81f620 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
RELATE is a web-based courseware package. Versions prior to commit 555f0efb1c5bd7531c07cd73724d7e566a81f620 have a stored cross-site scripting vulnerability that allows any enrolled student to execute arbitrary JavaScript in an administrator's browser session, potentially leading to full admin account takeover. The `get_user()` method in `ParticipationAdmin` renders user-controlled input using `mark_safe` combined with Python's % string formatting. This bypasses Django\'s automatic HTML escaping entirely. The value returned by `get_full_name` is derived directly from the `first_name` and `last_name` fields of the User model. These fields are freely editable by any authenticated user through the profile page (`/profile/`) with no sanitization applied. When an admin views the Participation list in the Django admin panel, the unsanitized value is rendered directly into the HTML response, causing the injected script to execute in the admin's browser. Commit 555f0efb1c5bd7531c07cd73724d7e566a81f620 fixes the issue.
NVD (es)
RELATE es un paquete de software educativo basado en la web. Las versiones anteriores al commit 555f0efb1c5bd7531c07cd73724d7e566a81f620 tienen una vulnerabilidad de cross-site scripting almacenado que permite a cualquier estudiante matriculado ejecutar JavaScript arbitrario en la sesión del navegador de un administrador, lo que podría llevar a la toma de control total de la cuenta de administrador. El método get_user() en ParticipationAdmin renderiza la entrada controlada por el usuario utilizando mark_safe combinado con el formato de cadena % de Python. Esto elude completamente el escape automático de HTML de Django. El valor devuelto por get_full_name se deriva directamente de los campos first_name y last_name del modelo User. Estos campos son libremente editables por cualquier usuario autenticado a través de la página de perfil (/profile/) sin ninguna sanitización aplicada. Cuando un administrador ve la lista de Participación en el panel de administración de Django, el valor no sanitizado se renderiza directamente en la respuesta HTML, haciendo que el script inyectado se ejecute en el navegador del administrador. El commit 555f0efb1c5bd7531c07cd73724d7e566a81f620 soluciona el problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42197 changed 2026-05-28 | CVE Terms of Use |
| NVD | CVE-2026-42197 changed 2026-10-26 | Public domain |