/

CVE-2026-26718

Severity:

CRITICAL RISK

(9.1)

CSRF (CWE-352) in XXL-Job Glue IDE Script Management

CVE-2026-26718

Deferred

Vulnerability type

Category:

Cross-Site Request Forgery

CWE:

CWE-352

Impact:

Unauthorized State-Changing Requests and Job Manipulation

Severity:

CRITICAL RISK

(9.1)

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

A Cross-Site Request Forgery (CSRF) flaw in xxl-job-admin 3.0.0 allows an attacker to trigger unauthorized updates to Glue IDE shell scripts via the web interface.

When a logged-in user visits a malicious page, crafted cross-origin requests can modify job scripts because the affected endpoint lacks CSRF token validation and accepts arbitrary HTTP methods.

Affected context

This vulnerability occurs in deployments of the xxl-job-admin web console that expose the Glue IDE shell script management functionality through a browser-accessible interface.

It is relevant when users stay logged into the admin UI while browsing other sites, and when the application does not enforce CSRF protections (such as synchronizer tokens or same-site checks) on state-changing Glue IDE endpoints.

Because the vulnerable endpoint also accepts arbitrary HTTP methods, a wide range of script modification operations may be reachable through cross-origin requests.

Exploit preconditions

  • Attack surface: Browser-based access to the xxl-job-admin web UI, specifically the Glue IDE shell script management endpoint.
  • Required access: A valid authenticated xxl-job-admin user session in the victim's browser; the attacker does not need direct credentials.
  • Trigger point: Victim visits an attacker-controlled or compromised web page while logged into xxl-job-admin, causing the browser to send forged requests to the Glue IDE endpoint.
  • Why exploitation is possible: The endpoint processes state-changing requests without validating anti-CSRF tokens or enforcing strict HTTP method and origin controls, so the browser will automatically attach session cookies to cross-origin requests.

Why this happens

The underlying issue is the absence of CSRF defenses on a state-changing administrative endpoint that manages Glue IDE shell scripts.

The request mapping is permissive, accepting arbitrary HTTP methods, and there is no validation mechanism (such as a per-request token tied to the user session or strict same-site policy) to distinguish legitimate form submissions from cross-origin, attacker-initiated requests.

This maps to CWE-352: Cross-Site Request Forgery (CSRF), where the application trusts authenticated browser requests without verifying that they were intentionally initiated by the user.

Potential impact

  • Unauthorized modification of Glue IDE shell scripts used by scheduled jobs
  • Insertion of malicious commands into job scripts that may execute on backend systems
  • Disruption of job workflows by altering or deleting critical scripts
  • Potential lateral impact if modified scripts interact with external systems, credentials, or sensitive data

General mitigation guidance

Mitigations focus on enforcing robust CSRF protections on all state-changing endpoints, especially administrative functions like Glue IDE script management.

Common defensive patterns include:

  • Requiring unpredictable, per-session or per-request CSRF tokens that are validated server-side for all script modification actions
  • Restricting allowed HTTP methods to the minimal set (e.g., POST/PUT/DELETE) and rejecting others
  • Leveraging same-site cookie attributes and origin checks to limit cross-origin request impact
  • Applying least-privilege principles to job management roles so only necessary users can modify Glue IDE scripts
  • Designing the admin interface so high-risk operations require explicit user re-confirmation or step-up verification

How teams detect issues like this

Detection typically involves a combination of code-level and behavioral analysis:

  • Static analysis rules or secure coding checklists that flag state-changing endpoints lacking CSRF validation
  • Code review practices that verify presence and consistent use of CSRF tokens or equivalent mechanisms on all non-idempotent routes
  • Security testing (including automated scanners) configured to probe for CSRF on admin and job-management endpoints
  • Runtime monitoring of unusual patterns of script modification requests, such as unexpected sources, methods, or burst activity correlated with user browsing behavior

Sources

SourceLink
github.comgithub.com/Ibrahim-Sartawi/CVE-2026-26718
xxl-job-admin.comxxl-job-admin.com

Frequently asked

questions

Yes, it can be exploited remotely if the xxl-job-admin UI is reachable from the victim's browser and the victim is logged in. The attacker only needs to lure the victim to a malicious or compromised web page to trigger forged requests.

The attacker does not need direct credentials. However, the victim must have an active authenticated session with xxl-job-admin, and their browser will implicitly provide the necessary cookies for the forged requests.

The most robust fix is to enforce CSRF protection on all state-changing Glue IDE endpoints by requiring and validating CSRF tokens, restricting HTTP methods, and ensuring that only deliberate, same-origin requests can modify scripts.

Adopt a framework-level CSRF defense by default for all non-idempotent routes, enforce least-privilege roles for administrative features, and include CSRF checks as a standard item in code review and automated security testing for every new or modified endpoint.

Find out what's already
exploitable in your codebase.