HIGH 8.8

CVE-2026-57280

Jenkins Script Security Plugin sandbox bypass vulnerability

Description

Jenkins Script Security Plugin provides a sandbox feature that allows running user-provided scripts safely by intercepting and checking potentially unsafe operations.

Script Security Plugin 1402.v94c9ce464861 and earlier does not intercept the implicit type cast applied to each element of the iterated collection in a typed for loop (e.g. for (Type t in collection)), as this cast is performed during bytecode generation rather than in the transformed script AST.

This allows attackers able to provide sandboxed scripts to invoke constructors of arbitrary types without those invocations being checked by the sandbox, bypassing the sandbox protection. This can be used to execute arbitrary code on the Jenkins controller.

Script Security Plugin 1402.1405.vc96e74964250 updates the bundled groovy-sandbox library to a version that intercepts the implicit type cast applied to typed for loop elements, so those casts are checked by the sandbox.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.jenkins-ci.plugins » script-security
< 1402.1405.vc96e74964250
1402.1405.vc96e74964250

Blast radius

1affected artifacts
740affected versions
710dependent artifacts (est.)
89,243dependent versions

78% of the dependent artifacts (557) still pull an affected version in their latest release.

DepthDependent versions
Direct
22,591
2 hops
48,065
3 hops
14,251
4 hops
3,420
5 hops
733
6 hops
183

Most used dependents

Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.