NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2026-54078: veraPDF Validation XXE via Rich Text

highCVSS 4.0 8.7GHSA-3jh7-wm29-q568

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.

Published Jul 29, 2026

Affected packages

org.verapdf:validation-model

Ecosystem
Maven
Affected
>= 1.25.73, <= 1.30.1
Fixed in
1.30.2
Check
mvn dependency:tree -Dincludes=org.verapdf:validation-model

org.verapdf:validation-model

Ecosystem
Maven
Affected
>= 1.31.1, <= 1.31.70
Fixed in
1.31.71
Check
mvn dependency:tree -Dincludes=org.verapdf:validation-model

org.verapdf:validation-model-jakarta

Ecosystem
Maven
Affected
>= 1.25.73, <= 1.30.1
Fixed in
1.30.2
Check
mvn dependency:tree -Dincludes=org.verapdf:validation-model-jakarta

org.verapdf:validation-model-jakarta

Ecosystem
Maven
Affected
>= 1.31.1, <= 1.31.70
Fixed in
1.31.71
Check
mvn dependency:tree -Dincludes=org.verapdf:validation-model-jakarta

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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 FEATURE_SECURE_PROCESSING, 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.

Credited to wodzen.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries