NukeViet: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CVE-2026-49259)
NukeViet CMS versions prior to 4.6.00 contain a stored cross-site scripting (XSS) vulnerability. A low-privileged authenticated user can inject JavaScript payloads into their profile's display name fields, which execute in the browsers of visitors who click the Reply link on that user's comment. The vulnerability arises from improper escaping of user input placed inside a JavaScript string literal within an HTML attribute, allowing execution of arbitrary scripts. This can lead to privilege escalation, credential phishing, and data exfiltration. The vulnerability affects the comment template's inline onclick handler and is exploitable under default configurations without CAPTCHA or moderation. No official patch is currently documented, but remediation involves removing the vulnerable inline handler or properly escaping the input with JSON encoding.
AI Analysis
Technical Summary
A stored XSS vulnerability exists in NukeViet CMS versions <4.6.00 due to improper neutralization of user input in JavaScript string literals embedded in HTML attributes. The first_name and last_name profile fields are sanitized with HTML numeric character references, which are decoded by browsers before JavaScript parsing, allowing an attacker to break out of the string context and execute arbitrary JavaScript. This occurs in the {COMMENT.post_name} variable used inside an inline onclick handler in the comment template. An attacker with a low-privileged account can inject a payload into their profile name fields and post a comment, causing the payload to execute in any visitor's browser who clicks the Reply link on that comment. The vulnerability enables actions such as admin session hijacking, phishing, and data exfiltration. The recommended fix is to remove the vulnerable inline handler or use proper JSON encoding for the input.
Potential Impact
An attacker with a regular user account can execute arbitrary JavaScript in the browsers of any visitors who interact with the Reply button on their comment, including administrators. This can lead to privilege escalation by hijacking admin sessions, forging administrative actions, credential phishing through fake login forms, and exfiltration of page content and non-HttpOnly cookies. Although session cookies are HttpOnly and not directly accessible, the attack remains capable of causing significant harm through other vectors.
Mitigation Recommendations
No official patch is documented at this time. The preferred remediation is to remove the vulnerable post_name parameter from the inline onclick handler and instead retrieve the display name from the DOM within the JavaScript function. Alternatively, if passing the value inline is necessary, it must be properly escaped using JSON encoding (e.g., json_encode in PHP) to ensure safe JavaScript string literals. Relying on HTML numeric character references for JavaScript escaping is insufficient. Users should audit other code locations for similar unsafe patterns. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
NukeViet: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CVE-2026-49259)
Description
NukeViet CMS versions prior to 4.6.00 contain a stored cross-site scripting (XSS) vulnerability. A low-privileged authenticated user can inject JavaScript payloads into their profile's display name fields, which execute in the browsers of visitors who click the Reply link on that user's comment. The vulnerability arises from improper escaping of user input placed inside a JavaScript string literal within an HTML attribute, allowing execution of arbitrary scripts. This can lead to privilege escalation, credential phishing, and data exfiltration. The vulnerability affects the comment template's inline onclick handler and is exploitable under default configurations without CAPTCHA or moderation. No official patch is currently documented, but remediation involves removing the vulnerable inline handler or properly escaping the input with JSON encoding.
CVSS v3.1
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
A stored XSS vulnerability exists in NukeViet CMS versions <4.6.00 due to improper neutralization of user input in JavaScript string literals embedded in HTML attributes. The first_name and last_name profile fields are sanitized with HTML numeric character references, which are decoded by browsers before JavaScript parsing, allowing an attacker to break out of the string context and execute arbitrary JavaScript. This occurs in the {COMMENT.post_name} variable used inside an inline onclick handler in the comment template. An attacker with a low-privileged account can inject a payload into their profile name fields and post a comment, causing the payload to execute in any visitor's browser who clicks the Reply link on that comment. The vulnerability enables actions such as admin session hijacking, phishing, and data exfiltration. The recommended fix is to remove the vulnerable inline handler or use proper JSON encoding for the input.
Potential Impact
An attacker with a regular user account can execute arbitrary JavaScript in the browsers of any visitors who interact with the Reply button on their comment, including administrators. This can lead to privilege escalation by hijacking admin sessions, forging administrative actions, credential phishing through fake login forms, and exfiltration of page content and non-HttpOnly cookies. Although session cookies are HttpOnly and not directly accessible, the attack remains capable of causing significant harm through other vectors.
Mitigation Recommendations
No official patch is documented at this time. The preferred remediation is to remove the vulnerable post_name parameter from the inline onclick handler and instead retrieve the display name from the DOM within the JavaScript function. Alternatively, if passing the value inline is necessary, it must be properly escaped using JSON encoding (e.g., json_encode in PHP) to ensure safe JavaScript string literals. Relying on HTML numeric character references for JavaScript escaping is insufficient. Users should audit other code locations for similar unsafe patterns. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-w2w5-w2pw-r929
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-49259"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a55ffbb68715ace432faf61
Added to database: 07/14/2026, 09:22:03 UTC
Last enriched: 07/14/2026, 10:00:51 UTC
Last updated: 07/31/2026, 12:27:30 UTC
Views: 58
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.