CVE-2026-56785 FlatPress - Stored Cross-Site Scripting via Unescaped Comment and Contact Form Fields

High 8.4 Published Updated

Attackers can inject malicious scripts via comment and contact forms in FlatPress, potentially compromising administrator accounts.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-56785?

CVE-2026-56785 is a high-severity cross-site scripting vulnerability in FlatPress, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

FlatPress 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-56785?

How do I fix CVE-2026-56785?

No fix has been published for CVE-2026-56785 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-56785 being exploited?

There is no known exploitation of CVE-2026-56785 in the wild and no public exploit code.

Sources

Also known as GHSA-gf5w-3f8w-9fm6.

Is CVE-2026-56785 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free