Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-56785 – Stored XSS Enabling Admin Account Takeover in FlatPress

Be the first to know when new zero-days emerge:

Summary

CVE-2026-56785 is a stored cross-site scripting (XSS) vulnerability in FlatPress, a PHP-based flat-file blogging CMS, rated 8.4 (HIGH) under CVSS v4.0. The flaw exists in the comment and contact forms, where the name, URL, and email input fields are rendered without proper output encoding in Smarty templates, allowing unauthenticated remote attackers to inject and persistently store arbitrary HTML and JavaScript that executes in the browsers of any user who views the affected content — including site administrators. Successful exploitation can lead to session hijacking, credential theft, and full administrative account takeover.

Technical details

  • Root cause: The name, URL, and email fields submitted via the comment and contact forms are passed directly into Smarty template rendering without output encoding. Additionally, the ensure_https_url() function fails to reject dangerous characters or restrict URL schemes, enabling injection of javascript: and data: URIs.
  • Trigger conditions: An unauthenticated attacker submits a crafted comment or contact form entry containing a malicious HTML/JavaScript payload. The payload is stored server-side and executes in the browser of any visitor — or administrator — who subsequently views the affected page or comment list.
  • Attack vector: Publicly accessible comment and contact form endpoints over the network; no authentication or special privileges required.
  • Impact: Persistent JavaScript execution in victim browsers. CVSS 4.0 scores Confidentiality (Vulnerable System) as High and Subsequent System Confidentiality as High, reflecting the risk of administrator session compromise and downstream account takeover. The vendor’s security fix applied output encoding via the wp_specialchars filter in the affected template files and hardened ensure_https_url() to reject dangerous characters, enforce proper URL structure, and restrict accepted schemes to HTTP and HTTPS only.

Affected software

  • FlatPress — all versions prior to commit 10be83c (fix committed April 15, 2026)

Severity

  • CVSS v4.0: 8.4 (HIGH) — 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
  • CVSS v3.1: 8.2 (HIGH) — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Mitigation and recommended actions

  • Immediate: Apply the vendor-provided fix by updating to a build of FlatPress that incorporates commit 10be83c. The fix adds wp_specialchars output encoding to the comment and contact Smarty templates and hardens the URL validation logic in both comments.php and contact.php.
  • If immediate patching is not feasible: Disable or restrict public access to comment and contact form functionality at the web server or application level until the patch can be applied. Consider implementing a Web Application Firewall (WAF) rule to block submissions containing script tags or URI scheme injection patterns in the affected form fields.

IONIX Status

The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge