6.5medium
User profile page vulnerable to Cross Site Scripting (XSS) in flaskBlog
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
flaskBlog is a simple blog app built with Flask. Improper storage and rendering of the `/user/<user>` page allows a user's comments to execute arbitrary javascript code. The html template `user.html` contains the following code snippet to render comments made by a user: `<div class="content" tag="content">{{comment[2]|safe}}</div>`. Use of the "safe" tag causes flask to _not_ escape the rendered content. To remediate this, simply remove the `|safe` tag from the HTML above. No fix is is available and users are advised to manually edit their installation.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| DogukanUrker flaskBlog | *, up to 1.1.0 | CVE List, NVD |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
flaskBlog is a simple blog app built with Flask. Improper storage and rendering of the `/user/<user>` page allows a user's comments to execute arbitrary javascript code. The html template `user.html` contains the following code snippet to render comments made by a user: `<div class="content" tag="content">{{comment[2]|safe}}</div>`. Use of the "safe" tag causes flask to _not_ escape the rendered content. To remediate this, simply remove the `|safe` tag from the HTML above. No fix is is available and users are advised to manually edit their installation.
NVD (es)
flaskBlog es una aplicación de blog sencilla creada con Flask. El almacenamiento y la representación inadecuados de la página `/user/` permiten que los comentarios de un usuario ejecuten código javascript arbitrario. La plantilla html `user.html` contiene el siguiente fragmento de código para representar los comentarios realizados por un usuario: `{{comment[2]|safe}}` . El uso de la etiqueta "safe" hace que flask _not_ escape del contenido renderizado. Para remediar esto, simplemente elimine la etiqueta `|safe` del HTML anterior. No hay ninguna solución disponible y se recomienda a los usuarios que editen manualmente su instalación.
References
| https://github.com/DogukanUrker/flaskBlog/security/advisories/GHSA-mrcw-j96f-p6v6 | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-22414 changed 2025-06-17 | CVE Terms of Use |
| NVD | CVE-2024-22414 changed 2026-06-17 | Public domain |