CVE Watchtower

CVE-2026-120709org.geoserver.extension:gs-printing Server-Side Request Forgery (SSRF)

NVD

Vulnerability Summary

The GeoServer printing extension (mapfish-print) allowed an unauthenticated print request to supply legend icon URLs that were fetched without checking the `hosts:` allowlist in the print `config.yaml`. This allowed server-side requests to arbitrary hosts and reading local image files with `file://` URLs. Only print layouts containing a `!legends` block are affected. The default layouts shipped with GeoServer do not include `!legends`. Impact Server-side request forgery to any URL reachable from the GeoServer host, bypassing the `hosts:` allowlist. Local image files (PNG, JPEG, GIF, TIFF, BMP) can be embedded in the generated PDF using `file://` URLs. Other files are not returned, but differing errors reveal whether a file exists. Requires the printing extension to be installed and a print layout with `!legends`. Details Map layer URLs are validated by `Config.validateUri()` against the `hosts:` allowlist before fetching. The legend renderer (`LegendsBlock`) passed the `icon` values from the print spec `legends` array directly to `PDFUtils.loadImageFromUrl()` without this check. That method accepts plain file paths, `file://`, `data:` and any `http(s)://` URL. Icons containing `image%2Fsvg%2Bxml` were rendered through Batik, which could also fetch resources referenced by the SVG. Mitigation Remove the `!legends` block from the print layouts in `printing/config.yaml`, or remove the printing extension if it is not used. Resolution mapfish-print-v2 now loads legend icon URLs, including SVG icons, through a single method that applies the `hosts:` allowlist. GeoServer 2.27.7, 2.28.6, 3.0.2 mapfish-print-v2 2.3.7, 2.4.2, 2.5.1 References https://github.com/mapfish/mapfish-print-v2/pull/120 https://github.com/mapfish/mapfish-print-v2/pull/121 https://github.com/mapfish/mapfish-print-v2/pull/122 * https://osgeo-org.atlassian.net/browse/GEOS-12274
Severity Level
MEDIUM(4.0)
Published Date
Nov 23, 2026
Last Modified
Nov 23, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The web server receives a URL or similar request from an upstream component and retrieves its contents, but does not sufficiently ensure that the request is being sent to the expected destination.
CVSS v3.1 Base Metrics — Score 4.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeChanged
ConfidentialityLow
IntegrityNone
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • org.geoserver.extension:gs-printing >= 3.0.0, <= 3.0.1
  • org.geoserver.extension:gs-printing >= 2.28.0, <= 2.28.5
  • org.geoserver.extension:gs-printing <= 2.27.6
  • org.mapfish.print:print-lib <= 2.3.6
  • org.mapfish.print:print-lib >= 2.4.0, <= 2.4.1
  • org.mapfish.print:print-lib = 2.5.0
Patched Versions
  • org.geoserver.extension:gs-printing 3.0.2
  • org.geoserver.extension:gs-printing 2.28.6
  • org.geoserver.extension:gs-printing 2.27.7
  • org.mapfish.print:print-lib 2.3.7
  • org.mapfish.print:print-lib 2.4.2
  • org.mapfish.print:print-lib 2.5.1

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run org.geoserver.extension:gs-printing and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Nov 23, 2026Published
  • Nov 23, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new org.geoserver.extension:gs-printing CVEsYou are reading CVE-2026-120709. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 24, 2026 14:01 UTC