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

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-04-27T00:00:00.000Z
- Modified: 2026-06-17T05:56:43.173Z
- Also known as: GHSA-93h6-wx7r-mgfp
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- Serenity.Net.Core (NuGet): before 6.7.0
- Serenity.Net.Services (NuGet): before 6.7.0
- serenity serene: before 6.7.0
- serenity startsharp: before 6.7.0

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <http://packetstormsecurity.com/files/172648/Serenity-StartSharp-Software-File-Upload-XSS-User-Enumeration-Reusable-Tokens.html> (exploit, web)
- <https://github.com/serenity-is/Serenity/commit/11b9d267f840513d04b4f4d4876de7823a6e48d2> (patch, vendor-advisory, web)
- <http://seclists.org/fulldisclosure/2023/May/14> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31285> (advisory)
- <https://github.com/serenity-is/Serenity/commit/f54e9bfcf8ceb7f26f81a7362349bc1f63251d92> (web)
- <https://github.com/serenity-is/serene/commit/6dce8162f4382badd429a9f0f1470acb64e8c4fd> (web)
- <https://github.com/serenity-is/Serenity> (package)

## Sources

- CVE List: [CVE-2023-31285](https://www.cve.org/CVERecord?id=CVE-2023-31285), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-93h6-wx7r-mgfp](https://github.com/advisories/GHSA-93h6-wx7r-mgfp), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-31285](https://nvd.nist.gov/vuln/detail/CVE-2023-31285), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31285 · Whole record: https://cve.day/CVE-2023-31285.json · Rebuilt by cve.day 2026-11-25T22:58:23.775Z
