/

CVE-2026-106708

Severity:

HIGH RISK

(8.8)

CSRF (CWE-352) in XXL-JOB User Management Endpoints

CVE-2026-106708

Deferred

Vulnerability type

Category:

Cross-Site Request Forgery

CWE:

CWE-352

Impact:

Unauthorized account and access-control changes

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

XXL-JOB contains a cross-site request forgery vulnerability in user management endpoints that lack CSRF protection and do not restrict the HTTP method used. If an authenticated administrator visits a malicious page, an attacker may cause the browser to submit unauthorized user creation, modification, or deletion requests.

XXL-JOB contains a cross-site request forgery vulnerability in user management endpoints that lack CSRF protection and do not restrict the HTTP method used. If an authenticated administrator visits a malicious page, an attacker may cause the browser to submit unauthorized user creation, modification, or deletion requests.

Affected context

The issue occurs in XXL-JOB deployments where the user management controller exposes the /user/insert, /user/update, and /user/delete endpoints without effective CSRF defenses. Risk is higher when these endpoints rely on browser-managed authentication credentials and are reachable by users with administrative permissions.

The issue occurs in XXL-JOB deployments where the user management controller exposes the /user/insert, /user/update, and /user/delete endpoints without effective CSRF defenses. Risk is higher when these endpoints rely on browser-managed authentication credentials and are reachable by users with administrative permissions.

Exploit preconditions

  • Attack surface: Web-based XXL-JOB user management endpoints
  • Required access: A victim must be authenticated to the affected administration interface; the attacker generally does not need direct administrative credentials
  • Trigger point: A victim's browser submits a request to a user insertion, update, or deletion endpoint
  • Why exploitation is possible: The endpoints lack request-origin validation or CSRF tokens, and insufficient HTTP method restrictions may allow unintended request forms to reach state-changing operations
  • Attack surface: Web-based XXL-JOB user management endpoints
  • Required access: A victim must be authenticated to the affected administration interface; the attacker generally does not need direct administrative credentials
  • Trigger point: A victim's browser submits a request to a user insertion, update, or deletion endpoint
  • Why exploitation is possible: The endpoints lack request-origin validation or CSRF tokens, and insufficient HTTP method restrictions may allow unintended request forms to reach state-changing operations

Why this happens

The vulnerability results from treating browser-authenticated state-changing requests as trustworthy without requiring proof that they originated from the legitimate application. Missing CSRF tokens, absent origin checks, and permissive HTTP method handling allow a third-party site to induce requests using the victim's existing session. This behavior maps to CWE-352: Cross-Site Request Forgery.

The vulnerability results from treating browser-authenticated state-changing requests as trustworthy without requiring proof that they originated from the legitimate application. Missing CSRF tokens, absent origin checks, and permissive HTTP method handling allow a third-party site to induce requests using the victim's existing session. This behavior maps to CWE-352: Cross-Site Request Forgery.

Potential impact

  • An attacker may create unauthorized XXL-JOB users
  • Existing user accounts or permissions could be modified
  • Administrative users could be deleted or disrupted
  • Access-control changes could enable further unauthorized activity
  • Administrative workflows and job-management operations may be affected
  • An attacker may create unauthorized XXL-JOB users
  • Existing user accounts or permissions could be modified
  • Administrative users could be deleted or disrupted
  • Access-control changes could enable further unauthorized activity
  • Administrative workflows and job-management operations may be affected

General mitigation guidance

Mitigation generally focuses on protecting every state-changing browser request and reducing reliance on ambient authentication credentials.

Common defensive patterns include:

  • Requiring unpredictable, session-bound CSRF tokens for state-changing requests
  • Validating trusted Origin or Referer headers as an additional control where appropriate
  • Restricting state-changing operations to intended HTTP methods, typically POST, PUT, PATCH, or DELETE
  • Rejecting unexpected content types and enforcing strict request schemas
  • Using secure, appropriately scoped cookie settings such as SameSite protections
  • Applying least privilege to administrative accounts and separating high-risk operations
  • Avoiding state changes through GET requests and maintaining consistent authorization checks

Mitigation generally focuses on protecting every state-changing browser request and reducing reliance on ambient authentication credentials.

Common defensive patterns include:

  • Requiring unpredictable, session-bound CSRF tokens for state-changing requests
  • Validating trusted Origin or Referer headers as an additional control where appropriate
  • Restricting state-changing operations to intended HTTP methods, typically POST, PUT, PATCH, or DELETE
  • Rejecting unexpected content types and enforcing strict request schemas
  • Using secure, appropriately scoped cookie settings such as SameSite protections
  • Applying least privilege to administrative accounts and separating high-risk operations
  • Avoiding state changes through GET requests and maintaining consistent authorization checks

How teams detect issues like this

Organizations can identify similar issues through:

  • Static analysis for controller methods that mutate state without CSRF middleware or token validation
  • Code review checks for user-management endpoints accepting multiple or unintended HTTP methods
  • Testing that cross-origin requests fail without a valid CSRF token
  • Runtime monitoring for unusual user creation, permission changes, or deletion requests
  • Policy enforcement requiring CSRF protection on browser-session-based state-changing routes
  • Automated application security testing that evaluates origin handling and method restrictions

Organizations can identify similar issues through:

  • Static analysis for controller methods that mutate state without CSRF middleware or token validation
  • Code review checks for user-management endpoints accepting multiple or unintended HTTP methods
  • Testing that cross-origin requests fail without a valid CSRF token
  • Runtime monitoring for unusual user creation, permission changes, or deletion requests
  • Policy enforcement requiring CSRF protection on browser-session-based state-changing routes
  • Automated application security testing that evaluates origin handling and method restrictions

Sources

SourceLink
github.comgithub.com/tao0845/CVE-Request/blob/main/CVE-2026-106708.md
github.comgithub.com/xuxueli/xxl-job

Frequently asked

questions

Yes, it may be exploitable through a malicious web page or other cross-origin content if an authenticated user can reach the affected XXL-JOB interface and the browser includes the user's session credentials.

Usually not. The attacker generally needs to cause an authenticated user with sufficient permissions to submit the request, while the victim's authorization determines what action succeeds.

Apply robust CSRF protection to every state-changing endpoint, restrict HTTP methods to their intended uses, and maintain independent authorization checks.

Use framework-provided CSRF defenses, prohibit state changes through GET requests, enforce secure cookie policies, and include cross-origin request tests in code review and security testing.

Yes, it may be exploitable through a malicious web page or other cross-origin content if an authenticated user can reach the affected XXL-JOB interface and the browser includes the user's session credentials.

Usually not. The attacker generally needs to cause an authenticated user with sufficient permissions to submit the request, while the victim's authorization determines what action succeeds.

Apply robust CSRF protection to every state-changing endpoint, restrict HTTP methods to their intended uses, and maintain independent authorization checks.

Use framework-provided CSRF defenses, prohibit state changes through GET requests, enforce secure cookie policies, and include cross-origin request tests in code review and security testing.

Find out what's already
exploitable in your codebase.