CVE-2026-57281: Jenkins Script Security Plugin has a script security bypass vulnerability
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.
Published Jun 24, 2026 · Updated Sep 25, 2026
Affected packages
org.jenkins-ci.plugins:script-security
- Ecosystem
- Maven
- Affected
- < 1402.1405.vc96e74964250
- Fixed in
- 1402.1405.vc96e74964250
- Check
mvn dependency:tree -Dincludes=org.jenkins-ci.plugins:script-security
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-57281
- https://www.jenkins.io/security/advisory/2026-06-24/#SECURITY-3793
- https://access.redhat.com/security/cve/CVE-2026-57281
- https://bugzilla.redhat.com/show_bug.cgi?id=2492200
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-57281.json
- https://access.redhat.com/errata/RHSA-2026:60239
- https://access.redhat.com/errata/RHSA-2026:60246
- https://access.redhat.com/errata/RHSA-2026:60247
- https://access.redhat.com/errata/RHSA-2026:60248
- https://access.redhat.com/errata/RHSA-2026:60249
- https://access.redhat.com/errata/RHSA-2026:60250
- https://access.redhat.com/errata/RHSA-2026:60251
- https://access.redhat.com/errata/RHSA-2026:60252
- https://access.redhat.com/errata/RHSA-2026:60254
- https://access.redhat.com/errata/RHSA-2026:60256
- https://access.redhat.com/errata/RHSA-2026:60259
- https://github.com/jenkinsci/script-security-plugin/commit/c96e7496425031182b6fc11ef1c55b9ae4fa7cc2
- https://github.com/jenkinsci/script-security-plugin/releases/tag/1402.1405.vc96e74964250
- https://github.com/advisories/GHSA-cfj9-2vgr-hpxp
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-57280
Jenkins Script Security Plugin sandbox bypass vulnerability
high8.8Jun 24, 2026CVE-2026-42519
Jenkins Script Security Plugin: Missing permission checks allow enumeration of pending and approved classpaths
medium4.3Apr 29, 2026CVE-2024-52549
Missing permission check in Jenkins Script Security Plugin
medium4.3Nov 13, 2024CVE-2024-34144
Jenkins Script Security Plugin has sandbox bypass vulnerability involving crafted constructor bodies
high8.8May 2, 2024CVE-2024-34145
Jenkins Script Security Plugin sandbox bypass vulnerability
high8.8May 2, 2024
