User profile page vulnerable to Cross Site Scripting (XSS) in flaskBlog
flaskBlog is a simple blog app built with Flask. Improper storage and rendering of the `/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: `{{comment[2]|safe}} `. 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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-22414
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 08:22 UTC · Revision 1
Source evidence
User profile page vulnerable to Cross Site Scripting (XSS) in flaskBlog
core-osv · Original sourcePublished 17 Jan 2024, 20:25 UTC
flaskBlog is a simple blog app built with Flask. Improper storage and rendering of the `/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: `{{comment[2]|safe}} `. 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.
osv:CVE-2024-22414
Complete source record
{
"id": "f94c03f38b41cd3f62251b47f46fe7af29f5b3e926bdb087ebaf58ff301ef7b0",
"url": "https://osv.dev/vulnerability/CVE-2024-22414",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "User profile page vulnerable to Cross Site Scripting (XSS) in flaskBlog",
"summary": "flaskBlog is a simple blog app built with Flask. Improper storage and rendering of the `/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: `{{comment[2]|safe}} `. 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.",
"evidence": "osv:CVE-2024-22414",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-22414",
"aliases": [
"CVE-2024-22414",
"GHSA-mrcw-j96f-p6v6"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/dogukanurker/flaskblog",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "571a251045877de6f537a259f1937f4a7ca873a4"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:dogukanurker:flaskblog:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.1.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"1.1.0",
"1.0.9",
"1.0.8",
"1.0.7",
"1.0.6",
"1.0.5",
"1.0.4",
"1.0.3",
"1.0.2",
"1.0.1",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-22414.json"
}
}
],
"modified": "2026-10-28T02:30:27.265379459Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22414.json",
"https://github.com/DogukanUrker/flaskBlog/security/advisories/GHSA-mrcw-j96f-p6v6",
"https://nvd.nist.gov/vuln/detail/CVE-2024-22414"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "*"
},
{
"last_affected": "*"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22414.json"
}
},
"related_cves": [
{
"value": "CVE-2024-22414",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 493780,
"published_at": "2024-01-17T20:25:29.629+00:00"
}