Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with any low-privilege account
-
DeliverySend PATCH to /api/v1/users/{userId}/status
-
ExploitBypass missing @PreAuthorize check
-
ExecutionDisable root/admin accounts
-
ImpactLock administrators out of application
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to hold any valid authenticated session on a youlai-boot ≤2.21.1 instance (PR:L); no administrator or user-management permission is needed because the updateUserStatus handler in UserController (lines 114-126) lacks the @PreAuthorize('@ss.hasPerm('sys:user:edit')') guard that its sibling handlers enforce. The specific prerequisite is reachability of the PATCH /api/v1/users/{userId}/status endpoint by a logged-in non-privileged account. Limiting factors: a valid login is mandatory (not unauthenticated), no user interaction from a victim is required, it affects default configurations of the vulnerable versions, and the realistic impact is restricted to toggling account enable/disable status (administrative lockout or re-enabling disabled accounts) rather than data disclosure or code execution. |
| Impact | This is a moderate-priority, authenticated access-control flaw rather than a top-tier emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H, base 7.1 High) is internally consistent with the description: network-reachable, low attack complexity, but requires a low-privilege authenticated account (PR:L), with impact concentrated in availability (VA:H - locking admins out) and minor integrity (VI:L - flipping account status), and no confidentiality impact (VC:N). No EPSS score, CISA KEV listing, public POC, or SSVC decision data was provided in the input, so there is no positive signal of real-world or automated exploitation - exploitation status is therefore 'no public exploit identified at time of analysis.' The PR:L requirement is the main mitigating factor: an attacker needs valid credentials on the application before they can abuse the missing @PreAuthorize check, which argues against mass, unauthenticated internet-scale exploitation. The 7.1 rating is driven almost entirely by the self-inflicted-DoS potential (disabling root/admin accounts), not by code execution or data exposure; defenders should treat it as a privilege/authorization-boundary bug whose worst case is administrative lockout, not full compromise. |
| Exploit ScenarioDerived | A low-privileged but authenticated user of a youlai-boot ≤2.21.1 deployment sends a crafted PATCH request to /api/v1/users/{userId}/status targeting the root or an admin account, disabling it and locking legitimate administrators out of the panel. Because the updateUserStatus handler is missing the @PreAuthorize('@ss.hasPerm(...)') check present on sibling endpoints, the request succeeds despite the user lacking user-management permissions. No public exploit code was identified in the provided data, but the attack is trivial to reproduce from the vendor fix diff. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
Missing authorization in youlai-boot through 2.21.1 lets any authenticated user enable or disable arbitrary accounts - including root and administrator accounts - by sending a PATCH request to /api/v1/users/{userId}/status, because the updateUserStatus handler in UserController omits the @PreAuthorize('@ss.hasPerm('sys:user:edit')') guard applied to its sibling handlers. The practical impact is administrative lockout or the re-enabling of accounts an administrator had deliberately disabled; a valid login is mandatory (PR:L, authenticated per the assessed vector), no victim interaction is required, and no public exploit identified at time of analysis. This is a moderate-priority authenticated access-control flaw rather than a top-tier emergency, with impact limited to account-status toggling (integrity and availability) rather than data disclosure or code execution.
RemediationAI
Upstream fix available (commit); released patched version not independently confirmed - apply upstream commit 86a9b3e212ff5a5537b0c7050c7802aea7fe486f (https://github.com/youlaitech/youlai-boot/commit/86a9b3e212ff5a5537b0c7050c7802aea7fe486f), which restores @PreAuthorize('@ss.hasPerm('sys:user:edit')') on the affected handlers, and adopt the first tagged release containing it once published. If you cannot patch immediately, add an interim authorization rule gating PATCH /api/v1/users/{userId}/status behind the sys:user:edit permission (a servlet filter, Spring Security interceptor, or reverse-proxy rule), accepting that a misconfigured rule can break legitimate administrator status toggling; otherwise block the endpoint at the edge for all but trusted administrative source ranges, at the cost of blocking legitimate administrative use. Because exploitation requires a valid authenticated session (PR:L), reduce exposure by auditing and removing unused or low-privilege accounts, enforcing strong authentication, and monitoring for PATCH requests to /api/v1/users/*/status issued by non-administrative principals; note that any interim code change must be re-applied on upgrade, and verify the fix by confirming a non-privileged authenticated user receives 403 on that endpoint. Advisory references: https://www.vulncheck.com/advisories/youlai-boot-through-2.21.1-missing-authorization-in-user-status-update-endpoint and https://hackmd.io/@1ExmmukzRMWN7B4gQ4W-4Q/youlai-boot-role-menu-assignment-and-user-status-missing-authorization.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
youlai-boot is a Java/Spring Boot admin framework (youlaitech) whose REST controllers rely on Spring Security method-level authorization through @PreAuthorize expressions that delegate to a custom permission bean ('@ss.hasPerm(...)'). This finding is a CWE-862 Missing Authorization case: the UserController.updateUserStatus endpoint (lines 114-126 of v2.21.1) shipped without the @PreAuthorize('@ss.hasPerm('sys:user:edit')') annotation that equivalent handlers such as saveUser and deleteUsers carry, so the endpoint is reachable by any caller holding a valid session token rather than only by principals holding the sys:user:edit permission. The upstream fix commit 86a9b3e212ff5a5537b0c7050c7802aea7fe486f adds the missing annotations in both UserController and MenuController, confirming the root cause is an omitted authorization annotation in application code rather than a flaw in Spring Security itself. The affected surface is the PATCH handler at /api/v1/users/{userId}/status in youlai-boot up to and including 2.21.1.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
Remote network endpoint with low complexity but requires an authenticated low-privilege account (PR:L); no confidentiality impact, low integrity from status change, high availability from admin lockout.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
youlai-boot through 2.21.1 contains a missing authorization vulnerability that allows any authenticated user to enable or disable accounts because the updateUserStatus handler lacks a @PreAuthorize check. Attackers can send PATCH requests to /api/v1/users/{userId}/status to disable root or admin accounts, locking administrators out, or re-enable accounts an administrator has disabled.
Executive ViewAI
youlai-boot through 2.21.1 has an access-control weakness that lets any authenticated user toggle the enabled/disabled status of arbitrary accounts, including administrator and root accounts. This can cause administrative lockout or silently restore accounts that were intentionally disabled, disrupting operations and weakening account governance. Leadership should treat this as a high-priority identity and access management risk because it affects the integrity and availability of critical administrative access.
No vendor-released patch identified at time of analysis; interim mitigations include restricting access to /api/v1/users/{userId}/status to authorized administrators, enforcing the missing sys:user:edit authorization check at the API gateway or reverse proxy, monitoring and auditing account-status changes, and maintaining strict network segmentation for administrative APIs.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2026-99257
GHSA-6cm8-g463-wr86
NVD
CVE.org
EPSS
Exploit-DB