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.
Published: 2026-03-18
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: Uncontrolled unpacking of malicious Mustache templates during Maven dependency resolution
Action: Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Thu, 19 Mar 2026 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 19 Mar 2026 09:45:00 +0000

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

Wed, 18 Mar 2026 22:30:00 +0000

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'}


Subscriptions

Chrimle Openapi-to-java-records-mustache-templates-parent
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-01T20:59:39.212Z

Reserved: 2026-03-13T15:02:00.627Z

Link: CVE-2026-32735

cve-icon Vulnrichment

Updated: 2026-03-19T15:46:28.757Z

cve-icon NVD

Status : Deferred

Published: 2026-03-18T23:17:29.710

Modified: 2026-04-28T21:13:28.120

Link: CVE-2026-32735

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-25T11:51:53Z

Weaknesses