Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify public FlatPress blog with comments enabled
-
DeliverySubmit comment with javascript: URI or HTML payload in name/url/email
-
ExploitPayload stored unescaped in flat-file backend
-
ExecutionAdmin opens comment-list panel or visitor loads post
-
PersistScript executes in victim browser context
-
ImpactSteal admin session or perform CMS actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target FlatPress site must expose either the public comment form on a blog post or the contact form, both of which are enabled by default, and the attacker must be able to submit at least one comment/contact entry (no account required). Exploitation against an administrator additionally requires that the admin subsequently views the comment list in the admin panel or that another visitor loads the affected post page. Limiting factors: sites that have disabled commenting/contact, or that require pre-moderation by a user who never previews unmoderated content, materially reduce reachability; the bug is in the leggero theme template and admin comment list, so custom themes that already escape output may be unaffected. |
| Impact | The vendor CVSS 4.0 score of 8.4 (AV:N/AC:L/PR:N/UI:P/VC:H/VI:L/SC:H) reflects an unauthenticated, network-reachable stored XSS where the victim is most likely an authenticated administrator viewing the comment list - hence the high subsequent-system confidentiality impact (admin session/cookie theft, CMS takeover via the admin panel). User interaction is passive (UI:P) because simply viewing the affected page triggers the payload. EPSS and KEV signals were not provided in the input, and there is no public exploit identified at time of analysis, so this is not currently a mass-exploitation candidate; however, the disclosed patch diff effectively functions as an exploitation roadmap. Net real-world risk is moderate-to-high for any internet-exposed FlatPress instance accepting public comments, and lower for invitation-only or comment-disabled blogs. |
| Exploit ScenarioDerived | An unauthenticated attacker submits a comment on a public FlatPress blog post, placing a payload such as a javascript: URI in the URL field or an HTML/script fragment in the name field. When an administrator later opens the admin comment-list panel - or any reader views the post's comments - the payload executes in their browser context and can exfiltrate session cookies, perform CSRF-style actions against the admin panel, or pivot to full site takeover. A public proof-of-concept write-up exists at github.com/dilipk5/flatpressd-cms-sxss. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 23, 2026
Stored cross-site scripting in FlatPress (commits prior to 10be83c) allows unauthenticated remote attackers to inject persistent HTML and JavaScript via the name, URL, and email fields of comment and contact forms. The payloads execute in any viewer's browser - including administrators reviewing comments in the admin panel - and weak URL scheme validation additionally permits javascript: and data: URI injection. No public exploit identified at time of analysis, but the patch and a third-party advisory disclose the affected sinks in detail.
RemediationAI
Upstream fix available (commit 10be83c); released patched version not independently confirmed, so update FlatPress to a build that includes commit 10be83cbaac5ce0e51250b9d57de7f257b8f34f8 or later from https://github.com/flatpressblog/flatpress. As compensating controls until the upgrade is deployed, disable public commenting and the contact form in the FlatPress admin (eliminates the injection sinks but breaks reader engagement), require moderation of every comment before it appears (reduces window of exposure for admin viewers but does not protect the moderator themselves who views unmoderated comments), or apply the template change manually by adding the |wp_specialchars:1 Smarty modifier to $name, $url, and $email in admin/panels/entry/admin.entry.commentlist.tpl and fp-interface/themes/leggero/comments.tpl and backporting the parse_url-based scheme check in comments.php and contact.php. A site-wide Content-Security-Policy that forbids inline script and javascript:/data: URI navigation will blunt payload execution but may break legitimate themes or plugins that rely on inline handlers.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FlatPress is a flat-file PHP blog engine that renders user-submitted comment metadata through Smarty templates. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): the templates admin/panels/entry/admin.entry.commentlist.tpl and fp-interface/themes/leggero/comments.tpl interpolated $name, $url, and $email directly into HTML without an output-encoding modifier, and the comments.php / contact.php sanitize_*() helpers only enforced an http(s):// prefix substring check rather than parsing the URL and validating the scheme via parse_url(). The fix adds the wp_specialchars:1 Smarty modifier at the sinks and rewrites the URL sanitizer to reject control characters, HTML-significant bytes, and any scheme other than http/https. CPE coverage (cpe:2.3:a:flatpress:flatpress:*) lists all versions as affected up to the fix commit.
Know when Flatpress gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
Network-reachable stored XSS submittable without auth (PR:N), requires a victim to view the affected page (UI:R), and the script executes in the admin's authenticated context, changing scope (S:C) with high confidentiality impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
FlatPress versions prior to commit 10be83c, contains a stored cross-site scripting vulnerability in comment and contact forms where name, URL, and email fields are rendered without proper output encoding in Smarty templates. Attackers can inject arbitrary HTML and JavaScript through these fields to execute malicious scripts in browsers of viewers including administrators, or bypass URL scheme validation to inject javascript: or data: URIs.
Executive ViewAI
FlatPress contains a stored cross-site scripting (CVSS 8.4) vulnerability allowing unauthenticated attackers to inject malicious code through public comment and contact forms, with execution occurring when administrators review submissions in the backend. This creates direct risk of administrative account compromise, customer data theft, and website defacement. All FlatPress instances prior to commit 10be83c require immediate patching.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Path Traversal in GitHub repository flatpressblog/flatpress prior to 1.3. Rated critical severity (CVSS 9.8), this vulne
PHP Remote File Inclusion in GitHub repository flatpressblog/flatpress prior to 1.3. Rated critical severity (CVSS 9.8),
A stored cross-site scripting (XSS) vulnerability exists in flatpressblog/flatpress version 1.3. Rated high severity (CV
External Control of File Name or Path in GitHub repository flatpressblog/flatpress prior to 1.3. Rated high severity (CV
FlatPress CMS version latest is vulnerable to Cross-Site Request Forgery (CSRF) attacks that allow an attacker to enable
Flatpress v1.2.1 was discovered to contain a remote code execution (RCE) vulnerability in the Upload File function. Rate
flatpress 1.3.1 is vulnerable to Cross Site Scripting (XSS) in Administration area via Manage categories. Rated medium s
A cross-site scripting (XSS) vulnerability in Flatpress v1.3 allows attackers to execute arbitrary web scripts or HTML v
A cross-site scripting (XSS) vulnerability in Flatpress v1.3 allows attackers to execute arbitrary web scripts or HTML v
Cross-site Scripting (XSS) - Reflected in GitHub repository flatpressblog/flatpress prior to 1.3. Rated medium severity
A vulnerability was found in FlatPress. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,
Flatpress v1.2.1 was discovered to contain a reflected cross-site scripting (XSS) vulnerability via the page parameter a
EUVD-2026-38634
GHSA-gf5w-3f8w-9fm6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB