Skip to main content
Vulnerability Database/CVE-2026-110216

CVE-2026-110216: youlai-boot Authorization Bypass Vulnerability

CVE-2026-110216 is an authorization bypass flaw in youlai-boot that allows authenticated users to enable or disable any account, including admin accounts. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-110216 Overview

CVE-2026-110216 is a missing authorization vulnerability in youlai-boot through version 2.21.1. The updateUserStatus handler in UserController.java lacks a @PreAuthorize check, exposing the endpoint to any authenticated user. Attackers can send PATCH requests to /api/v1/users/{userId}/status to enable or disable arbitrary accounts, including root and admin users. This allows a low-privileged attacker to lock administrators out of the application or re-activate accounts that administrators previously disabled. The flaw is classified under CWE-862: Missing Authorization.

Critical Impact

Any authenticated user can disable administrator accounts, denying legitimate operators access to the system and disrupting account lifecycle controls.

Affected Products

  • youlai-boot versions up to and including 2.21.1
  • UserController component (updateUserStatus handler)
  • MenuController component (updateMenuVisible handler, remediated in the same patch)

Discovery Timeline

  • 2026-10-13 - CVE-2026-110216 published to the National Vulnerability Database
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-110216

Vulnerability Analysis

youlai-boot is a Spring Boot based administrative framework that uses method-level security annotations to enforce role and permission checks. Most sensitive endpoints are protected by @PreAuthorize("@ss.hasPerm(...)"), which binds the handler to a specific permission string.

The updateUserStatus handler in UserController.java was shipped without this annotation. Spring Security therefore applied only the baseline authentication filter, which admits every logged-in user regardless of role. The route accepts a userId path variable and a status value, then updates the target account directly in the database.

An authenticated attacker with the lowest possible role can target administrator identifiers to disable those accounts. Because the application has no second gate on the service layer, the write succeeds and the targeted administrator can no longer authenticate. The same technique re-enables accounts that an administrator has intentionally disabled, bypassing containment actions.

Root Cause

The root cause is a missing authorization annotation on a state-changing REST endpoint. Spring Security defaults to permit-all for authenticated requests when no method-level constraint is present, so the controller inherited no permission requirement from the framework.

Attack Vector

Exploitation requires network access to the application and a valid low-privileged session. The attacker issues a PATCH request to /api/v1/users/{userId}/status, substituting the identifier of a root or admin account and the desired status value. No user interaction is required on the victim side.

java
// Vendor patch applied in commit 86a9b3e (related MenuController handler shown)
    @Operation(summary = "修改菜单显示状态")
    @PatchMapping("/{menuId}")
+   @PreAuthorize("@ss.hasPerm('sys:menu:edit')")
    public Result<?> updateMenuVisible(
            @Parameter(description = "菜单ID") @PathVariable Long menuId,
            @Parameter(description = "显示状态(1:显示;0:隐藏)") Integer visible

Source: GitHub commit 86a9b3e

java
// Related fix on UserController getUserForm handler
    @Operation(summary = "获取用户表单数据")
    @GetMapping("/{userId}/form")
+   @PreAuthorize("@ss.hasPerm('sys:user:edit')")
    @Log(value = "用户表单数据", module = LogModuleEnum.USER)
    public Result<UserForm> getUserForm(
            @Parameter(description = "用户ID") @PathVariable Long userId

Source: GitHub commit 86a9b3e

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-110216

Indicators of Compromise

  • PATCH requests to /api/v1/users/{userId}/status originating from non-administrator sessions.
  • Unexpected transitions of root or administrator accounts between enabled and disabled states in the sys_user table.
  • Authentication failures for administrator accounts shortly after a successful low-privileged login from the same source address.

Detection Strategies

  • Correlate HTTP access logs with the authenticated user's role to flag calls to user status endpoints made by non-privileged principals.
  • Monitor database audit logs for UPDATE statements against the user status column that are not attributable to an administrative session.
  • Alert on repeated PATCH calls iterating over sequential userId values, which indicates enumeration of accounts to disable.

Monitoring Recommendations

  • Enable application-level audit logging for every call to UserController.updateUserStatus with the acting principal recorded.
  • Forward web and application logs to a centralized SIEM and build detections for account-state changes attributed to low-privileged users.
  • Review account lockout and admin re-enable events daily until all instances are confirmed patched.

How to Mitigate CVE-2026-110216

Immediate Actions Required

  • Upgrade youlai-boot to a release that includes commit 86a9b3e212ff5a5537b0c7050c7802aea7fe486f or later.
  • Audit the sys_user table for unauthorized status changes and restore disabled administrator accounts.
  • Rotate credentials for administrator accounts that were disabled or re-enabled without authorization.

Patch Information

The vendor fixed the issue by adding @PreAuthorize("@ss.hasPerm('sys:user:edit')") to the affected handlers in UserController.java and MenuController.java. The patch is published in GitHub commit 86a9b3e. Additional analysis is available in the VulnCheck security advisory and the HackMD authorization writeup.

Workarounds

  • Place a reverse proxy or API gateway in front of the application and restrict PATCH requests to /api/v1/users/{userId}/status to administrator source identities.
  • Apply a local source patch that adds @PreAuthorize("@ss.hasPerm('sys:user:edit')") to updateUserStatus and rebuild the application.
  • Disable or restrict access to the Swagger UI and other API exploration tooling in production to raise the barrier for opportunistic abuse.
bash
# Verify the patched commit is present in your build
git log --oneline | grep 86a9b3e

# Example reverse-proxy rule (nginx) limiting the vulnerable endpoint
location ~ ^/api/v1/users/[0-9]+/status$ {
    limit_except GET { deny all; }
    allow 10.0.0.0/24;   # admin management network
    deny all;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.