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-108651 Overview
CVE-2026-108651 is a missing authorization vulnerability [CWE-862] affecting JeecgBoot through version 3.9.5. The flaw resides in the getRolesByUserId handler of SystemApiController, exposed at GET /sys/api/getRolesByUserId. Any authenticated user can supply an arbitrary userId parameter and receive that user's assigned role codes. Low-privileged attackers can enumerate role assignments across the tenant and identify administrator accounts for follow-on attacks. The endpoint performs no authorization check beyond requiring a valid session, which breaks tenant and role boundaries in a multi-user deployment.
Critical Impact
Authenticated low-privileged users can enumerate role assignments for every account in a JeecgBoot deployment, enabling targeted attacks against administrators.
Affected Products
- JeecgBoot versions through 3.9.5
- jeecg-module-system component (SystemApiController)
- Deployments exposing /sys/api/getRolesByUserId to authenticated users
Discovery Timeline
- 2026-10-10 - CVE-2026-108651 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-108651
Vulnerability Analysis
JeecgBoot is an open-source low-code development platform built on Spring Boot. The SystemApiController class exposes internal system APIs consumed by other modules and the front-end. The getRolesByUserId handler returns the list of role codes assigned to a user identified by a userId query parameter.
The handler validates that the caller holds a valid session but does not verify that the caller is permitted to read role assignments for the requested userId. As a result, a tenant user with the lowest privilege level can request role data for any other account, including super administrators. Returned role codes typically map to privileges such as admin, tenant_admin, or custom role identifiers defined by the deployment.
See the VulnCheck advisory on JeecgBoot and the upstream source for SystemApiController for the vulnerable handler.
Root Cause
The handler is a classic broken object-level authorization issue. The code accepts a user-controlled userId, looks up roles for that user, and returns the result without checking whether the authenticated principal owns the record or holds an administrative role. The endpoint is also not restricted to internal callers, so the attack surface is any authenticated session.
Attack Vector
An attacker first authenticates with any valid low-privileged account, which can be a self-registered tenant user in deployments that allow registration. The attacker then issues GET /sys/api/getRolesByUserId?userId=<id> for sequential or enumerated user identifiers. The response discloses role codes, allowing the attacker to map the privilege hierarchy and target high-value accounts for credential-focused attacks such as phishing, password spraying, or exploitation of chained vulnerabilities.
A public proof-of-concept is available in the cve-request-poc repository.
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 AttacksDetection Methods for CVE-2026-108651
Indicators of Compromise
- Repeated GET requests to /sys/api/getRolesByUserId with varying userId values from a single session or source IP.
- HTTP 200 responses containing role code arrays returned to non-administrative user sessions.
- Short-interval sequential enumeration patterns against the /sys/api/ path from a newly registered or low-privileged account.
Detection Strategies
- Create a WAF or reverse-proxy rule that flags more than N requests to /sys/api/getRolesByUserId per session within a short time window.
- Correlate application logs with session identity to detect calls where the requested userId does not match the authenticated principal.
- Alert on any access to /sys/api/getRolesByUserId by sessions whose role set does not include administrative privileges.
Monitoring Recommendations
- Ingest JeecgBoot application and access logs into a centralized logging platform for correlation across sessions and users.
- Baseline normal API call volume per user and alert on deviations against the /sys/api/ prefix.
- Monitor newly created low-privilege accounts for unusual API reconnaissance within the first hours after registration.
How to Mitigate CVE-2026-108651
Immediate Actions Required
- Inventory all JeecgBoot deployments and identify instances running version 3.9.5 or earlier.
- Restrict network exposure of /sys/api/* endpoints to internal callers only using a reverse proxy or API gateway ACL.
- Disable self-service tenant registration on internet-facing instances until a patched release is applied.
- Rotate credentials and review access for any administrator accounts enumerated through the vulnerable endpoint.
Patch Information
At the time of publication, no fixed JeecgBoot release has been referenced in the NVD entry for CVE-2026-108651. Monitor the JeecgBoot GitHub repository and the VulnCheck advisory for a patched version and upgrade as soon as it is available. Until a vendor patch ships, apply the workarounds below.
Workarounds
- Add a reverse-proxy rule that blocks external HTTP requests to /sys/api/getRolesByUserId and other internal /sys/api/ endpoints.
- Patch SystemApiController.getRolesByUserId locally to verify that the authenticated principal matches the requested userId or holds an administrative role before returning role data.
- Deploy a WAF rule to rate-limit requests to /sys/api/getRolesByUserId per authenticated session and block sequential enumeration patterns.
# Example NGINX snippet to block external access to the vulnerable endpoint
location = /sys/api/getRolesByUserId {
allow 10.0.0.0/8; # internal service network
deny all; # block everything else
proxy_pass http://jeecgboot_upstream;
}
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

