VDB
Sign up
MEDIUM6.5

GHSA-m68x-cc2f-gr5h

Unsafe methods in the default list of approved signatures in Jenkins Script Security Plugin

Quick fix

GHSA-m68x-cc2f-gr5h — org.jenkins-ci.plugins:script-security: upgrade to the fixed version with the command below.

# pom.xml: bump <version>1.29.1</version> for org.jenkins-ci.plugins:script-security

Details

The default whitelist included the following unsafe entries: DefaultGroovyMethods.putAt(Object, String, Object); DefaultGroovyMethods.getAt(Object, String). These allowed circumventing many of the access restrictions implemented in the script sandbox by using e.g. currentBuild['rawBuild'] rather than currentBuild.rawBuild. Additionally, the following entries allowed accessing private data that would not be accessible otherwise due to script security: groovy.json.JsonOutput.toJson(Closure); groovy.json.JsonOutput.toJson(Object).

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.jenkins-ci.plugins:script-security
Introduced in: 0Fixed in: 1.29.1
Fix# pom.xml: bump <version>1.29.1</version> for org.jenkins-ci.plugins:script-security

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:maven/org.jenkins-ci.plugins/script-security"]}'