All vulnerabilities

Packagist

CVE-2026-94598

NukeViet CMS: Stored XSS via internal marker injection in iframe srcdoc sanitization

Severity
High 8.2
Published
30 Nov 2026
Last changed
30 Nov 2026
Added to UpHeron
30 Nov 2026
Fixed in
4.5.12
Exploit chance
0.6% in the next 30 daysHigher than 43% of CVEs. EPSS by FIRST, 30 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Also known as
GHSA-p7cw-whjw-crcm
Sources
OSV.dev and GitHub

Description

A stored cross-site scripting (XSS) vulnerability exists in the HTML sanitizer of NukeViet\Core\Request (filterTags() and filterAttr()).

When an attribute contains HTML content (the srcdoc attribute of ), the sanitizer decodes its value and filters it again with filterTags(). Internally, filterTags() rebuilds allowed tags with placeholder markers ({@[, ]@}, [@{, }@]) and converts them back to <, > and "` at the end. The input was never checked for these markers.

The characters [ and ] can be sent as HTML entities (for example &#91;, &#x5b; or &lbrack;), and they are decoded before the recursive call.

An attacker can therefore place markers inside a srcdoc value. These markers skip all tag and attribute filtering and are turned into real HTML tags.

A marker can also be formed by joining a marker generated by the sanitizer with attacker-controlled characters. In that case a generated tag is left unclosed, and the text that follows becomes attributes of that tag.

Example input:

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

If upgrading is not possible right away:

  • Remove iframe from the allowed HTML tags list in Admin > Configuration > Setup security > HTML code was approved in the system.
  • Disable the editor for comments in the comment module settings.
  • Apply the changes from the patch commit to vendor/vinades/nukeviet/Core/Request.php.

These steps only block new payloads. Content that was stored before remains in the database. Search stored content (comments, contact messages, articles) for srcdoc and remove any suspicious entries.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
nukeviet/nukevietPackagist · osv:Packagist:nukeviet/nukeviet
  • From 4.5.08 before 4.5.12
  • From 4.6.00 on

About nukeviet/nukeviet

Monthly downloads (Packagist)
9Packagist, 30 Nov 2026
Total downloads (Packagist)
45Packagist, 30 Nov 2026

References