All vulnerabilities

Servers and applications

GHSA-gv2g-m37c-8wwh

Casdoor login accepts tokens from other organizations and, in the JWT-Standard format, resolves the account by display name

Severity
High 7.5
Published
25 Nov 2026
Last changed
25 Nov 2026
Added to UpHeron
25 Nov 2026
Fixed in
2.9.5
Weakness
Improper authentication (CWE-287)Authentication bypass by spoofing (CWE-290)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

When Casdoor login is configured, the Nginx UI callback verified only the signature of the Casdoor access token and then signed in the local account whose username equalled the token's name claim. It did not check which Casdoor organization the user belongs to, which application the token was issued for, or the token type. In the JWT-Standard token format, name carries the user's display name (the username is in preferred_username), and Casdoor lets users edit their display name by default.

Affects instances with Casdoor login configured. Depending on the Casdoor configuration, a person holding an ordinary Casdoor account could be signed in as an existing Nginx UI account with the same name, including an administrator:

  • a user of a different Casdoor organization that can sign in to the application (for example the built-in organization, or other organizations of a shared application);
  • with the JWT-Standard token format, any user of the configured organization who sets their…
From 0xJacky/nginx-ui's security advisory. Shortened; the full text is there.

Workarounds

Use the JWT or JWT-Empty token format for the Casdoor application used by Nginx UI, do not let users of other organizations sign in to it, and disable sign-up and guest sign-in for it. Alternatively, require a second factor for all accounts (MFARequired).

Workarounds as given by 0xJacky/nginx-ui's security advisory.

Affected software

SoftwareAffected versions
Nginx UIServers and applications · github:0xjacky/nginx-ui
  • From 2.0.0-beta.5 before 2.9.5

About Nginx UI

Yet another WebUI for Nginx

From its GitHub repository.
Docker Hub pulls
1,579,192Docker Hub, 22 Nov 2026
GitHub stars
11,815GitHub, 22 Nov 2026
Forks
924GitHub, 22 Nov 2026
Latest release
v3.0.6GitHub, 22 Nov 2026
Released
19 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
19 Feb 2021GitHub

References