CVE-2021-25640 — dubbo
MEDIUMCVE-2021-25640 is a medium-severity (CVSS 6.1) Server-Side Request Forgery (SSRF) vulnerability in org.apache.dubbo:dubbo. A fix is available for org.apache.dubbo:dubbo — see the affected versions and patch details below.
Server-Side Request Forgery in Apache Dubbo
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.apache.dubbo:dubbo☕com.alibaba:dubboReal-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
In Apache Dubbo prior to 2.6.9 and 2.7.9, the usage of parseURL method will lead to the bypass of white host check which can cause open redirect or SSRF vulnerability.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.dubbo:dubbo | ≥ 2.5.0&&< 2.7.10 | 2.7.10org.apache.dubbo:dubbo:2.7.10 |
| ☕Maven | com.alibaba:dubbo | ≥ 2.5.0&&< 2.6.9 | 2.6.9com.alibaba:dubbo:2.6.9 |
Affected Products
dubboapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.dubbo:dubbo, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.dubbo:dubbo to 2.7.10 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-25640 is resolved across your whole dependency graph.
Workarounds
Stop reflecting attacker-controlled destinations: resolve every redirect target against an allowlist of paths or hosts you own, prefer a server-side key over a full URL in the request, and reject absolute URLs entirely where the flow only ever needs a relative one.
Frequently Asked Questions
Is CVE-2021-25640 in your dependencies?
Find it across Maven, including transitive dependencies.