GHSA-cg9x-g3gm-h5h6

Suggest an improvement
Source
https://github.com/advisories/GHSA-cg9x-g3gm-h5h6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-cg9x-g3gm-h5h6/GHSA-cg9x-g3gm-h5h6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cg9x-g3gm-h5h6
Aliases
Published
2026-07-29T15:14:32Z
Modified
2026-07-29T15:30:33.458177293Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
veraPDF-validatio: Use of Default `DocumentBuilderFactory` leads to XXE When Processing Untrusted PDFs
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-611"
    ],
    "github_reviewed_at": "2026-07-29T15:14:32Z",
    "nvd_published_at": null,
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

Maven
org.verapdf:validation-model

Package

Name
org.verapdf:validation-model
View open source insights on deps.dev
Purl
pkg:maven/org.verapdf/validation-model

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.17.35
Fixed
1.30.2

Affected versions

1.*
1.18.1
1.18.2
1.18.7
1.18.8
1.20.1
1.20.2
1.22.1
1.22.2
1.24.1
1.24.2
1.26.1
1.26.2
1.26.5
1.28.1
1.28.2
1.30.1

Database specific

last_known_affected_version_range
"<= 1.30.1"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-cg9x-g3gm-h5h6/GHSA-cg9x-g3gm-h5h6.json"
org.verapdf:validation-model

Package

Name
org.verapdf:validation-model
View open source insights on deps.dev
Purl
pkg:maven/org.verapdf/validation-model

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.31.1
Fixed
1.31.71

Database specific

last_known_affected_version_range
"<= 1.31.70"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-cg9x-g3gm-h5h6/GHSA-cg9x-g3gm-h5h6.json"
org.verapdf:validation-model-jakarta

Package

Name
org.verapdf:validation-model-jakarta
View open source insights on deps.dev
Purl
pkg:maven/org.verapdf/validation-model-jakarta

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.17.35
Fixed
1.30.2

Affected versions

1.*
1.24.1
1.24.2
1.26.1
1.26.2
1.26.5
1.28.1
1.28.2
1.30.1

Database specific

last_known_affected_version_range
"<= 1.30.1"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-cg9x-g3gm-h5h6/GHSA-cg9x-g3gm-h5h6.json"
org.verapdf:validation-model-jakarta

Package

Name
org.verapdf:validation-model-jakarta
View open source insights on deps.dev
Purl
pkg:maven/org.verapdf/validation-model-jakarta

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.31.1
Fixed
1.31.71

Database specific

last_known_affected_version_range
"<= 1.31.70"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-cg9x-g3gm-h5h6/GHSA-cg9x-g3gm-h5h6.json"