GHSA-3jh7-wm29-q568

Suggest an improvement
Source
https://github.com/advisories/GHSA-3jh7-wm29-q568
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-3jh7-wm29-q568/GHSA-3jh7-wm29-q568.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3jh7-wm29-q568
Aliases
Published
2026-07-29T15:11:43Z
Modified
2026-07-29T15:15:34.024736853Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
veraPDF Validation XXE via Rich Text
Details

Summary

Description An XML External Entity Injection (CWE-611) vulnerability in veraPDF allows a remote attacker to read arbitrary files on the server file system and perform Server-Side Request Forgery by submitting a crafted PDF containing a malicious rich-text (/RC or /RV) entry. This affects all current versions of veraPDF-validation.

Details

The vulnerability resides in veraPDF-validation validation-model/src/main/java/org/verapdf/gf/model/tools/DictionaryKeysHelper.java within the getRichTextStringOrStreamEntryStringRepresentation() method. This helper extracts the XHTML rich-text body from a PDF dictionary string or stream and parses it with a DOM parser to return the concatenated text content.

The vulnerability stems from two combined issues:
- The DocumentBuilderFactory is instantiated with default settings , no disallow-doctype-decl, no disabling of external general/parameter entities, no FEATURESECUREPROCESSING, and no secure EntityResolver. The default JAXP/Xerces parser will therefore resolve <!DOCTYPE … SYSTEM "…"> and <!ENTITY … SYSTEM "…"> declarations.
- After parsing, getAllNodeText() recursively concatenates every text node in the document and returns it as the model property value. This means the expanded contents of any external entity are reflected directly back into the validation report.

Impact

This impacts all current releases of the veraPDF validation-model module.

Successful exploitation requires only that the target validate an attacker-supplied PDF. A single markup annotation with a crafted /RC string is sufficient.

Proposed Patch

Harden the DocumentBuilderFactory in validation-model/src/main/java/org/verapdf/gf/model/tools/DictionaryKeysHelper.java per the OWASP XXE Prevention Cheat Sheet to disallow DOCTYPE outright.

Database specific
{
    "cwe_ids": [
        "CWE-611"
    ],
    "github_reviewed_at": "2026-07-29T15:11:43Z",
    "github_reviewed": true,
    "nvd_published_at": null,
    "severity": "HIGH"
}
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.25.73
Fixed
1.30.2

Affected versions

1.*
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-3jh7-wm29-q568/GHSA-3jh7-wm29-q568.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-3jh7-wm29-q568/GHSA-3jh7-wm29-q568.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.25.73
Fixed
1.30.2

Affected versions

1.*
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-3jh7-wm29-q568/GHSA-3jh7-wm29-q568.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-3jh7-wm29-q568/GHSA-3jh7-wm29-q568.json"