Skip to content

JWT 身份认证绕过导致跨实例管理员令牌复用

Critical
xerrors published GHSA-6959-99pq-c56x May 25, 2026

Package

No package listed

Affected versions

< 0.6.2

Patched versions

0.6.2

Description

The project's authentication mechanism contains a flaw. In affected versions, the system does not sufficiently validate the identity token in the Authorization header — only performing a validity check. This allows an administrator token generated in another deployment instance or local testing environment to be used to access the backend management interfaces of a different affected instance.

An attacker who obtains or constructs an acceptable administrator Authorization token may bypass normal login authentication and gain administrator privileges. This vulnerability could allow an attacker to access system configurations, invoke backend management APIs, create administrator accounts, and ultimately take over the system backend.

Affected versions: all versions prior to 0.6.2.

Impact

The project’s identity authentication mechanism has a vulnerability. In affected versions, the system does not fully validate the identity token in the Authorization header, only checking its validity. As a result, administrator tokens generated in other deployment instances or local test environments may be used to access the backend management interfaces of another affected instance.

If an attacker obtains or constructs an acceptable administrator Authorization token, they may bypass the target system’s normal login authentication and gain administrator privileges. This vulnerability could allow the attacker to access system configurations, invoke backend management interfaces, create administrator users, and ultimately take over the system backend.

Affected versions: all versions prior to 0.6.2.

Patch

This issue has been fixed in version 0.6.2.

Users are advised to upgrade to version 0.6.2 or later as soon as possible.

Temporary Mitigations

Before upgrading, users are advised to implement the following temporary measures:

  • Set the environment variable JWT_SECRET_KEY to a non-default value, and configure a unique, sufficiently strong JWT/authentication key for each deployment instance.
  • Do not expose backend management interfaces directly to the public network.

References

  • Public issue: #673
  • Fix version: 0.6.2
  • Fix commit: 1e8b20e

Acknowledgments

Thanks to @Gal0nYu for reporting this issue.

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

CVE ID

CVE-2026-50561

Weaknesses

No CWEs

Credits