CVE-2021-40822 — gs-main
HIGHCVE-2021-40822 is a high-severity (CVSS 7.5) Server-Side Request Forgery (SSRF) vulnerability in org.geoserver:gs-main. EPSS puts its 30-day exploitation probability at 19.3% (97th percentile). The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
GeoServer allows SSRF via the option for setting a proxy host
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.geoserver:gs-main☕org.geoserver:gs-mainReal-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
GeoServer through 2.18.5 and 2.19.x through 2.19.2 allows SSRF via the option for setting a proxy host.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.geoserver:gs-main | all versions | No fix |
| ☕Maven | org.geoserver:gs-main | ≥ 2.19.0 | No fix |
Affected Products
geoserverosgeoDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.geoserver:gs-main, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Remediation status
The records we use list no patched version of org.geoserver:gs-main for CVE-2021-40822. Check the maintainer's advisory, and where your build allows, override or pin the dependency away from the vulnerable range.
Mitigate without a patch
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.
How to detect CVE-2021-40822
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2021-40822 -u https://target- Template
- Geoserver - Server-Side Request Forgery
- Severity
- high
- Impact
- Successful exploitation of this vulnerability can lead to unauthorized access to internal resources, data leakage, and potential remote code execution.
- Remediation
- Apply the latest security patches or updates provided by the Geoserver project to mitigate the SSRF vulnerability.
Template by ProjectDiscovery nuclei-templates (For3stCo1d, aringo-bf), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2021-40822 in your dependencies?
Find it across Maven, including transitive dependencies.