NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
.NET
.NET NuGet
Not in CISA KEV
MEDIUM severity

CVE-2023-31285 — Serenity.Net.Core

MEDIUMFix: serenity-is/Serenity@11b9d26

CVE-2023-31285 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in Serenity.Net.Core. A fix is available for Serenity.Net.Core — see the affected versions and patch details below.

Cross Site Scripting (XSS) in Serenity

Also known asGHSA-93h6-wx7r-mgfp
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed
Exploitation data as of Nov 10, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2023-31285.

EPSS Exploitation Probability

via FIRST.org ↗
0.8%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs56th percentile — riskier than 56% of all scored CVEsHighest risk
0.18%0.59%0.99%1.40%0.9%0.8%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

2 pkgs affected
.NETSerenity.Net.Core.NETSerenity.Net.Services

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
.NETNuGetSerenity.Net.Coreall versions6.7.0dotnet add package Serenity.Net.Core --version 6.7.0
.NETNuGetSerenity.Net.Servicesall versions6.7.0dotnet add package Serenity.Net.Services --version 6.7.0

Affected Products

2 products · 2 configurations
Application
sereneserenity
< 6.7.0
range
Application
startsharpserenity
< 6.7.0
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for Serenity.Net.Core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update Serenity.Net.Core to 6.7.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2023-31285 is resolved across your whole dependency graph.

  3. Workarounds

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2023-31285 in your dependencies?

Find it across NuGet, including transitive dependencies.

CVE-2023-31285: Serenity.Net.Core XSS — Fixed in 6.7.0