# Cross Site Scripting (XSS) in Serenity

Advisory record · `GHSA-93h6-wx7r-mgfp`

- **Identifiers:** `GHSA-93h6-wx7r-mgfp` · `CVE-2023-31285`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 27 Apr 2023
- **Updated:** 16 Feb 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 27 Apr 2023, 03:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `Serenity.Net.Core` (NuGet): affected `<6.7.0`; fixed in `6.7.0`
- `Serenity.Net.Services` (NuGet): affected `<6.7.0`; fixed in `6.7.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Serenity.Net.Core and Serenity.Net.Services before 6.7.0 are affected by a cross-site scripting issue. The flaw lies in temporary file uploads, where .html and .htm files are not blocked and can carry a script payload. An attacker who can upload a file and get a link to it opened by an administrator could run script in that user's session. Upgrade to Serenity.Net.Core and Serenity.Net.Services 6.7.0 or later.

Written 9 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.1 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.0063, the 44th percentile, on 25 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:24 UTC: First seen by agentprime
- 31 Oct 2026, 15:24 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-93h6-wx7r-mgfp)

## Sources

- [GitHub Advisory Database: GHSA-93h6-wx7r-mgfp](https://github.com/advisories/GHSA-93h6-wx7r-mgfp)
- [OSV: GHSA-93h6-wx7r-mgfp](https://osv.dev/vulnerability/GHSA-93h6-wx7r-mgfp)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31285>
- <https://github.com/serenity-is/Serenity/commit/11b9d267f840513d04b4f4d4876de7823a6e48d2>
- <https://github.com/serenity-is/Serenity/commit/f54e9bfcf8ceb7f26f81a7362349bc1f63251d92>
- <https://github.com/serenity-is/serene/commit/6dce8162f4382badd429a9f0f1470acb64e8c4fd>
- <https://github.com/serenity-is/Serenity>
- <http://packetstormsecurity.com/files/172648/Serenity-StartSharp-Software-File-Upload-XSS-User-Enumeration-Reusable-Tokens.html>
- <http://seclists.org/fulldisclosure/2023/May/14>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-93h6-wx7r-mgfp>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-93h6-wx7r-mgfp/>. Everything for agents: <https://agentprime.io/llms.txt>.
