Critical · 9.9 Critical vulnerabilities CVE-2026-136835
Jenkins Script Security Plugin: Sandbox Bypass via @Builder Annotation (CVE-2026-136835)
A critical flaw in the Jenkins Script Security Plugin allows users with permission to run sandboxed scripts to escape the sandbox and execute arbitrary code, by abusing the @Builder annotation with a partially qualified class name. No fix is currently available.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A critical vulnerability has been identified in the Jenkins Script Security Plugin, a component used by Jenkins to restrict what sandboxed scripts and Pipelines are allowed to do. The flaw allows a sandbox escape, meaning that code intended to run in a restricted environment can instead execute with full privileges of the evaluating component. This is tracked as CVE-2026-136835 and carries the maximum practical severity rating for this class of issue.
What happened
The Jenkins Script Security Plugin, in version 1436.v1082791135e4 and earlier, fails to properly reject certain uses of the @Builder annotation. Specifically, when the annotation's builderStrategy member names an arbitrary class, and the annotation itself is referenced using a partially qualified class name, the plugin does not block it. This allows an attacker with permission to define and run sandboxed scripts — including Jenkins Pipelines — to break out of the sandbox and execute code outside its intended restrictions.
Technical cause
The root cause is an incomplete validation check: the plugin's sandbox protections do not account for @Builder annotations whose builderStrategy member references an arbitrary class when the annotation is invoked via a partially qualified class name. If a suitable class is present on the classpath of the component evaluating the script, this gap can be exploited to execute arbitrary code outside the sandbox. This issue is classified under CWE-94 (Code Injection).
Who is affected
Jenkins installations that use the Script Security Plugin and that grant users permission to define and run sandboxed scripts or Pipelines are affected. This includes environments where script authoring, even in a restricted sandbox, is delegated to multiple users — a common setup in shared or multi-team Jenkins deployments.
Affected versions
The advisory specifies that version 1436.v1082791135e4 and earlier of the Jenkins Script Security Plugin are affected. No other version identifiers were provided in the available facts, and the fact package does not specify a fixed version.
Fixes and mitigation
No fix is currently available according to the provided facts. Until a vendor update is released, administrators should limit which users are granted permission to define and run sandboxed scripts or Pipelines, since this permission is a prerequisite for exploitation.
Recommended action
Review and restrict permissions related to defining and running sandboxed scripts and Pipelines in Jenkins to only trusted users. Monitor for an official fix for the Script Security Plugin and apply it as soon as it becomes available. Until then, treat sandboxed script execution permissions as equivalent to broader code-execution trust.
PatchBriefing score
9.9 / 10 · Critical
Official CVSS: 9.9
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
Reported fixes
No fix is currently available according to the provided facts. Until a vendor update is released, administrators should limit which users are granted permission to define and run sandboxed scripts or Pipelines, since this permission is a prerequisite for exploitation.
How this was built
2 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
CVE.org database
Revision history
- Published
- Generated