Skip to main content
← All vulnerabilities
CVE-2026-43938GHSA-33GV-FC78-QGF5

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.0.5, 3.2.12
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • YAFNET YAFNET

    From 4.0.0-beta.1 · fixed in 4.0.5; fixed in 3.2.12

  • YAFNET.CoreNuGet

    From 4.0.0-beta01 · fixed in 4.0.5

  • YAFNET.CoreNuGet

    fixed in 3.2.12

References 1

GitHub · YAFNET/YAFNET