YAFNET CVE-2026-43939
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister forum account
-
DeliveryPost malicious XSS payload in thread
-
ExploitVictim views thread
-
ExecutionJavaScript executes in victim browser
-
PersistSteal session cookies
-
ImpactPerform privileged actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must possess a registered forum account with permission to create posts or replies, which is the default configuration for standard forum members in YAFNET deployments. The vulnerable thread posting/reply feature must be accessible to the attacker's account role (typically any authenticated user). Exploitation does NOT require administrator privileges, non-default forum settings, or special server configurations-it works against default YAFNET installations. Victim interaction is limited to simply visiting the URL of the thread containing the malicious post; no clicking, hovering, or other deliberate interaction with the payload is necessary. The stored nature of the XSS means the payload persists server-side and executes repeatedly for every viewer, distinguishing it from reflected XSS which requires per-victim social engineering. Forums with open public registration face the lowest barrier to exploitation, while private or invite-only forums require the attacker to first gain legitimate membership, providing a modest access-control hurdle. |
| Impact | Real-world risk is elevated despite the moderate 7.3 CVSS score. The CVSS vector (AV:N/AC:L/PR:L/UI:R) indicates network-exploitable, low-complexity attacks requiring low privileges (any registered forum user) and user interaction (viewing the malicious thread). However, the 'user interaction' component is passive-victims simply visit a thread URL-rather than requiring deliberate action like clicking a malicious link, which significantly lowers the barrier. EPSS data is not provided, and CISA KEV status is absent, suggesting no confirmed widespread or targeted exploitation campaigns at time of analysis. That said, the attack surface is broad: any public or semi-public YAFNET forum with open registration exposes all users, including privileged administrators, to automatic payload execution. SSVC factors favor prioritization: exploitation is automatable once the malicious post exists, technical impact is high (arbitrary JavaScript in victim context enables session hijacking and privileged action forcing), and the vulnerability is in a web-facing forum component designed for untrusted user input. The primary mitigating factor is the PR:L requirement (attacker must register an account), which may be trivial on public forums but provides some barrier on private/invite-only instances. Publicly documented proof-of-concept in the GitHub advisory (GHSA-8rq5-wwpp-fmj2) lowers exploitation friction. Organizations running YAFNET should treat this as a high-priority patch cycle, particularly if forums allow public registration or have been targeted by spam/abuse campaigns in the past. |
| Exploit ScenarioDerived | An attacker registers a free account on a public YAFNET forum and navigates to a high-traffic discussion thread. They submit a reply containing the payload |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 05, 2026
Stored Cross-Site Scripting in YAFNET forum software allows authenticated attackers to inject arbitrary JavaScript into thread posts and replies that automatically executes in the browser of every user who views the affected thread. Affects YAFNET.Core versions ≤3.2.11 and 4.0.0-beta01 through 4.0.4. The payload triggers on page load without victim interaction, enabling session hijacking, credential theft, and account takeover of all viewers including administrators. Vendor-released patches are available (v3.2.12 and v4.0.5). No active exploitation confirmed by CISA KEV, though the attack requires only a standard forum account and proof-of-concept payload is documented in the GitHub advisory.
RemediationAI
Upgrade YAFNET.Core to a patched version immediately: version 3.2.12 for the 3.x branch (https://github.com/YAFNET/YAFNET/releases/tag/v3.2.12) or version 4.0.5 for the 4.x branch (https://github.com/YAFNET/YAFNET/releases/tag/v4.0.5). Both releases are confirmed fixes per the GitHub advisory at https://github.com/YAFNET/YAFNET/security/advisories/GHSA-8rq5-wwpp-fmj2. If immediate patching is not feasible, implement compensating controls: restrict forum posting privileges to a vetted whitelist of trusted users via role-based access controls, which trades forum openness for security by blocking untrusted actors from creating malicious posts. Deploy a web application firewall (WAF) with rules to detect and block common XSS payloads in POST request bodies targeting thread/reply endpoints; note this is bypassable via obfuscation and provides defense-in-depth rather than a complete fix. Audit existing thread content for suspicious HTML/JavaScript patterns and quarantine or delete malicious posts; this is labor-intensive and does not prevent future exploitation. Enable Content Security Policy (CSP) headers with 'unsafe-inline' removed from script-src directives to block inline event handlers, though this may break legitimate forum functionality if the application relies on inline scripts. The only robust long-term solution is applying the vendor patch, as workarounds either significantly degrade forum usability or provide incomplete protection against a well-documented attack vector.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in nuget
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
YAFNET is an open-source ASP.NET forum platform distributed as the YAFNET.Core NuGet package. This vulnerability stems from CWE-79 (Improper Neutralization of Input During Web Page Generation) in the forum's thread posting and reply mechanism. User-supplied content submitted through post/reply forms is persisted to the server-side database and subsequently rendered into thread view pages without adequate HTML sanitization or contextual output encoding. The application fails to apply defense-in-depth encoding when inserting stored user content into HTML contexts, allowing attackers to break out of the intended context using simple HTML injection vectors such as attribute-breaking double-quote sequences followed by event-handler-equipped elements. The documented payload "><img src=x onerror=prompt(0)> leverages automatic event firing (onerror on image load failure) rather than requiring hover or click interaction, which is characteristic of high-impact stored XSS in content management systems. CPE identifiers point to pkg:nuget/yafnet.core as the affected package namespace.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
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 theonerrorhandler fires, producing aprompt(0)dialog and confirming arbitrary JavaScript execution in the viewer's session context.
<img width="1127" height="745" alt="image" src="https://github.com/user-attachments/assets/b93442ea-1d8e-4079-ab4f-e52d41d110f3" />
Executive ViewAI
YAFNET forum software versions 3.2.11 and earlier, plus 4.0.0-beta01 through 4.0.4 contain a stored cross-site scripting vulnerability that allows authenticated forum users to inject malicious code into posts, automatically executing in every viewer's browser including administrators. This enables account takeover and credential theft across your entire forum user base and administrative staff.
Vendor-released patch: YAFNET.Core v3.2.12 (legacy) and v4.0.5 (current). Interim mitigations pending patch deployment: disable forum posting permissions for all non-administrator accounts; implement Web Application Firewall (WAF) rules to block script tags in POST requests; restrict administrator accounts to trusted IP ranges; increase audit logging on authentication events.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
GHSA-8rq5-wwpp-fmj2
NVD
CVE.org
EPSS
Exploit-DB