Skip to content

NukeViet CMS: Stored Cross-Site Scripting (XSS) via insufficient server-side input sanitization in Request class

High severity GitHub Reviewed Published May 15, 2026 in nukeviet/nukeviet • Updated May 15, 2026

Package

composer nukeviet/nukeviet (Composer)

Affected versions

<= 4.4.01

Patched versions

None

Description

Impact

NukeViet CMS <= 4.5.08 contains a Stored Cross-Site Scripting (XSS) vulnerability caused by insufficient server-side input sanitization in the Request class. The application relies primarily on client-side filtering to sanitize HTML tags and attributes in user-submitted content, which can be bypassed by intercepting and modifying HTTP requests directly (e.g., using Burp Suite).

This affects any module or functionality that accepts user HTML input through the Request class. An attacker can inject malicious payloads such as <iframe srcdoc="&lt;img src=1 onerror=alert(document.cookie)&gt;"></iframe>, which are stored server-side and executed in the browser of any user who views the content.

Who is impacted:

  • Administrators and moderators who view user-submitted content (e.g., contact messages, comments, or any module using the Request class for HTML input).
  • The Contact module was used as a proof of concept, but the vulnerability is not limited to this module.
  • No authentication is required to exploit this vulnerability, making it accessible to any anonymous visitor.

Potential impact includes:

  • Session hijacking via cookie theft (for non-HttpOnly cookies)
  • Performing actions on the application under the victim's identity
  • Defacement or redirection to phishing pages
  • Phishing attacks via manipulated email notifications

Patches

This vulnerability has been fixed in NukeViet 4.5.08. Users should upgrade to version >= 4.5.08.

Workarounds

  • Implement server-side HTML sanitization in the Request class to strip or encode dangerous tags and attributes (e.g., <iframe>, srcdoc, event handlers such as onerror, onload).
  • Apply a Content Security Policy (CSP) header to restrict inline script execution.
  • Ensure cookies are set with the HttpOnly flag to mitigate cookie theft via XSS.

Resources

References

@hoaquynhtim99 hoaquynhtim99 published to nukeviet/nukeviet May 15, 2026
Published to the GitHub Advisory Database May 15, 2026
Reviewed May 15, 2026
Last updated May 15, 2026

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

EPSS score

Weaknesses

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Learn more on MITRE.

CVE ID

CVE-2026-41147

GHSA ID

GHSA-64rr-pp78-62ww

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.