CVE-2026-136836 in Gradle Plugininfo

Summary

by MITRE • 11/25/2026

Jenkins Gradle Plugin 2.21.1282.v024680ce00a_b_ and earlier does not configure its XML parser to prevent XML external entity (XXE) attacks when processing Maven extension configuration files from build workspaces.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/28/2026

The Jenkins Gradle Plugin, specifically versions 2.21.1282.v024680ce00a_b_ and earlier, contains a critical security flaw related to the handling of XML data during the processing of Maven extension configuration files within build workspaces. This vulnerability stems from an improper configuration of the underlying Extensible Markup Language (XML) parser used by the plugin. By default or due to oversight in implementation, the parser is not configured with safeguards against external entity resolution, leaving it susceptible to exploitation through crafted XML inputs that attempt to load resources from outside the intended scope.

This technical flaw aligns directly with Common Weakness Enumeration identifier CWE-611, which describes Improper Restriction of XML External Entity Reference. In a typical Jenkins build environment, users may configure Maven extensions or other plugin-specific settings via XML files located in their project workspaces. When the Gradle Plugin processes these configuration files to interpret build parameters or extension definitions, it parses the XML content without disabling external entity processing. An attacker who has access to write or modify files within a target Jenkins workspace can exploit this behavior by embedding malicious XML structures that reference local system files or remote servers controlled by the attacker.

The operational impact of this vulnerability is significant and multifaceted. The most immediate risk is server-side request forgery, where the vulnerable parser makes HTTP requests to arbitrary URLs specified in the external entity definition. This can be leveraged for port scanning internal networks, bypassing firewalls that restrict outbound traffic based on destination IP addresses but not content types. Furthermore, if the Jenkins instance runs with elevated privileges or has access to sensitive file systems, an attacker could potentially read local files such as configuration secrets, private keys, or other credentials stored on the server by referencing them via file protocol URIs in the malicious XML payload. This constitutes a severe information disclosure vulnerability that can lead to full system compromise when combined with other attack vectors.

From a threat modeling perspective, this vulnerability facilitates actions categorized under MITRE ATT&CK techniques such as T1046 Network Service Discovery and T1552 Unsecured Credentials if local file access is achieved. The exploitation does not require authentication beyond what is needed to submit a build or modify workspace files, making it particularly dangerous in environments where multiple teams share Jenkins instances with varying levels of trust.

To mitigate this risk, organizations must upgrade the Jenkins Gradle Plugin to version 2.21.1283.v024680ce00a_b_ or later, which includes patches that properly configure the XML parser to disable external entity resolution by default. Until an update is applied, administrators should restrict workspace access to trusted users only and consider implementing network-level controls to limit outbound connections from Jenkins agents if feasible. Additionally, enabling strict input validation on any user-supplied data processed as XML can provide a layer of defense in depth against similar injection attacks across the CI/CD pipeline infrastructure.

Responsible

Jenkins

Reservation

11/25/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00703

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!