SecurityContext

CVE-2026-43938: YetAnotherForum.NET - Stored XSS

  • Cve: CVE-2026-43938
  • Name: YetAnotherForum.NET - Stored XSS
  • 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.
  • Impact: Attackers can execute arbitrary scripts in the admin interface, potentially leading to session hijacking or further administrative compromise.
  • Remediation: Update to versions 4.0.5 or 3.2.12 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs admin to view the event log page
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Epss score: 0.00282
  • Epss percentile: 0.21042
  • Assignee: [email protected]
  • Published at: 2026-05-12T15:16:15Z
  • Age in days: 196
  • Modified at: 2026-06-17T10:50:05Z
  • References total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-43938
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://github.com/YAFNET/YAFNET/security/advisories/GHSA-33gv-fc78-qgf5nvd

Projects

RepositoryLink kindsIndexedUrl
YAFNET/YAFNETpackage, releases, security_advisoryyes/v1/repositories/YAFNET/YAFNET

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts