CVE-2026-54064 — Vulnerability in nukeviet/nukeviet — CVE Details
NukeViet: Multiple Anti-XSS Filter Bypasses Leading to Stored XSS in News Module
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.45%). Schedule for your next planned update.
Does your project use an affected nukeviet/nukeviet version?
Paste your composer.lock to check it for CVE-2026-54064 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.
Summary
Summary
Two filter-bypass techniques in NukeViet\Core\Request::filterAttr() and NukeViet\Core\Request::unhtmlentities() allow a low-privileged user (any account with news post permission) to store and serve arbitrary JavaScript to any visitor of the affected page.
Affected Component
vendor/vinades/nukeviet/Core/Request.php — class NukeViet\Core\Request
Vulnerability Details
Bypass 1 — Form Feed character prefix (\x0C) before event handler name
The filterAttr() method blocks event-handler attributes using:
preg_match('/^on/i', $attrSubSet[0])
PHP's trim() does not strip the ASCII Form Feed character (\x0C, U+000C). An attacker can prefix the attribute name with \x0C so that \x0Conerror does not match /^on/. The HTML5 browser parser treats \x0C as a valid whitespace separator and correctly activates the event handler.
Proof-of-concept payload (URL-encoded POST body field bodyhtml):
<img src="x" %0Conerror="alert('XSS')">
Bypass 2 — Decimal HTML entity tab (	) inside javascript: URI
unhtmlentities() strips the hex-encoded tab 	 via str_ireplace, but did not strip its decimal equivalent 	. The keyword-blocking regex /j\s*a\s*v\s*a\s*s\s*c\s*r\s*i\s*p\s*t/si uses \s* which does not match HTML entities. The value jav	ascript:alert() passes the filter, is stored in the database, and is decoded by the browser into a working javascript: URI.
Proof-of-concept payload (inside a Markdown-style link):
[Click me](jav	ascript:alert('XSS'))
Impact
An authenticated attacker with news-posting permission can inject persistent JavaScript that executes in the browser of any user (including administrators) who views the affected article. This enables session cookie theft, credential harvesting, defacement, and further privilege escalation.
Patches
Fixed in commit <commit-sha> by modifying vendor/vinades/nukeviet/Core/Request.php:
-
filterAttr()— strip all ASCII control characters (\x00–\x20) from the attribute name before the/^on/check:$attrSubSet[0] = preg_replace('/[\x00-\x20]/', '', strtolower($attrSubSet[0])); -
unhtmlentities()— strip decimal HTML entities for all ASCII control characters (0–31) before the keyword checks:$value = preg_replace('/�*(?:3[01]|[12][0-9]|[0-9]);/', '', $value);
Workarounds
None. Update to the patched version.
Resources
- CWE-79: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
- OWASP WSTG-INPV-02: Testing for Stored Cross Site Scripting
- OWASP Top 10 A03:2021 – Injection
Advisory Timeline
- First published July 13, 2026 (137 days ago).
- Last revised July 13, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "nukeviet/nukeviet:^4.6.00"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| nukeviet/nukeviet Packagist · Affected: 4.0.24, 4.4.01 | 4.6.00 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.7 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
References
Frequently Asked Questions
- What is CVE-2026-54064?
- NukeViet: Multiple Anti-XSS Filter Bypasses Leading to Stored XSS in News Module. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.7/10).
- How do I check if my project is affected by CVE-2026-54064?
- CVE-2026-54064 affects nukeviet/nukeviet. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-54064 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 31.2% 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
Related CVEs
- CVE-2020-21808CRITICAL
NukeViet SQL Injection vulnerability via topicsid parameter
- CVE-2020-21809CRITICAL
NukeViet SQL Injection vulnerability
- CVE-2026-41147HIGH
NukeViet CMS: Stored Cross-Site Scripting (XSS) via insufficient server-side input sanitization in Request class
- CVE-2026-103035HIGH
TeamPass folder re-parenting authorization bypass
- CVE-2026-54065HIGH
NukeViet: Path Traversal to Arbitrary File Deletion in Edit Comment Function
- CVE-2026-48118HIGH
NukeViet: Unauthenticated Reflected XSS in Comment Module
- CVE-2026-110782HIGH
SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)
- CVE-2026-49259HIGH
NukeViet: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')