CVE-2025-56236
C# vulnerability analysis and mitigation

Overview

FormCms version 0.5.5 contains a stored cross-site scripting (XSS) vulnerability identified as CVE-2025-56236. The vulnerability was discovered in the avatar upload feature and was publicly disclosed on August 28, 2025. The vulnerability affects FormCms installations from version 0.5.5 up to (excluding) version 0.5.7 (NVD).

Technical details

The vulnerability exists in the avatar upload feature where authenticated users can upload .html files containing malicious JavaScript code. These files are stored on the server and are accessible via a public URL. The core issue lies in the unrestricted file upload capability within the ProfileService.UploadAvatar method, which lacks proper file type validation. The vulnerability has been assigned a CVSS v3.1 base score of 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (Miggo).

Impact

When exploited, this vulnerability allows authenticated attackers to perform stored XSS attacks. If a privileged user, such as a Super Admin, accesses the malicious file either directly or through social engineering, the embedded JavaScript executes in the context of their session. This execution allows the attacker to perform unauthorized API actions on behalf of the victim, including full CRUD operations on users, roles, and other sensitive application-specific data (GitHub Issue).

Exploitability

The vulnerability requires an authenticated user account to exploit, as the attacker needs access to the avatar upload feature. The uploaded malicious files are stored at a publicly accessible location under /files/avatar/[random-id].html, and the URL can be retrieved through a separate endpoint. This makes the vulnerability relatively straightforward to exploit once authentication is obtained (GitHub Issue).

Mitigation and workarounds

The vulnerability has been patched in FormCms version 0.5.7. The fix includes implementing proper file type validation in the ProfileService.UploadAvatar method by adding an IsImage() check to prevent the upload of non-image files (NVD).

Additional resources


SourceThis report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-pfvm-w89x-94jwHIGH7.5
  • C# logoC#
  • SIPSorcery
NoYesAug 12, 2026
CVE-2026-48798HIGH7.1
  • C# logoC#
  • SSH.NET
NoYesAug 18, 2026
CVE-2026-54570MEDIUM6.9
  • C# logoC#
  • AngleSharp
NoYesAug 18, 2026
CVE-2026-73851MEDIUM6.1
  • C# logoC#
  • Microsoft.OpenApi.Kiota
NoYesAug 17, 2026
CVE-2026-48796MEDIUM5.3
  • C# logoC#
  • CefSharp.Common
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management