{"id":"CVE-2026-43938","published":"2026-05-12T13:57:56Z","modified":"2026-05-12T15:39:46Z","title":"YAF.NET: Unauthenticated Stored Second-Order XSS in Admin Event Log via Reflected `User-Agent` Header","vendor":"YAFNET","product":"YAFNET","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00282,"percentile":0.2126,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/YAFNET/YAFNET/security/advisories/GHSA-33gv-fc78-qgf5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":4.25},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"yafnet","affectedVersions":[{"vendor":"YAFNET","product":"YAFNET","versions":[">= 4.0.0-beta.1, < 4.0.5","< 3.2.12"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-12T15:39:17.598324Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"YAFNET.Core","vulnerableRanges":[">=4.0.0-beta01, <4.0.5","<3.2.12"],"patched":["4.0.5","3.2.12"],"from":["GHSA-33gv-fc78-qgf5"],"provenance":"source"}],"summary":{"text":"YAF.NET (YAFNET product, prior to 4.0.5 and 3.2.12) has a stored cross-site scripting flaw in the admin event log page: the User-Agent header captured by the database logger is written into the event log and later rendered unencoded via @Html.Raw. An unauthenticated remote attacker can exploit it by sending a crafted User-Agent header that triggers a logged event, then getting an administrator to view the event log page, which requires user interaction by that administrator.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:35Z"},"euvd":{"id":"EUVD-2026-29480","exploited":false,"provenance":"source"}}