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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T20:31:36.000Z
- Modified: 2026-06-17T10:50:05.700Z
- Also known as: GHSA-33gv-fc78-qgf5
- Weaknesses: CWE-79, CWE-80, CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- YAFNET YAFNET: >= 4.0.0-beta.1, < 4.0.5; < 3.2.12
- YAFNET.Core (NuGet): from 4.0.0-beta01 before 4.0.5; before 3.2.12

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/YAFNET/YAFNET/security/advisories/GHSA-33gv-fc78-qgf5> (exploit, 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)

## Sources

- CVE List: [CVE-2026-43938](https://www.cve.org/CVERecord?id=CVE-2026-43938), CVE Terms of Use, modified 2026-05-12
- GitHub Advisory Database: [GHSA-33gv-fc78-qgf5](https://github.com/advisories/GHSA-33gv-fc78-qgf5), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2026-43938](https://nvd.nist.gov/vuln/detail/CVE-2026-43938), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-43938 · Whole record: https://cve.day/CVE-2026-43938.json · Rebuilt by cve.day 2026-11-25T22:59:21.358Z
