Detect NukeViet CMS Stored XSS via Internal DTD Entities in SVG Uploads (CVE-2026-94567) in Google Chronicle
Detects exploitation of CVE-2026-94567, a stored cross-site scripting vulnerability in NukeViet CMS (versions < 4.5.12 and >= 4.6.00 before 4.6.02). The flaw stems from improper handling of internal DTD entity declarations and interpretation conflicts (CWE-436) in uploaded SVG files, allowing an authenticated or privileged user to upload a crafted SVG containing embedded scripts or entity-expanded payloads that execute in the context of other users' browsers when the image is rendered. This detection surfaces SVG uploads to NukeViet upload endpoints, SVG files containing DTD/entity/script constructs served from the NukeViet uploads directory, and web server telemetry indicating stored XSS delivery. CVSS 9.3, public PoC available.
MITRE ATT&CK
- Tactic
- Initial Access Execution
YARA-L Detection Query
// df00tech DF00-04b7618b50 · https://df00tech.com/detections/CVE-2026-94567 · licence: https://df00tech.com/detections/licence
rule nukeviet_svg_xss_cve_2026_94567 {
meta:
author = "Argus Detection Platform"
description = "NukeViet CMS SVG upload stored XSS (CVE-2026-94567)"
severity = "HIGH"
events:
$e.metadata.event_type = "NETWORK_HTTP"
(
($e.network.http.method = "POST" and re.regex($e.target.url, `(?i)(upload|filemanager|nukeviet)`))
or re.regex($e.target.url, `(?i)\.svg($|\?)`)
)
condition:
$e
} Chronicle YARA-L rule matching NukeViet SVG upload POSTs and SVG retrievals indicative of CVE-2026-94567 stored XSS delivery.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate SVG asset uploads by administrators.
- Proxy caching of SVG content.
- Security scan traffic exercising upload forms.
Other platforms for CVE-2026-94567
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Upload SVG with internal DTD entity payload
Expected signal: Web access log entry showing a POST to the upload endpoint with an image/svg+xml file.
- Test 2 Retrieve stored malicious SVG
Expected signal: Web access log entry showing a GET for a .svg file from the uploads directory.
- Test 3 Upload SVG with event-handler XSS vector
Expected signal: Web access log entry showing a POST upload of an SVG with image/svg+xml content type.
References (8)
- https://github.com/nukeviet/nukeviet/security/advisories/GHSA-cp55-wmv6-wxpp
- https://nvd.nist.gov/vuln/detail/CVE-2026-94567
- https://github.com/nukeviet/nukeviet/commit/912823e2581afc23dc39dabdb7d94c718efc78f6
- https://github.com/nukeviet/nukeviet/commit/b4abcddd3a3a628e251d88571f3968822fab4406
- https://github.com/nukeviet/nukeviet/blob/4.5.13/CHANGELOG.txt
- https://github.com/nukeviet/nukeviet/releases/tag/4.6.02
- https://nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-02-858.html
- https://github.com/advisories/GHSA-cp55-wmv6-wxpp
Response Playbook
Triage
- Identify the source IP and the authenticated NukeViet user account associated with the SVG upload and determine whether the account is authorized to upload media.
- Retrieve the uploaded SVG file from the NukeViet uploads directory and inspect it for <!DOCTYPE>/<!ENTITY> declarations, <script> elements, javascript: URIs, on* event handlers, or <foreignObject> payloads.
- Confirm the deployed NukeViet version against affected ranges (< 4.5.12 and >= 4.6.00 before 4.6.02) to establish whether the instance is vulnerable.
- Determine whether the malicious SVG was subsequently rendered/served to other users by reviewing access logs for GET requests to the stored file path.
Containment
- Quarantine or delete the malicious SVG file from the uploads directory and remove any cached copies from CDN/proxy layers.
- Disable or reset the compromised uploader account and revoke active admin sessions to invalidate any stolen session tokens.
- Apply the vendor fix by upgrading to NukeViet 4.5.13 / 4.6.02 or later, or restrict SVG uploads and enable server-side SVG sanitization as an interim measure.
Evidence Collection
- Preserve the original malicious SVG file, web server access/error logs, and NukeViet application upload logs covering the upload and any subsequent renders.
- Capture the full HTTP request body of the upload POST and the response, plus the uploader account's session and activity history.
Escalation Criteria
- !Escalate to incident response if log review shows the malicious SVG was served to administrator sessions or if admin session cookies/tokens may have been exfiltrated.
- !Escalate if evidence indicates follow-on actions such as unauthorized account creation, privilege changes, or additional web shell/content injection stemming from the XSS.
Investigation Guide
Forensic Artifacts
- >
The uploaded SVG file in the NukeViet uploads directory and its filesystem timestamps. - >
Web server access/error logs and NukeViet application logs recording the upload and subsequent renders. - >
Browser/endpoint telemetry of admin sessions that rendered the stored SVG.
Tuning Guidance
Baseline the normal SVG upload paths and administrator accounts for your NukeViet deployment, then exclude known-good asset pipelines and branding uploads. Prioritize alerts where the uploaded SVG file content contains DTD entity declarations, script elements, or event-handler attributes, and where the file is subsequently served to additional source IPs. Reduce noise by scoping to the NukeViet uploads directory and file manager endpoints rather than all SVG traffic.
Hunting Queries
Finds SVG files that were both uploaded and later retrieved, highlighting stored SVGs delivered to multiple viewers.
// df00tech DF00-04b7618b50 · https://df00tech.com/detections/CVE-2026-94567 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem endswith ".svg" | summarize uploads=countif(csMethod=="POST"), views=countif(csMethod=="GET") by csUriStem, cIP | where uploads > 0 and views > 0 ``` df00tech DF00-04b7618b50 · https://df00tech.com/detections/CVE-2026-94567 · licence: https://df00tech.com/detections/licence ```
index=web (sourcetype=access_combined OR sourcetype=iis) uri_path="*.svg" | stats count(eval(method="POST")) as uploads count(eval(method="GET")) as views by uri_path, clientip | where uploads>0 AND views>0 Atomic Red Team Tests
Simulates uploading a malicious SVG containing an internal DTD entity declaration and script payload to a NukeViet-style upload endpoint in a lab.
Command
printf '<?xml version="1.0"?>\n<!DOCTYPE svg [ <!ENTITY x "xss"> ]>\n<svg xmlns="http://www.w3.org/2000/svg"><script>alert(document.cookie)</script><text>&x;</text></svg>' > /tmp/evil.svg && curl -s -F "userfile=@/tmp/evil.svg;type=image/svg+xml" "http://localhost:8080/nv/upload/" Cleanup
rm -f /tmp/evil.svg Expected Telemetry
Web access log entry showing a POST to the upload endpoint with an image/svg+xml file.
Expected Detection
KQL/SPL upload rules match the POST SVG upload to the NukeViet upload path.
Simulates a victim browser retrieving the previously uploaded malicious SVG from the uploads directory, triggering stored XSS rendering.
Command
curl -s -A "Mozilla/5.0" "http://localhost:8080/uploads/evil.svg" -o /dev/null Cleanup
echo 'no cleanup required' Expected Telemetry
Web access log entry showing a GET for a .svg file from the uploads directory.
Expected Detection
SVG retrieval branch of the detection matches the GET request for the .svg file.
Uploads an SVG using an onload event handler instead of a script tag, covering an alternate stored XSS vector.
Command
powershell -Command "Set-Content -Path $env:TEMP\evil2.svg -Value '<svg xmlns=\"http://www.w3.org/2000/svg\" onload=\"alert(1)\"></svg>'; Invoke-WebRequest -Uri 'http://localhost:8080/nv/upload/' -Method Post -InFile $env:TEMP\evil2.svg -ContentType 'image/svg+xml'" Cleanup
powershell -Command "Remove-Item $env:TEMP\evil2.svg -ErrorAction SilentlyContinue" Expected Telemetry
Web access log entry showing a POST upload of an SVG with image/svg+xml content type.
Expected Detection
Upload detection rules match the POST SVG upload request.