CVE-2023-28851 Silverstripe Form Capture vulnerable to Stored Cross-Site Scripting

Medium 6.1 Published Updated

Attackers can inject malicious scripts via stored form submissions in Silverstripe Form Capture, potentially compromising admin sessions.

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
Available

What is CVE-2023-28851?

CVE-2023-28851 is a medium-severity cross-site scripting vulnerability in bigfork silverstripe-form-capture, published on 3 Apr 2023. 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

Silverstripe Form Capture provides a method to capture simple silverstripe forms and an admin interface for users. Starting in version 0.2.0 and prior to versions 1.0.2, 1.1.0, 2.2.5, and 3.1.1, improper escaping when presenting stored form submissions allowed for an attacker to perform a Cross-Site Scripting attack. The vulnerability was initially patched in version 1.0.2, and version 1.1.0 includes this patch. The bug was then accidentally re-introduced during a merge error, and has been re-patched in versions 2.2.5 and 3.1.1. There are no known workarounds for this vulnerability.

Weakness: CWE-80, CWE-79

Which versions are affected by CVE-2023-28851?

8 open source packages ship an affected version, including bigfork/silverstripe-form-capture and andrewhaine/silverstripe-form-capture. It affects 1 product.

PackageAffectedFixed in
bigfork/silverstripe-form-capture PackagistFrom 3.0.03.1.1
bigfork/silverstripe-form-capture PackagistFrom 3.0.03.1.1
andrewhaine/silverstripe-form-capture PackagistFrom 0.2.01.0.2
andrewhaine/silverstripe-form-capture PackagistFrom 0.2.01.0.2
andrewhaine/silverstripe-form-capture PackagistFrom 1.0.01.0.2
andrewhaine/silverstripe-form-capture PackagistFrom 1.0.01.0.2
2 more packages
andrewhaine/silverstripe-form-capture PackagistFrom 2.0.02.2.5
andrewhaine/silverstripe-form-capture PackagistFrom 2.0.02.2.5

Products include Bigfork Silverstripe Form Capture.

How do I fix CVE-2023-28851?

Upgrade bigfork/silverstripe-form-capture to 3.1.1 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-2023-28851 being exploited?

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

Sources

Also known as GHSA-38h6-gmr2-j4wx.

Is CVE-2023-28851 in your software?

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

Check your SBOMs for free