CVE-2025-31726 Jenkins Stack Hammer Plugin Stores API Keys Unencrypted in Job `config.xml` Files
Attackers with Extended Read permission or file system access can view unencrypted API keys stored in Jenkins job configuration files.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-31726?
CVE-2025-31726 is a medium-severity vulnerability in Jenkins Stack Hammer Plugin, published on 2 Apr 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Jenkins Stack Hammer Plugin 1.0.6 and earlier stores Stack Hammer API keys unencrypted in job config.xml files on the Jenkins controller where they can be viewed by users with Extended Read permission, or access to the Jenkins controller file system.
Weakness: CWE-284
Which versions are affected by CVE-2025-31726?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:stackhammer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:stackhammer Maven | All versions to 1.0.6 | None |
org.jenkins-ci.plugins:stackhammer Maven | All versions to 1.0.6 | None |
Products include Jenkins Stack Hammer.
How do I fix CVE-2025-31726?
No fix has been published for CVE-2025-31726 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-31726 being exploited?
There is no known exploitation of CVE-2025-31726 in the wild and no public exploit code.
Sources
Also known as GHSA-2wxq-944j-5g2v.