CVE-2026-34403: CWE-1385: Missing Origin Validation in WebSockets in 0xJacky nginx-ui
CVE-2026-34403 is a medium severity vulnerability in 0xJacky's nginx-ui prior to version 2. 3. 5. The issue arises because all WebSocket endpoints use a gorilla/websocket Upgrader with CheckOrigin always returning true, enabling Cross-Site WebSocket Hijacking (CSWSH). Authentication tokens stored in browser cookies without HttpOnly or SameSite attributes allow a malicious webpage to establish authenticated WebSocket connections if an administrator visits the attacker-controlled page. Version 2. 3. 5 addresses this vulnerability.
AI Analysis
Technical Summary
The vulnerability in nginx-ui versions before 2.3.5 stems from missing origin validation in WebSocket connections, specifically the gorilla/websocket Upgrader's CheckOrigin function unconditionally returning true. This flaw permits Cross-Site WebSocket Hijacking attacks. Because authentication tokens are stored in cookies accessible via JavaScript and lack HttpOnly and SameSite attributes, an attacker can leverage a malicious webpage to initiate authenticated WebSocket sessions as an administrator. The issue is fixed in version 2.3.5.
Potential Impact
An attacker can exploit this vulnerability to hijack authenticated WebSocket sessions of an administrator by tricking them into visiting a malicious webpage. This can lead to unauthorized actions performed with administrator privileges via the WebSocket interface. The CVSS 4.0 score is 5.5 (medium severity), reflecting network attack vector, no privileges required, user interaction needed, and high impact on integrity via hijacked WebSocket connections.
Mitigation Recommendations
Upgrade nginx-ui to version 2.3.5 or later, where the origin validation issue in WebSocket endpoints is fixed. Since no official patch link or advisory is provided, verify the upgrade from the vendor's official sources. Avoid relying on partial mitigations as the vulnerability involves authentication token handling and origin checks.
CVE-2026-34403: CWE-1385: Missing Origin Validation in WebSockets in 0xJacky nginx-ui
Description
CVE-2026-34403 is a medium severity vulnerability in 0xJacky's nginx-ui prior to version 2. 3. 5. The issue arises because all WebSocket endpoints use a gorilla/websocket Upgrader with CheckOrigin always returning true, enabling Cross-Site WebSocket Hijacking (CSWSH). Authentication tokens stored in browser cookies without HttpOnly or SameSite attributes allow a malicious webpage to establish authenticated WebSocket connections if an administrator visits the attacker-controlled page. Version 2. 3. 5 addresses this vulnerability.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in nginx-ui versions before 2.3.5 stems from missing origin validation in WebSocket connections, specifically the gorilla/websocket Upgrader's CheckOrigin function unconditionally returning true. This flaw permits Cross-Site WebSocket Hijacking attacks. Because authentication tokens are stored in cookies accessible via JavaScript and lack HttpOnly and SameSite attributes, an attacker can leverage a malicious webpage to initiate authenticated WebSocket sessions as an administrator. The issue is fixed in version 2.3.5.
Potential Impact
An attacker can exploit this vulnerability to hijack authenticated WebSocket sessions of an administrator by tricking them into visiting a malicious webpage. This can lead to unauthorized actions performed with administrator privileges via the WebSocket interface. The CVSS 4.0 score is 5.5 (medium severity), reflecting network attack vector, no privileges required, user interaction needed, and high impact on integrity via hijacked WebSocket connections.
Mitigation Recommendations
Upgrade nginx-ui to version 2.3.5 or later, where the origin validation issue in WebSocket endpoints is fixed. Since no official patch link or advisory is provided, verify the upgrade from the vendor's official sources. Avoid relying on partial mitigations as the vulnerability involves authentication token handling and origin checks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-27T13:45:29.620Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e6941f19fe3cd2cd32c495
Added to database: 4/20/2026, 9:01:19 PM
Last enriched: 4/20/2026, 9:16:46 PM
Last updated: 4/20/2026, 10:39:13 PM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.