NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
MEDIUM severity

CVE-2020-2305 — mercurial

MEDIUMFix: jenkinsci/mercurial-plugin@84af58b

CVE-2020-2305 is a medium-severity (CVSS 6.5) vulnerability in org.jenkins-ci.plugins:mercurial. A fix is available for org.jenkins-ci.plugins:mercurial — see the affected versions and patch details below.

XXE vulnerability in Jenkins Mercurial Plugin

Also known asGHSA-x58r-wxc3-7pqr
Published
Updated
Affected
4 pkgs
Patched
4 / 4
Exploits
None indexed
Exploitation data as of Nov 7, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
1.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs74th percentile — riskier than 74% of all scored CVEsHighest risk
0.00%0.67%1.33%1.99%0.5%1.5%May 26Sep 26Nov 26

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

4 pkgs affected
☕org.jenkins-ci.plugins:mercurial☕org.jenkins-ci.plugins:mercurial☕org.jenkins-ci.plugins:mercurial☕org.jenkins-ci.plugins:mercurial

Real-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

Jenkins Mercurial Plugin prior to 2.12, 2.10.1, 2.9.1, and 2.8.1 does not configure its XML changelog parser to prevent XML external entity (XXE) attacks.

This allows attackers able to control an agent process to have Jenkins parse a crafted changelog file that uses external entities for extraction of secrets from the Jenkins controller or server-side request forgery.

Mercurial Plugin 2.12, 2.10.1, 2.9.1, and 2.8.1 disables external entity resolution for its XML parser.

Affected Packages

4 total 4 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.jenkins-ci.plugins:mercurial≥ 2.11&&< 2.122.12org.jenkins-ci.plugins:mercurial:2.12
☕Mavenorg.jenkins-ci.plugins:mercurial≥ 2.10&&< 2.10.12.10.1org.jenkins-ci.plugins:mercurial:2.10.1
☕Mavenorg.jenkins-ci.plugins:mercurial≥ 2.9&&< 2.9.12.9.1org.jenkins-ci.plugins:mercurial:2.9.1
☕Mavenorg.jenkins-ci.plugins:mercurialall versions2.8.1org.jenkins-ci.plugins:mercurial:2.8.1

Affected Products

1 product · 1 configurations
Application
mercurialjenkins
≤ 2.11
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jenkins-ci.plugins:mercurial, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.jenkins-ci.plugins:mercurial to 2.12 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-2305 is resolved across your whole dependency graph.

  3. 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.

Red HatImportant
Workaround published by Red Hat
Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update as soon as possible.
Source: Red Hat security advisory for CVE-2020-2305 (CC BY 4.0)
ProductFixed inAdvisory
Red Hat OpenShift Container Platform 3.11jenkins-2-plugins-0:3.11.1612862361-1.el7RHSA-2021:0637
Red Hat OpenShift Container Platform 4.4jenkins-2-plugins-0:4.4.1611203637-1.el7RHSA-2021:0282
Red Hat OpenShift Container Platform 4.5jenkins-2-plugins-0:4.5.1610108899-1.el7RHSA-2021:0034
Red Hat OpenShift Container Platform 4.6jenkins-2-plugins-0:4.6.1608634578-1.el7RHSA-2021:0038

Frequently Asked Questions

Jenkins Mercurial Plugin prior to 2.12, 2.10.1, 2.9.1, and 2.8.1 does not configure its XML changelog parser to prevent XML external entity (XXE) attacks. This allows attackers able to control an agent process to have Jenkins parse a crafted changelog file that uses external entities for extraction of secrets from the Jenkins controller or server-side request forgery. Mercurial Plugin 2.12, 2.10.1, 2.9.1, and 2.8.1 disables external entity resolution for its XML parser.
O3 Security · Impact-Aware SCA

Is CVE-2020-2305 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2020-2305: mercurial SSRF — Fixed in 2.12