Stored XSS in flatpressblog/flatpress
A stored cross-site scripting (XSS) vulnerability exists in flatpressblog/flatpress version 1.3. When a user uploads a file with a `.xsig` extension and directly accesses this file, the server responds with a Content-type of application/octet-stream, leading to the file being processed as an HTML file. This allows an attacker to execute arbitrary JavaScript code, which can be used to steal user cookies, perform HTTP requests, and access content of the same origin.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-4023
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 19:30 UTC · Revision 1
Source evidence
A stored cross-site scripting (XSS) vulnerability exists in flatpressblog/flatpress version 1.3. When a user uploads a file with a `.xsig` extension and directly accesses this file, the server responds with a Content-type of application/octet-stream, leading to the file being processed as an HTML file. This allows an attacker to execute arbitrary JavaScript code, which can be used to steal user cookies, perform HTTP requests, and access content of the same origin.
osv:CVE-2024-4023
Complete source record
{
"id": "7fca518f9764d1c1d656dfa0cffc27a8425fa09009f5024c078804136b72d4d7",
"url": "https://osv.dev/vulnerability/CVE-2024-4023",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Stored XSS in flatpressblog/flatpress",
"summary": "A stored cross-site scripting (XSS) vulnerability exists in flatpressblog/flatpress version 1.3. When a user uploads a file with a `.xsig` extension and directly accesses this file, the server responds with a Content-type of application/octet-stream, leading to the file being processed as an HTML file. This allows an attacker to execute arbitrary JavaScript code, which can be used to steal user cookies, perform HTTP requests, and access content of the same origin.",
"evidence": "osv:CVE-2024-4023",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-4023",
"aliases": [
"CVE-2024-4023"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/flatpressblog/flatpress",
"type": "GIT",
"events": [
{
"introduced": "32771f9457f48d768747d41f7fffdcc66718465e"
},
{
"fixed": "3c9cc69364a45fd3f92d4bd606344b5dd1205d6a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:flatpress:flatpress:1.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.3"
},
{
"last_affected": "1.3"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "3c9cc69364a45fd3f92d4bd606344b5dd1205d6a"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-4023.json"
}
}
],
"modified": "2026-10-28T02:30:47.920347910Z",
"provider": "osv",
"references": [
"https://huntr.com/bounties/ed803c13-0858-4c22-93ba-bf2384ab1e9d",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4023.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-4023",
"https://github.com/flatpressblog/flatpress/commit/3c9cc69364a45fd3f92d4bd606344b5dd1205d6a"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "@huntr_ai",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4023.json"
}
},
"related_cves": [
{
"value": "CVE-2024-4023",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 515969,
"published_at": "2025-03-20T10:09:54.666+00:00"
}