CVE-2026-54082: veraPDF-validatio Use Of Default `DocumentBuilderFactory` Leads Vulnerability

MODERATE
Advisory Identifier: GHSA-cg9x-g3gm-h5h6
CVSS 6.5
CWE-611
Published
Advisory Summary

CVE-2026-54082 is a MODERATE (CVSS 6.5) use of default `documentbuilderfactory` leads vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting veraPDF-validatio libraries in the Maven ecosystem. The issue involves use of default `documentbuilderfactory` leads to xxe when processing untrusted pdfs. Remediation is available by upgrading affected packages to version 1.30.2, 1.31.71.

CVE-2026-54082 at a Glance

CVE Identifier CVE-2026-54082
GHSA Identifier GHSA-cg9x-g3gm-h5h6
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product veraPDF-validatio
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:U/C:L/I:L/A:N).

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

How to Fix CVE-2026-54082

To remediate this vulnerability, upgrade all affected veraPDF-validatio 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.verapdf:validation-model fixed: 1.30.2
<dependency>
    <groupId>org.verapdf</groupId>
    <artifactId>validation-model</artifactId>
    <version>1.30.2</version>
</dependency>
org.verapdf:validation-model fixed: 1.31.71
<dependency>
    <groupId>org.verapdf</groupId>
    <artifactId>validation-model</artifactId>
    <version>1.31.71</version>
</dependency>
org.verapdf:validation-model-jakarta fixed: 1.30.2
<dependency>
    <groupId>org.verapdf</groupId>
    <artifactId>validation-model-jakarta</artifactId>
    <version>1.30.2</version>
</dependency>
org.verapdf:validation-model-jakarta fixed: 1.31.71
<dependency>
    <groupId>org.verapdf</groupId>
    <artifactId>validation-model-jakarta</artifactId>
    <version>1.31.71</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.verapdf

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.verapdf

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

Note: The mvn dependency:tree -Dincludes=org.verapdf 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 veraPDF-validatio, 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 veraPDF-validation has an XML External Entity (XXE) vulnerability in two PDF parsing paths (validate and `GFPDAcroForm.getdynamicRender()`). A malicious/crafted PDF supplied to a veraPDF consumer can lead to the expansion of external entities while parsing rich-text annotation/form-field values or XFA configurations, allowing local file disclosure and potentially outbound network requests depending on the runtime (host) environment. ### Details Consumers that utilise either the `PDFAValidator.validate(...)` or `GFPDAcroForm(acroForm).getdynamicRender()` APIs to process untrusted PDFs are vulnerable to XXE exploits. Both vulnerable paths share the same root cause: the underlying source binds a default `DocumentBuilderFactory` and immediately calls `newDocumentBuilder()` which does not disable parsing of DTDs, external entities, XInclude, or external resource access directives in XML schemas. This is an XXE vulnerability affecting applications that use veraPDF's affected APIs to parse or validate untrusted PDFs. An attacker could craft a PDF that includes crafted XML external entities that when processed by vulnerable consumers could lead to local file disclosure and server-side outbound requests to attacker-controlled endpoints, depending on JVM XML parser behavior and network controls on the host.

CVE-2026-54082 Affected veraPDF-validatio Versions

4 component(s)
Fixed Versions:
1.30.21.31.71
Product / Package Ecosystem Affected Versions Fixed Version
org.verapdf:validation-model
Maven
≥ 1.17.35
< 1.30.2
1.30.2
org.verapdf:validation-model
Maven
≥ 1.31.1
< 1.31.71
1.31.71
org.verapdf:validation-model-jakarta
Maven
≥ 1.17.35
< 1.30.2
1.30.2
org.verapdf:validation-model-jakarta
Maven
≥ 1.31.1
< 1.31.71
1.31.71

References

Frequently Asked Questions

What is CVE-2026-54082?
CVE-2026-54082 is a security vulnerability in veraPDF-validatio involving Use of Default `DocumentBuilderFactory` leads to XXE When Processing Untrusted PDFs under CWE-611: Improper Restriction of XML External Entity Reference.
Which veraPDF-validatio versions are affected?
Affected versions include releases prior to 1.30.2, 1.31.71 across affected packages: org.verapdf:validation-model, org.verapdf:validation-model-jakarta.
What version fixes CVE-2026-54082?
Upgrading to 1.30.2, 1.31.71 (or the latest patched release for your respective branch) resolves the vulnerability.
Is validation-model affected?
Yes, org.verapdf:validation-model is affected in releases prior to 1.30.2, 1.31.71. Upgrade your dependency to 1.30.2, 1.31.71 or later.
Is validation-model-jakarta affected?
Yes, org.verapdf:validation-model-jakarta is affected in releases prior to 1.30.2, 1.31.71. Upgrade your dependency to 1.30.2, 1.31.71 or later.
What is the CVSS score of CVE-2026-54082?
CVE-2026-54082 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-54082?
CVE-2026-54082 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-54082?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.verapdf'. 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-cg9x-g3gm-h5h6",
  "modified" : "2026-07-29T15:14:32Z",
  "published" : "2026-07-29T15:14:32Z",
  "aliases" : [ "CVE-2026-54082" ],
  "summary" : "veraPDF-validatio: Use of Default `DocumentBuilderFactory` leads to XXE When Processing Untrusted PDFs",
  "details" : "### Summary\n\nveraPDF-validation has an XML External Entity (XXE) vulnerability in two PDF parsing paths (validate and `GFPDAcroForm.getdynamicRender()`). A malicious/crafted PDF supplied to a veraPDF consumer can lead to the expansion of external entities while parsing rich-text annotation/form-field values or XFA configurations, allowing local file disclosure and potentially outbound network requests depending on the runtime (host) environment.\n\n### Details\n\nConsumers that utilise either the `PDFAValidator.validate(...)` or `GFPDAcroForm(acroForm).getdynamicRender()` APIs to process untrusted PDFs are vulnerable to XXE exploits. \n\nBoth vulnerable paths share the same root cause: the underlying source binds a default `DocumentBuilderFactory` and immediately calls `newDocumentBuilder()` which does not disable parsing of DTDs, external entities, XInclude, or external resource access directives in XML schemas.\n\nThis is an XXE vulnerability affecting applications that use veraPDF's affected APIs to parse or validate untrusted PDFs.\n\nAn attacker could craft a PDF that includes crafted XML external entities that when processed by vulnerable consumers could lead to local file disclosure and server-side outbound requests to attacker-controlled endpoints, depending on JVM XML parser behavior and network controls on the host.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.verapdf:validation-model"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.17.35"
      }, {
        "fixed" : "1.30.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.30.1"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.verapdf:validation-model"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.31.1"
      }, {
        "fixed" : "1.31.71"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.31.70"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.verapdf:validation-model-jakarta"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.17.35"
      }, {
        "fixed" : "1.30.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.30.1"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.verapdf:validation-model-jakarta"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.31.1"
      }, {
        "fixed" : "1.31.71"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.31.70"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/veraPDF/veraPDF-validation/security/advisories/GHSA-cg9x-g3gm-h5h6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/veraPDF/veraPDF-validation/pull/730"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/veraPDF/veraPDF-validation/commit/94caa46c1a594512247fbd46c808edae39469542"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/veraPDF/veraPDF-validation/commit/cacd9436d0de40b0e58cc7d2dbb06451619e61ec"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/veraPDF/veraPDF-validation"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-29T15:14:32Z",
    "nvd_published_at" : null
  }
}