CVE-2024-35621 formwork Cross-site scripting vulnerability in Markdown fields

Medium 4.8 Published Updated

Attackers can execute arbitrary scripts via XSS in the Formwork Edit function, requiring an upgrade to secure the application.

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

What is CVE-2024-35621?

CVE-2024-35621 is a medium-severity cross-site scripting vulnerability in n/a, published on 28 May 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

A cross-site scripting (XSS) vulnerability in the Edit function of Formwork before 1.13.0 allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the Content field.

Weakness: CWE-79

Which versions are affected by CVE-2024-35621?

2 open source packages ship an affected version, including getformwork/formwork.

PackageAffectedFixed in
getformwork/formwork PackagistAll versions1.13.0
getformwork/formwork PackagistAll versions1.13.0

How do I fix CVE-2024-35621?

Upgrade getformwork/formwork to 1.13.0 or later.

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-2024-35621 being exploited?

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

Sources

Also known as GHSA-gx8m-f3mp-fg99.

Is CVE-2024-35621 in your software?

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

Check your SBOMs for free