Skip to content

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

HighCVSS 8.1 EPSS 0.28%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
nuget YAFNET.Core(NuGet) < 3.2.12; <= 3.2.11; = 4.0.0; = 4.0.0-beta03 +16 more 3.2.12, 4.0.5 Fixed
YAFNET = < 3.2.12; = >= 4.0.0-beta.1, < 4.0.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
nuget YAFNET.Core(NuGet) >= 4.0.0-beta01, < 4.0.5 4.0.5
nuget YAFNET.Core(NuGet) = 4.0.0 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-beta03 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-beta04 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-beta05 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-beta06 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-beta07 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-beta08 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-beta09 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-rc01 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-rc02 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-rc03 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.0-rc04 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.1 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.2 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.3 No fix listed
nuget YAFNET.Core(NuGet) = 4.0.4 No fix listed
nuget YAFNET.Core(NuGet) < 3.2.12 3.2.12
YAFNET = >= 4.0.0-beta.1, < 4.0.5 No fix listed
YAFNET = < 3.2.12 No fix listed
nuget YAFNET.Core(NuGet) >= 4.0.0-beta01, <= 4.0.4 No fix listed
nuget YAFNET.Core(NuGet) <= 3.2.11 No fix listed

References