# CVE-2026-32735: Unpacking Arbitrary Mustache Template Files via `maven-dependency-plugin`

> Compromised upstream artifacts could inject malicious Mustache templates that are automatically unpacked during dependency updates, leading to code execution.

- **Severity:** Low 2.3 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 18 Mar 2026
- **Updated:** 1 Jun 2026
- **Also known as:** GHSA-3hrg-hjvj-9v66

## What is CVE-2026-32735?

CVE-2026-32735 is a low-severity vulnerability in io.github.chrimle:openapi-to-java-records-mustache-templates-parent, published on 18 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

openapi-to-java-records-mustache-templates allows users to generate Java Records from OpenAPI specifications. Starting in version 5.1.1 and prior to version 5.5.1, the parent POM file of this project (`openapi-to-java-records-mustache-templates-parent`), which is used to centralize plugin configurations for multiple unit-test modules, uses `maven-dependency-plugin` to unpack arbitrary `.mustache` files from the `openapi-to-java-records-mustache-templates` artifact (of the same version). While this parent POM file is not intended for external use, it is published, and could be used by anyone, and does not follow the best security practices. The risk, is that if `openapi-to-java-records-mustache-templates` would be compromised, and malicious `.mustache` files were to be included in the resulting JAR/artifact, users would unpack these files automatically during a dependency update. This is addressed in the v3.5.1 release of `openapi-to-java-records-mustache-templates-parent`. It is strongly recommended NOT to use the parent POM for external use. The `openapi-to-java-records-mustache-templates` module is the center of this project, and surrounding modules and configurations are not intended for production-use. These only exist for testing purposes and maintainability.

Weakness: CWE-20 (Improper Input Validation)

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


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

No fix has been published for CVE-2026-32735 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-32735 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2026-32735 is a low-severity vulnerability in io.github.chrimle:openapi-to-java-records-mustache-templates-parent, published on 18 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-32735 in the wild and no public exploit code.

Affected product: io.github.chrimle:openapi-to-java-records-mustache-templates-parent. No package-level version data is available, so check the vendor advisory linked from the reference page.

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-32735/ (Markdown: https://insights.sbomify.com/CVE-2026-32735/index.md)
```

## Sources

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

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