External risk intelligence

Jenkins Script Security Plugin Sandbox Escape via Improper Annotation Handling

CVE advisorySeverity: CRITICAL (CVSS 9.9)

CVE-2026-136835

The vulnerability resides in the Jenkins Script Security Plugin, which requires an attacker to already possess permissions to define and execute sandboxed scripts (such as Pipelines) within the Jenkins environment. While Jenkins instances can be internet-facing, this specific vulnerability is an internal logical flaw requiring authenticated access and the ability to run scripts, making direct public-internet exploitation unlikely.

Code Injection

Halo Surface Signal: 2 out of 5 — less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory concerns a vulnerability in the Jenkins Script Security Plugin that could allow authenticated users to execute code beyond the sandbox. The issue arises when the plugin improperly handles certain annotations, potentially leading to unauthorized code execution if a specific class is available on the system's classpath.

  • A plugin flaw allows code execution beyond sandbox.
  • Internal access needed; direct external threat is unlikely.
  • Focus on confirming relevance and exposure within Jenkins.

Attack Path

How an attacker could exploit the issue

An attacker with the ability to define and run sandboxed scripts, such as Pipelines, can leverage a flaw in how the Jenkins Script Security Plugin handles `@Builder` annotations. By referencing a builder strategy with an arbitrary class name using a partially qualified name, and if a suitable class exists on the classpath, the attacker can bypass sandbox restrictions and execute code on the Jenkins system. This could lead to arbitrary code execution.

  • Requires authenticated access to run sandboxed scripts.
  • Triggered by a specially crafted `@Builder` annotation.
  • Risk of arbitrary code execution outside the sandbox.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an attacker with existing permissions to run sandboxed scripts to execute arbitrary code outside the sandbox. This could occur when the Script Security Plugin encounters a specially crafted @Builder annotation that references an arbitrary class, provided that class is available on the Jenkins component's classpath.

  • Code execution on the Jenkins server.
  • Script execution bypasses sandbox restrictions.
  • Compromise of the Jenkins environment.

Operational Fix

Recommended remediation, mitigation, and detection steps

To address this vulnerability, platform and security teams should collaborate to identify all Jenkins instances running the Script Security Plugin. The immediate first step is to confirm the presence and accessibility of the affected plugin, assess business criticality, and then ascertain the appropriate owner for remediation planning.

  • Platform/Security teams own the issue.
  • Verify Jenkins instances and plugin reachability.
  • Plan remediation based on identified risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the Jenkins Script Security Plugin?

The Jenkins Script Security Plugin is a foundational component used to protect Jenkins environments by sandboxing scripts, such as Pipelines. It ensures that user-defined code runs in a restricted environment, preventing unauthorized access to the underlying system or sensitive data. By controlling which methods and classes can be called, it serves as a critical security layer for automation workflows.

What does CWE-94 mean regarding CVE-2026-136835?

CWE-94 refers to Improper Control of Generation of Code, commonly known as Code Injection. In the context of CVE-2026-136835, this means the plugin fails to properly validate the @Builder annotation. Because the plugin does not correctly restrict the classes referenced in these annotations, an attacker can trick the system into executing arbitrary code that should have been blocked by the security sandbox.

How is this sandbox escape triggered?

An attacker triggers this by submitting a specially crafted @Builder annotation using a partially qualified class name. Importantly, this does not happen by accident; it requires the attacker to already have permission to define and run scripts within Jenkins. The flaw is not triggered if the attacker lacks script execution permissions or if a suitable target class is not present on the component's classpath.

Why does Halo Surface Signal label this as unlikely?

Halo Surface Signal assigns an 'Unlikely' label because the vulnerability requires pre-existing authenticated access to the Jenkins environment. While the Jenkins instance itself might be internet-facing, the specific logic flaw requires an attacker to be an authenticated user who is already authorized to define and execute sandboxed scripts, making direct exploitation from the public internet improbable.

Do I need to take action if I use Jenkins?

Yes. Start by identifying all Jenkins instances in your environment that utilize the Script Security Plugin. Once you have an inventory, assess the business criticality of those systems and coordinate with your platform and security teams to prioritize and plan for the necessary updates or configuration changes to secure the sandbox.

References