# CVE-2026-54082: veraPDF-validatio: Use of Default `DocumentBuilderFactory` leads to XXE When Processing Untrusted PDFs


- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 29 Jul 2026
- **Updated:** 30 Jul 2026
- **Also known as:** GHSA-cg9x-g3gm-h5h6

## What is CVE-2026-54082?

CVE-2026-54082 is a medium-severity vulnerability in veraPDF-validation, published on 29 Jul 2026. 

### Official description

veraPDF validation model is an implementation of the veraPDF validation model. From 1.25.73 until 1.30.2 and 1.31.71, veraPDF-validation contains an XML External Entity vulnerability in PDFAValidator.validate(...) and GFPDAcroForm.getdynamicRender(), where default DocumentBuilderFactory parsing of rich-text annotation or form-field values and XFA configurations in untrusted PDFs can allow local file disclosure and outbound network requests. This issue is fixed in versions 1.30.2 and 1.31.71.

Weakness: CWE-611 (Improper Restriction of XML External Entity Reference)

## Which versions are affected by CVE-2026-54082?

8 open source packages ship an affected version, including org.verapdf:validation-model and org.verapdf:validation-model-jakarta.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.verapdf:validation-model` | Maven | From 1.17.35 | 1.30.2 |
| `org.verapdf:validation-model` | Maven | From 1.17.35 | 1.30.2 |
| `org.verapdf:validation-model` | Maven | From 1.31.1 | 1.31.71 |
| `org.verapdf:validation-model` | Maven | From 1.31.1 | 1.31.71 |
| `org.verapdf:validation-model-jakarta` | Maven | From 1.17.35 | 1.30.2 |
| `org.verapdf:validation-model-jakarta` | Maven | From 1.17.35 | 1.30.2 |
| `org.verapdf:validation-model-jakarta` | Maven | From 1.31.1 | 1.31.71 |
| `org.verapdf:validation-model-jakarta` | Maven | From 1.31.1 | 1.31.71 |

## How do I fix CVE-2026-54082?

Upgrade org.verapdf:validation-model to a fixed version for your release line: 1.30.2 or 1.31.71.

## Is CVE-2026-54082 being exploited?

There is no known exploitation of CVE-2026-54082 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-54082 and fix it if it is affected.

What it is: CVE-2026-54082 is a medium-severity vulnerability in veraPDF-validation, published on 29 Jul 2026. 
Exploitation: There is no known exploitation of CVE-2026-54082 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.verapdf:validation-model (Maven): affected from 1.17.35; fixed in 1.30.2
- org.verapdf:validation-model (Maven): affected from 1.17.35; fixed in 1.30.2
- org.verapdf:validation-model (Maven): affected from 1.31.1; fixed in 1.31.71
- org.verapdf:validation-model (Maven): affected from 1.31.1; fixed in 1.31.71
- org.verapdf:validation-model-jakarta (Maven): affected from 1.17.35; fixed in 1.30.2
- org.verapdf:validation-model-jakarta (Maven): affected from 1.17.35; fixed in 1.30.2
- org.verapdf:validation-model-jakarta (Maven): affected from 1.31.1; fixed in 1.31.71
- org.verapdf:validation-model-jakarta (Maven): affected from 1.31.1; fixed in 1.31.71

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-54082/ (Markdown: https://insights.sbomify.com/CVE-2026-54082/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-54082
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-54082
- OSV: https://osv.dev/vulnerability/CVE-2026-54082

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-54082/
Summaries are generated and may contain mistakes; the official description above is the record.
