All vulnerabilities

Servers and applications

CVE-2026-34403

Cross-Site WebSocket Hijacking (CSWSH) via missing origin validation on all WebSocket endpoints

Severity
Medium 5.5
Published
18 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.3.5
Exploit chance
0.2% in the next 30 daysHigher than 7% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
CWE-1385
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Change data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/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
Also known as
GHSA-78mf-482w-62qj
Sources
NVD, Project advisories (GitHub)

Description

All WebSocket endpoints in nginx-ui use a gorilla/websocket Upgrader with CheckOrigin unconditionally returning true, allowing Cross-Site WebSocket Hijacking (CSWSH). Combined with the fact that authentication tokens are stored in browser cookies (set via JavaScript without HttpOnly or explicit SameSite attributes), a malicious webpage can establish authenticated WebSocket connections to the nginx-ui instance when a logged-in administrator visits the attacker-controlled page.

The Vue.js frontend stores JWT tokens as cookies without security attributes (app/src/pinia/moudule/user.ts):

The backend middleware accepts tokens from cookies (internal/middleware/middleware.go):

An attacker can create a malicious webpage that, when visited by an authenticated nginx-ui administrator, silently:

  • Steals sensitive server information -- nginx configuration, performance metrics, CPU/memory/disk usage, network traffic statistics, and system events
  • Reads nginx log files -- potentially…
From 0xJacky/nginx-ui's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Nginx UIServers and applications · cpe:a:nginxui:nginx_ui
  • Every version before 2.3.5
Nginx UIServers and applications · github:0xjacky/nginx-ui
  • Every version before 2.3.5

About Nginx UI

Yet another WebUI for Nginx

From its GitHub repository.
Docker Hub pulls
1,512,532Docker Hub, 15 Nov 2026
GitHub stars
11,783GitHub, 15 Nov 2026
Forks
921GitHub, 15 Nov 2026
Latest release
v3.0.3GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
19 Feb 2021GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-34403
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-34403
  • GitHub Advisory Database https://github.com/advisories/GHSA-78mf-482w-62qj
  • github.com https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-78mf-482w-62qj