CVE-2026-43938
HIGH 8.1CVSS 3.1YAFNET 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed 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
- https://github.com/YAFNET/YAFNET/security/advisories/GHSA-33gv-fc78-qgf5 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-43938 · ADVISORY
- https://github.com/YAFNET/YAFNET · PACKAGE
- https://github.com/YAFNET/YAFNET/releases/tag/v3.2.12 · WEB
- https://github.com/YAFNET/YAFNET/releases/tag/v4.0.5 · WEB
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)