Security mailing lists by PureSourceCode

CVE-2026-43938

HIGH 8.1CVSS 3.1

YAFNET has Unauthenticated Stored Second-Order XSS in Admin Event Log via Reflected `User-Agent` Header

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.

Published
12 May 2026
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-116CWE-79CWE-80
Also known as
GHSA-33gv-fc78-qgf5
Sources
NVDJSONOSV GHSA-33gv-fc78-qgf5JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV NuGet YAFNET.Core >= 4.0.0-beta01, < 4.0.5 4.0.5
OSV NuGet YAFNET.Core < 3.2.12 3.2.12

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 12 May 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 5 May 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.