Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4166

CVE-2026-4166: Wavlink WL-NU516U1 XSS Vulnerability

CVE-2026-4166 is a cross site scripting flaw in Wavlink WL-NU516U1 router that allows remote attackers to inject malicious scripts. This post covers technical details, affected versions, impact, and mitigation.

Published: March 20, 2026

CVE-2026-4166 Overview

A cross-site scripting (XSS) vulnerability has been discovered in the Wavlink WL-NU516U1 network device running firmware version 240425. The vulnerability exists within the sub_404F68 function of the /cgi-bin/login.cgi file, where improper input validation of the homepage and hostname arguments allows attackers to inject malicious scripts. This vulnerability can be exploited remotely by authenticated attackers, potentially leading to session hijacking, credential theft, or other client-side attacks against users accessing the device's web interface.

Critical Impact

Attackers can inject and execute arbitrary JavaScript in the context of legitimate user sessions, potentially stealing credentials or performing unauthorized actions on the affected network device.

Affected Products

  • Wavlink WL-NU516U1 (Firmware version 240425)

Discovery Timeline

  • March 16, 2026 - CVE-2026-4166 published to NVD
  • March 16, 2026 - Last updated in NVD database

Technical Details for CVE-2026-4166

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting (XSS). The vulnerable function sub_404F68 within the /cgi-bin/login.cgi endpoint fails to properly sanitize user-controlled input from the homepage and hostname parameters before rendering them in the web interface response.

When a user submits crafted input containing JavaScript code through these parameters, the application includes this unsanitized content directly in the HTML response. This allows the injected script to execute within the browser context of any user viewing the affected page, with full access to the session's cookies, DOM, and other sensitive data.

The exploit has been publicly disclosed, increasing the risk of opportunistic attacks against unpatched devices. The vendor was contacted regarding this vulnerability prior to public disclosure.

Root Cause

The root cause of this vulnerability is insufficient input validation and output encoding in the sub_404F68 function. The firmware fails to implement proper sanitization mechanisms for the homepage and hostname parameters before incorporating them into the HTTP response. Without adequate input filtering or output encoding (such as HTML entity encoding), special characters that have semantic meaning in HTML and JavaScript contexts are processed literally, enabling script injection.

Attack Vector

The attack is network-based and requires the attacker to have low-level privileges on the system, with some user interaction required to trigger the payload. An attacker can craft a malicious URL or form submission containing JavaScript payloads in the homepage or hostname parameters. When a victim user accesses the login page or processes the malicious request, the injected script executes in their browser session.

Typical attack scenarios include:

  • Crafting malicious links sent via phishing emails targeting device administrators
  • Injecting persistent scripts if the input is stored and reflected to other users
  • Stealing session tokens or credentials from authenticated administrators
  • Redirecting users to malicious websites for further exploitation

Technical details are available in the GitHub Vulnerability Report WL-14 and GitHub Vulnerability Report WL-15.

Detection Methods for CVE-2026-4166

Indicators of Compromise

  • HTTP requests to /cgi-bin/login.cgi containing <script> tags or JavaScript event handlers in the homepage or hostname parameters
  • Encoded script payloads (URL encoding, HTML entities, Unicode) in CGI parameter values
  • Unusual outbound connections from client browsers after accessing the device's web interface
  • Browser console errors or unexpected script execution when interacting with the login page

Detection Strategies

  • Deploy web application firewalls (WAF) with rules to detect XSS payloads in HTTP requests targeting /cgi-bin/login.cgi
  • Implement network intrusion detection signatures for common XSS attack patterns in traffic destined for Wavlink devices
  • Review HTTP access logs for suspicious parameter values containing script tags or JavaScript event handlers
  • Use browser-based XSS detection tools during security assessments of the device interface

Monitoring Recommendations

  • Enable detailed HTTP access logging on network devices or reverse proxies in front of Wavlink devices
  • Configure SIEM rules to alert on potential XSS patterns in web traffic to IoT and network device management interfaces
  • Monitor for anomalous JavaScript execution or DOM manipulation on pages served by the device
  • Regularly audit device access logs for evidence of exploitation attempts

How to Mitigate CVE-2026-4166

Immediate Actions Required

  • Restrict access to the Wavlink WL-NU516U1 web management interface to trusted networks only
  • Implement network segmentation to isolate the device from untrusted users and networks
  • Deploy a web application firewall or reverse proxy with XSS filtering capabilities in front of the device
  • Educate users and administrators about phishing attacks that may leverage this vulnerability
  • Monitor for firmware updates from Wavlink that address this vulnerability

Patch Information

At the time of publication, no official patch information is available from Wavlink. The vendor was contacted early about this disclosure. Administrators should monitor the vendor's official website and security advisories for firmware updates addressing CVE-2026-4166. Additional information can be found at VulDB #351073.

Workarounds

  • Place the device behind a VPN or firewall that restricts web interface access to authorized administrators only
  • Disable remote web management access if not required for device operation
  • Use browser extensions that block JavaScript execution when accessing the device management interface
  • Implement Content Security Policy (CSP) headers via a reverse proxy to restrict script execution sources
bash
# Example iptables rule to restrict access to device web interface
# Replace 192.168.1.100 with the Wavlink device IP
# Replace 10.0.0.0/24 with your trusted management network

iptables -A INPUT -d 192.168.1.100 -p tcp --dport 80 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -d 192.168.1.100 -p tcp --dport 80 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWavlink

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Vulnerability Report WL-14

  • GitHub Vulnerability Report WL-15

  • VulDB CTI ID #351073

  • VulDB #351073

  • VulDB Submission #769652

  • VulDB Submission #769653
  • Related CVEs
  • CVE-2026-6559: Wavlink WL-WN579A3 XSS Vulnerability

  • CVE-2026-4544: Wavlink WL-WN578W2 XSS Vulnerability

  • CVE-2026-3716: Wavlink WL-WN579X3-C Firmware XSS Flaw

  • CVE-2026-6483: Wavlink WL-WN530H4 RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English