CVE-2026-57281
Jenkins Script Security Plugin has a script security bypass vulnerability
Description
Jenkins Script Security Plugin 1402.v94c9ce464861 and earlier does not reject Groovy AST transformation annotations such as @CompileStatic and @TypeChecked that carry an extensions member, which causes Groovy to load and execute a script from the classpath at compile time, before the sandbox is applied.
This may allow attackers able to define and run sandboxed scripts to execute code outside the sandbox, in the rare case that a suitable Groovy script is present on the classpath of the component that evaluates the script.
The Jenkins security team has been unable to identify any Groovy source files in Jenkins core or plugins that would allow attackers to execute dangerous code. While the severity of this issue is declared as High due to the potential impact, successful exploitation is considered very unlikely.
Script Security Plugin 1402.1405.vc96e74964250 rejects any annotation carrying an extensions member during sandbox compilation, before Groovy can resolve or execute the referenced script.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » script-security | < 1402.1405.vc96e74964250 | 1402.1405.vc96e74964250 |
Blast radius
78% of the dependent artifacts (557) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.jenkins-ci.plugins.workflow » workflow-job470 usages
- org.jenkins-ci.plugins.workflow » workflow-cps439 usages
- org.jenkins-ci.plugins.workflow » workflow-basic-steps325 usages
- org.jenkins-ci.plugins.workflow » workflow-durable-task-step294 usages
- org.jenkins-ci.plugins » junit256 usages
- org.jenkins-ci.plugins.workflow » workflow-support253 usages
- org.jenkins-ci.plugins » git227 usages
- org.jenkins-ci.plugins » matrix-project204 usages
- org.jenkins-ci.plugins.workflow » workflow-aggregator136 usages
- org.jenkins-ci.plugins » token-macro134 usages
- org.jenkins-ci.plugins » mailer132 usages
- org.jenkins-ci.main » maven-plugin131 usages
- org.jenkins-ci.plugins.workflow » workflow-multibranch110 usages
- io.jenkins » configuration-as-code108 usages
- org.jenkins-ci.main » jenkins-test-harness99 usages
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.
References
| Advisory | NVD CVE-2026-57281 | nvd.nist.gov |
| Package | jenkinsci/script-security-plugin | github.com |
| Web | jenkinsci/script-security-plugin commit c96e749 | github.com |
| Web | security/advisory/2026-06-24 | jenkins.io |
| Web | data/csaf/v2/vex/2026/cve-2026-57281.json | security.access.redhat.com |
| Web | jenkinsci/script-security-plugin release 1402.1405.vc96e74964250 | github.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | security/cve/CVE-2026-57281 | access.redhat.com |
| Web | errata/RHSA-2026:60259 | access.redhat.com |
| Web | errata/RHSA-2026:60256 | access.redhat.com |
| Web | errata/RHSA-2026:60254 | access.redhat.com |
| Web | errata/RHSA-2026:60252 | access.redhat.com |
| Web | errata/RHSA-2026:60251 | access.redhat.com |
| Web | errata/RHSA-2026:60250 | access.redhat.com |
| Web | errata/RHSA-2026:60249 | access.redhat.com |
| Web | errata/RHSA-2026:60248 | access.redhat.com |
| Web | errata/RHSA-2026:60247 | access.redhat.com |
| Web | errata/RHSA-2026:60246 | access.redhat.com |
| Web | errata/RHSA-2026:60239 | access.redhat.com |
