CVE-2022-35587 ForkCMS XSS via `publish_on_date` parameter

Medium 4.8 Published Updated

Remote attackers can inject JavaScript via the publish_on_date parameter in the Fork library, potentially executing arbitrary code in user sessions.

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-2022-35587?

CVE-2022-35587 is a medium-severity cross-site scripting vulnerability in n/a, published on 12 Aug 2022. 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) issue in the Fork version 5.9.3 allows remote attackers to inject JavaScript via the "publish_on_date" Parameter

Weakness: CWE-79

Which versions are affected by CVE-2022-35587?

2 open source packages ship an affected version, including forkcms/forkcms. It affects 1 product.

PackageAffectedFixed in
forkcms/forkcms PackagistAll versions5.11.0
forkcms/forkcms PackagistAll versions5.11.0

Products include Fork-Cms Fork Cms.

How do I fix CVE-2022-35587?

Upgrade forkcms/forkcms to 5.11.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-2022-35587 being exploited?

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

Sources

Also known as GHSA-65wf-qm95-6mhm.

Is CVE-2022-35587 in your software?

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

Check your SBOMs for free