Improper Restriction of XML External Entity Reference Jenkins Token Macro PluginGHSA-g6h2-4x64-c59x
HIGHFix: jenkinsci/token-macro-plugin@004319fGHSA-g6h2-4x64-c59x is a high-severity (CVSS 7.5) XML External Entity (XXE) vulnerability in org.jenkins-ci.plugins:token-macro. A fix is available for org.jenkins-ci.plugins:token-macro — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.jenkins-ci.plugins:token-macroReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
An XML external entities (XXE) vulnerability in Jenkins Token Macro Plugin 2.7 and earlier allowed attackers able to control a the content of the input file for the "XML" macro to have Jenkins resolve external entities, resulting in the extraction of secrets from the Jenkins agent, server-side request forgery, or denial-of-service attacks.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.jenkins-ci.plugins:token-macro | all versions | 2.8org.jenkins-ci.plugins:token-macro:2.8 |
Affected Products
token macrojenkinsDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jenkins-ci.plugins:token-macro, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.jenkins-ci.plugins:token-macro to 2.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-g6h2-4x64-c59x is resolved across your whole dependency graph.
Workarounds
Restrict outbound requests from the affected component to an allowlist of hosts, block access to link-local and internal address ranges at the network layer, and require authentication on internal services so a forged request cannot reach them unauthenticated.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat OpenShift Container Platform 3.11 | atomic-openshift-0:3.11.129-1.git.0.bd4f2d5.el7 | RHSA-2019:1851 |
| Red Hat OpenShift Container Platform 4.1 | jenkins-2-plugins-0:4.1.1561471763-1.el7 | RHSA-2019:1636 |
Frequently Asked Questions
Is GHSA-g6h2-4x64-c59x in your dependencies?
Find it across Maven, including transitive dependencies.