CVE-2026-43938

HIGH

YAF.NET: Unauthenticated Stored Second-Order XSS in Admin Event Log via Reflected `User-Agent` Header

Title source: cna
STIX 2.1

Description

YetAnotherForum.NET (YAF.NET) is a C# ASP.NET forum. Prior to 4.0.5 and 3.2.12, the application's database logger (YAFNET.Core/Logger/DbLogger.cs) captures the incoming request's User-Agent header into a JObject, serializes it with JsonConvert, and stores the result in the EventLog.Description column whenever an event (e.g., an unhandled exception) is logged. The admin event-log page (YetAnotherForum.NET/Pages/Admin/EventLog.cshtml.cs) later deserializes that JSON in FormatStackTrace() and interpolates the UserAgent value directly into an HTML string with no encoding, and the Razor view EventLog.cshtml emits the result through @Html.Raw. This vulnerability is fixed in 4.0.5 and 3.2.12.

References (1)

Core 1
Core References

Scores

CVSS v3 8.1
EPSS 0.0001
EPSS Percentile 2.1%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-116 CWE-79 CWE-80
Status published
Products (4)
nuget/YAFNET.Core 0 - 3.2.12NuGet
nuget/YAFNET.Core 4.0.0-beta01 - 4.0.5NuGet
YAFNET/YAFNET < 3.2.12
YAFNET/YAFNET >= 4.0.0-beta.1, < 4.0.5
Published May 12, 2026
Tracked Since May 12, 2026