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, which allows Cross-Site WebSocket Hijacking (CSWSH). Since authentication tokens are stored in browser cookies without HttpOnly or SameSite attributes, a malicious webpage can establish authenticated WebSocket connections if an administrator visits it. Version 2. 3. 5 addresses this vulnerability.
AI Analysis
Technical Summary
The vulnerability in nginx-ui versions before 2.3.5 involves missing origin validation on WebSocket connections. The gorilla/websocket Upgrader's CheckOrigin function unconditionally returns true, permitting any origin to establish WebSocket connections. Because authentication tokens are stored in cookies accessible via JavaScript and lack protective attributes, an attacker-controlled webpage can hijack WebSocket sessions of logged-in administrators via Cross-Site WebSocket Hijacking. This can lead to unauthorized actions through the WebSocket interface. The issue is fixed in version 2.3.5.
Potential Impact
An attacker can exploit this vulnerability to perform Cross-Site WebSocket Hijacking, potentially allowing unauthorized WebSocket interactions with the nginx-ui instance under the context of an authenticated administrator. This could lead to unauthorized commands or data access through 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 and availability.
Mitigation Recommendations
Upgrade nginx-ui to version 2.3.5 or later, where the origin validation for WebSocket connections has been properly implemented. Until upgraded, users should be cautious about visiting untrusted webpages while logged into nginx-ui, as the vulnerability requires user interaction. No official patch links or vendor advisory were provided; therefore, verify the upgrade availability from the vendor or trusted sources.
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, which allows Cross-Site WebSocket Hijacking (CSWSH). Since authentication tokens are stored in browser cookies without HttpOnly or SameSite attributes, a malicious webpage can establish authenticated WebSocket connections if an administrator visits it. Version 2. 3. 5 addresses this vulnerability.
CVSS v4.0
Score 5.5medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in nginx-ui versions before 2.3.5 involves missing origin validation on WebSocket connections. The gorilla/websocket Upgrader's CheckOrigin function unconditionally returns true, permitting any origin to establish WebSocket connections. Because authentication tokens are stored in cookies accessible via JavaScript and lack protective attributes, an attacker-controlled webpage can hijack WebSocket sessions of logged-in administrators via Cross-Site WebSocket Hijacking. This can lead to unauthorized actions through the WebSocket interface. The issue is fixed in version 2.3.5.
Potential Impact
An attacker can exploit this vulnerability to perform Cross-Site WebSocket Hijacking, potentially allowing unauthorized WebSocket interactions with the nginx-ui instance under the context of an authenticated administrator. This could lead to unauthorized commands or data access through 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 and availability.
Mitigation Recommendations
Upgrade nginx-ui to version 2.3.5 or later, where the origin validation for WebSocket connections has been properly implemented. Until upgraded, users should be cautious about visiting untrusted webpages while logged into nginx-ui, as the vulnerability requires user interaction. No official patch links or vendor advisory were provided; therefore, verify the upgrade availability from the vendor or trusted sources.
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/28/2026, 6:07:19 AM
Last updated: 6/5/2026, 1:57:52 AM
Views: 206
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.