CVE-2026-43938YAFNET
High 8.1 No auth needed
Follow: this CVE · YAFNET · YAFNET We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- —
- Auth required
- No
- Published
- May 12, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for YAFNET.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| NuGet | YAFNET.Core |
≥ 4.0.0-beta01 < 4.0.5 |
4.0.5 |
dotnet add package YAFNET.Core --version 4.0.5 |
| NuGet | YAFNET.Core |
< 3.2.12 |
3.2.12 |
dotnet add package YAFNET.Core --version 3.2.12 |
Per OSV / GitHub Advisories (GHSA-33gv-fc78-qgf5). Check the version in your lockfile before upgrading.
Affected products
- YAFNET · YAFNET
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.