CVE-2026-32735

Unpacking Arbitrary Mustache Template Files via `maven-dependency-plugin`

Published Mar 18, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is caused by the maven-dependency-plugin configuration in the openapi-to-java-records-mustache-templates-parent artifact, which automatically extracts all .mustache files from the openapi-to-java-records-mustache-templates module whenever a dependency update is performed. Because the plugin does not validate the contents of the extracted files, a compromised openapi-to-java-records-mustache-templates artifact could contain malicious Mustache templates that are unpacked into the build environment. The primary impact is that downstream code that processes these templates could execute unintended logic or code at build time, effectively leading to code execution or other malicious actions. This weakness is identified as CWE‑20 (Improper Input Validation).

Affected Systems

The vulnerability affects projects that include the openapi-to-java-records-mustache-templates-parent POM in the range of version 5.1.1 up to, but not including, 5.5.1. The parent POM is published on Maven Central and can be imported by any external project. While it was not intended for external use, its public exposure means that any project incorporating it could be exposed to unpacking of arbitrary .mustache files. The fix is provided in the v3.5.1 release of openapi-to-java-records-mustache-templates-parent which removes the automatic unpacking behavior.

Risk and Exploitability

The CVSS score for this vulnerability is 2.3, indicating low severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, suggesting a low current exploitation risk. However, exploitation requires only that an attacker publish a tampered openapi-to-java-records-mustache-templates artifact and that a user incorporate the vulnerable parent POM into their build. The attack vector is inferred as build‑time injection, and there are no publicly documented exploits at the time of writing.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade openapi-to-java-records-mustache-templates-parent to v3.5.1 or newer, which removes the automatic unpacking of arbitrary .mustache files.

Generated by OpenCVE AI on March 19, 2026 at 00:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Chrimle
Chrimle openapi-to-java-records-mustache-templates-parent
Vendors & Products Chrimle
Chrimle openapi-to-java-records-mustache-templates-parent
Type Values Removed Values Added
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.
Title Unpacking Arbitrary Mustache Template Files via `maven-dependency-plugin`
Weaknesses CWE-20
References
Metrics cvssV4_0

{'score': 2.3, 'vector': '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'}

Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 1, 2026, 8:59 PM
Reserved
Mar 13, 2026, 3:02 PM
Status
Deferred
Published
Mar 18, 2026, 11:17 PM
Modified
Jun 17, 2026, 10:36 AM