CVE-2018-1000202 — groovy-postbuild
MEDIUMCVE-2018-1000202 is a medium-severity (CVSS 5.4) Cross-site Scripting (XSS) vulnerability in org.jvnet.hudson.plugins:groovy-postbuild. A fix is available for org.jvnet.hudson.plugins:groovy-postbuild — see the affected versions and patch details below.
Jenkins Groovy Postbuild Plugin vulnerable to Cross-site Scripting
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.jvnet.hudson.plugins:groovy-postbuildReal-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
A persisted cross-site scripting vulnerability exists in Jenkins Groovy Postbuild Plugin 2.3.1 and older in various Jelly files that allows attackers able to control build badge content to define JavaScript that would be executed in another user's browser when that other user performs some UI actions.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.jvnet.hudson.plugins:groovy-postbuild | all versions | 2.4org.jvnet.hudson.plugins:groovy-postbuild:2.4 |
Affected Products
groovy postbuildjenkinsDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jvnet.hudson.plugins:groovy-postbuild, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.jvnet.hudson.plugins:groovy-postbuild to 2.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-1000202 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is CVE-2018-1000202 in your dependencies?
Find it across Maven, including transitive dependencies.