XSS in Dogukanurker Flaskblog
CVE-2024-22414
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.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.004 (33.5th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L.
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Vendor Advisory)
Frequently asked questions
- What is CVE-2024-22414?
- CVE-2024-22414 is a medium-severity vulnerability in Dogukanurker Flaskblog, classified under Cross-site Scripting. CVSS score: 6.5/10. Published 2024-01-17.
- How severe is CVE-2024-22414?
- Medium severity. CVSS v3 base score is 6.5 out of 10.
- Is CVE-2024-22414 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.