Skip to main content

CVE-2026-43939 — YAFNET has Stored XSS in YAFNET.Core — CVE Details

HIGH

YAFNET has Stored XSS in Forum Thread Posts/Replies that Allows Arbitrary JavaScript Execution for All Thread Viewers

Published May 5, 2026Updated May 13, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.35%). Schedule for your next planned update.

Does your project use an affected YAFNET.Core version?

Paste your packages.lock.json to check it for CVE-2026-43939 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my packages.lock.json

Summary

Description: Stored Cross-Site Scripting (XSS) occurs when user-supplied input is persisted by the application and later rendered in another user's browser without proper sanitization or contextual output encoding. When the vulnerable sink is a high-traffic surface such as a public forum thread, the payload executes in the browser of every user who visits the page, maximizing both reach and impact. Any JavaScript injected through such a sink runs under the application's origin and inherits the privileges of whichever user happens to view the affected content.

Issue Details: The thread posting and reply feature accepts user-supplied content that is stored server-side and later rendered back into the thread page without adequate HTML sanitization or contextual output encoding. Submitting a post or reply containing "><img src=x onerror=prompt(0)> causes the payload to break out of the surrounding HTML context and inject a fully attacker-controlled <img> element whose onerror handler fires automatically as soon as the broken image reference fails to load. Because posts and replies are visible to every user who visits the thread, authenticated or otherwise, the injected JavaScript executes in each viewer's browser the moment the page renders, with no additional interaction required.

Impact: An attacker with a standard forum account can execute arbitrary JavaScript in the browser of every user who loads the affected thread, including moderators and administrators. This enables session/auth-cookie theft, account takeover through same-origin state-changing requests, forced privileged actions if an administrator views the thread, credential phishing via injected login overlays, forum defacement, cryptominer or malware delivery, and mass redirection of viewers to attacker-controlled sites. Because the payload triggers automatically on page load rather than requiring hover or click interaction, a single malicious post can compromise a large number of users very quickly.

Likelihood: Exploitation requires only a registered account with permission to post or reply, which is available to every forum member by default. Once posted, the payload fires automatically for any visitor who opens the thread, requiring zero victim interaction and making the overall likelihood high.

Steps to Reproduce:

  • Log in to the forum as any low-privileged user (Attacker).
  • Navigate to any thread where posting or replying is allowed, or create a new thread.
  • In the post/reply body, submit the payload: "><img src=x onerror=prompt(0)>
  • Publish the post or reply.
  • Log in as a different user (e.g., Admin) or visit the thread in a separate browser session.
  • Open the thread page, the injected <img> fails to load and the onerror handler fires, producing a prompt(0) dialog and confirming arbitrary JavaScript execution in the viewer's session context.

Advisory Timeline

  • First published May 5, 2026 (205 days ago).
  • Last revised May 13, 2026 — 8 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update YAFNET.Core to 4.0.5 or later
dotnet add package YAFNET.Core --version 4.0.5
NuGet
Update YAFNET.Core to 3.2.12 or later
dotnet add package YAFNET.Core --version 3.2.12

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: NuGet (1).

PackageFixed In
YAFNET.Core NuGet · Affected: 4.0.0, 4.0.0-beta03, 4.0.0-beta04, 4.0.0-beta05 (+12 more)4.0.5
YAFNET.Core NuGet · Affected: All versions3.2.12

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2026-43939?
YAFNET has Stored XSS in Forum Thread Posts/Replies that Allows Arbitrary JavaScript Execution for All Thread Viewers. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.3/10).
How do I check if my project is affected by CVE-2026-43939?
CVE-2026-43939 affects YAFNET.Core. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-43939 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.3

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.35%
EPSS percentile: 21.3

This is a below-median EPSS score — only 21.3% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-8rq5-wwpp-fmj2

Related CVEs

  • CVE-2026-43938
    HIGH

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

  • CVE-2026-102529
    HIGH

    HtmlSanitizer: CSS Removal DoS

  • CVE-2026-63184
    HIGH

    Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion

  • CVE-2026-43937
    HIGH

    YAFNET: Pre-Handler Authorization Bypass on Admin Pages Enables Blind SQL Execution via `/Admin/RunSql`

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my packages.lock.json