NukeViet CMS CVE-2026-49259
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister low-privileged member account
-
DeliveryStore XSS payload in profile display name
-
ExploitPost comment to embed handler
-
ExecutionAdmin clicks Reply link
-
Persistonclick executes attacker JavaScript
-
ImpactHijack admin session / exfiltrate data
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 | Requires a registered NukeViet member account (PR:L) in a default deployment where captcha_area_comm=1 (no CAPTCHA for logged-in users), auto_postcomm is enabled (comments publish immediately without moderation), and active_editinfo_censor=0 (profile edits apply without admin review) - all default values. The payload is placed in the first_name/last_name profile fields at /index.php?nv=users&op=editinfo and delivered via any comment. The critical limiting factor is required user interaction (UI:R): a victim - ideally an administrator - must click the Reply/"Answer" link on the attacker's comment for the onclick handler to fire; script execution also depends on the default CSP script-src allowing 'unsafe-inline'. If an operator sets captcha_area_comm=0, the same get_title(..., 1) processing of the anonymous comment name field enables exploitation without authentication. |
| Impact | The supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N, score 8.7 High) captures the profile accurately: network reachable, low attacker privilege (any registered member), and a required victim click on the Reply link (UI:R), with a scope change (S:C) because attacker-controlled script runs in a victim/administrator's browser context. No EPSS score, no CISA KEV entry, and no SSVC decision data were provided, so real-world exploitation frequency cannot be quantified from the input; the absence of KEV means it should not be treated as confirmed actively exploited. That said, a fully weaponized PoC (including a cookie-exfiltration variant verified end-to-end) is published in the vendor's GHSA advisory, and default configuration requires no CAPTCHA, no comment moderation, and no admin review of profile edits, which lowers the practical barrier considerably. The main limiting factor is UI:R - an administrator or visitor must actually click Reply on the attacker's comment - which makes this opportunistic/targeted rather than wormable. Net: a genuine high priority for NukeViet operators because of the low privilege requirement and public exploit, tempered by the required user interaction. |
| Exploit ScenarioDerived | An attacker registers an ordinary member account and sets their profile first_name to a value such as a');alert(document.domain);// which is stored HTML-entity-encoded, then posts any comment. When a site administrator later clicks the Reply/Answer link on that comment, the browser decodes the entities, breaks out of the JS string, and executes the attacker's script in the admin's authenticated session - the published PoC demonstrates both document.domain execution and a cookie/data-exfiltration variant verified against a local listener. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 13, 2026
Stored cross-site scripting in NukeViet CMS 4.x through 4.5.08 lets a low-privileged authenticated member embed a JavaScript payload in their profile display name (first_name/last_name), which then executes when any visitor - including administrators - clicks the Reply/Answer link on that member's comment. The flaw stems from HTML-entity encoding being applied where JavaScript-string escaping is required, so the payload runs in the victim's session context and can drive admin session actions, credential phishing, and data exfiltration. Publicly available exploit code exists (a working PoC is published in the GHSA advisory), though there is no public exploit identified as actively used in the wild.
RemediationAI
Upgrade NukeViet CMS to a fixed release - the advisory metadata lists the fix in 4.5.09 (patched range < 4.5.09) with the change carried forward to 4.6.00; treat 4.5.09 as the minimum patched version and confirm against the vendor advisory at https://github.com/nukeviet/nukeviet/security/advisories/GHSA-w2w5-w2pw-r929. The vendor-recommended code fix is to remove post_name from the inline onclick handler entirely and have nv_commment_feedback read the display name from the already-rendered DOM (the adjacent <strong class="cm_item"> element); if the value must be passed inline, encode it with PHP json_encode($post_name) to produce a proper JavaScript string literal rather than relying on HTML numeric character references. Where immediate patching is not possible, compensating controls include enforcing a stricter Content-Security-Policy that removes 'unsafe-inline' from script-src (side effect: existing inline onclick handlers across the theme will break and must be refactored to external handlers), enabling comment moderation by disabling auto_postcomm and enabling active_editinfo_censor so profile edits and comments are admin-reviewed before publication (side effect: added moderation workload and delayed publishing), and keeping captcha_area_comm at its default of 1 so anonymous comment posting cannot be abused for unauthenticated delivery. Teams should also audit other code paths that place get_title(..., true) output inside JavaScript string contexts.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NukeViet is an open-source PHP/MySQL content management system (distributed as the composer package nukeviet/nukeviet). The vulnerability lives in the comment module template themes/default/modules/comment/comment.tpl (lines 27 and 64), where the {COMMENT.post_name} variable is interpolated into an inline onclick handler: onclick="nv_commment_feedback(event, {COMMENT.cid}, '{COMMENT.post_name}')". The display name is sanitized via Request::_get_title() with $specialchars=true, which converts characters such as the apostrophe to HTML numeric character references (' → '). This is a textbook CWE-79/CWE-116 output-encoding mismatch: browsers decode HTML entities in attribute values before the JavaScript engine parses the embedded string literal, so ' is decoded back to a real apostrophe that terminates the JS string early and the remainder executes as script. Contributing factors include a CSP script-src of 'unsafe-inline', which permits inline onclick handlers to run.
Know when PHP gets its next vulnerability
- 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:C/C:H/I:H/A:N
Any low-privileged member can store the payload (PR:L, AC:L, AV:N); a victim must click Reply (UI:R); script runs in the victim's browser crossing a trust boundary (S:C) enabling session/content compromise (C:H/I:H), with no availability impact.
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
Summary
A stored cross-site scripting (XSS) vulnerability exists in NukeViet CMS versions 4.x through 4.5.08. A low-privileged authenticated user can store a JavaScript payload in their profile's display name fields. The payload executes in the browser of any visitor - including administrators - who clicks the Reply ("Answer") link on a comment posted by that user.
Affected Component
The {COMMENT.post_name} template variable is interpolated without JavaScript-context escaping into an inline onclick handler in both comment block positions:
themes/default/modules/comment/comment.tplline 27 (top-level comments)themes/default/modules/comment/comment.tplline 64 (nested/reply comments)
onclick="nv_commment_feedback(event, {COMMENT.cid}, '{COMMENT.post_name}')"Root Cause
The first_name and last_name profile fields are sanitized with HTML numeric character references (' → ', ( → (, ) → ), / → /) via Request::_get_title() with $specialchars = true. This encoding is correct for plain HTML attribute and element contexts, but insufficient for a JavaScript string literal embedded inside an HTML attribute.
Browsers decode HTML entities in attribute values before the JavaScript engine parses the string. As a result, ' is decoded back to ', which terminates the JS string early and allows the remainder of the value to be executed as JavaScript.
The combined display name (nv_show_name_user(first_name, last_name)) is what reaches the template, giving an attacker up to ~200 encoded characters across both fields - sufficient for any practical payload.
Proof of Concept
Set first_name to the following value in profile settings (/index.php?nv=users&op=editinfo), then post any comment:
a');alert(document.domain);//The value is stored as a');alert(document.domain);//.
When a visitor clicks the Reply link on the comment, the browser renders:
nv_commment_feedback(event, 1, 'a');alert(document.domain);// Tester')causing alert(document.domain) to execute in the visitor's browser context.
A data-exfiltration variant (split across both name fields) navigates the victim's browser to an attacker-controlled URL carrying document.cookie as a query parameter. End-to-end verification was performed using a local listener.
Exploitation Conditions (default configuration)
| Condition | Default value | Effect |
|---|---|---|
captcha_area_comm | 1 | No CAPTCHA for logged-in users - payload delivery requires no CAPTCHA solve |
auto_postcomm | enabled | Comments are published immediately without moderation |
active_editinfo_censor | 0 | Profile edits take effect immediately without admin review |
CSP script-src | 'unsafe-inline' | Inline onclick handlers execute normally |
Any registered member can set the payload and post a comment with no additional steps.
If captcha_area_comm is set to 0, the name field of anonymous comments (modules/comment/funcs/post.php) is processed by the same get_title(..., 1) call, making exploitation possible without authentication.
Impact
An attacker with a regular user account can execute arbitrary JavaScript in the browser of any visitor who interacts with the Reply button on their comment, including site administrators.
Practical consequences include:
- Privilege escalation via admin session hijacking - forging administrative actions (content modification, account manipulation) in the context of an authenticated admin.
- Credential phishing - injecting a fake login form into the page.
- Data exfiltration - reading page content and non-
HttpOnlycookies.
> Note: NukeViet session cookies carry the HttpOnly flag, so they are not directly readable via document.cookie; however, the above attack vectors remain fully viable.
Remediation
Preferred fix: Remove post_name from the inline handler entirely. Pass only cid to nv_commment_feedback and have the function retrieve the display name from the already-rendered DOM (e.g., the adjacent <strong class="cm_item"> element).
Alternative fix: If the value must be passed inline, encode it with json_encode($post_name) (PHP) so that the output is a properly escaped JavaScript string literal, not an HTML-entity-encoded one. HTML numeric character references must not be relied upon for JavaScript string escaping.
As a general note, the result of get_title(..., $specialchars=true) is safe for HTML element content and quoted HTML attribute values, but unsafe when placed inside a JavaScript string literal within an attribute. Other locations in the codebase using the same pattern should be audited.
Resources
- OWASP: Cross Site Scripting Prevention - Rule 2: Attribute Encoding is Not Sufficient for JS Contexts
- CWE-79: Improper Neutralization of Input During Web Page Generation
- CWE-116: Improper Encoding or Escaping of Output
Executive ViewAI
NukeViet CMS versions 4.5.08 and earlier contain a stored cross-site scripting vulnerability that allows low-privileged users to embed malicious JavaScript in profile display names, compromising administrator sessions and enabling credential theft or unauthorized data access when admins interact with affected user profiles.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict input validation and sanitization on first_name and last_name fields, blocking HTML-encoded JavaScript payloads at the application layer; (2) Deploy WAF rules targeting stored XSS patterns in user profile display zones; (3) Restrict user profile and comment visibility to authenticated sessions only; (4) Enable detailed audit logging on all profile edits and monitor for suspicious JavaScript injection patterns; (5) Enforce shorter administrative session timeouts and implement mandatory re-authentication for sensitive operations.
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.
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Affected Products (CPE)GitHub Advisory
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-w2w5-w2pw-r929
NVD
CVE.org
Exploit-DB