CVE-2023-31285 Cross Site Scripting (XSS) in Serenity

Medium 6.1 Published Updated

Attackers can upload HTML files with XSS payloads to trick administrators into executing malicious scripts, potentially leading to account takeover.

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-31285?

CVE-2023-31285 is a medium-severity cross-site scripting vulnerability in n/a, published on 27 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

An XSS issue was discovered in Serenity Serene (and StartSharp) before 6.7.0. When users upload temporary files, some specific file endings are not allowed, but it is possible to upload .html or .htm files containing an XSS payload. The resulting link can be sent to an administrator user.

Weakness: CWE-79

Which versions are affected by CVE-2023-31285?

4 open source packages ship an affected version, including Serenity.Net.Core and Serenity.Net.Services. It affects 2 products.

PackageAffectedFixed in
Serenity.Net.Core NuGetAll versions6.7.0
Serenity.Net.Core NuGetAll versions6.7.0
Serenity.Net.Services NuGetAll versions6.7.0
Serenity.Net.Services NuGetAll versions6.7.0

Products include Serenity Serene, Serenity Startsharp.

How do I fix CVE-2023-31285?

Upgrade Serenity.Net.Core to 6.7.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-2023-31285 being exploited?

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

Sources

Also known as GHSA-93h6-wx7r-mgfp.

Is CVE-2023-31285 in your software?

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

Check your SBOMs for free