OpenAPITools / OpenAPITools/openapi-generator
[BUG] v7.16.0 JAR contains outdated dependencies despite PR #21980 being merged
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- [N/A] Have you validated the input using an OpenAPI validator?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request
Description
The v7.16.0 release contains outdated dependencies in the JAR file despite PR #21980 being merged and mentioned in the release notes. This causes security vulnerabilities to persist in the released artifact even though they were fixed in the source code.
Security scanners (grype, syft) detect the following vulnerabilities in openapi-generator-cli-7.16.0.jar:
commons-lang3 3.12.0- GHSA-j288-q9x7-2f5v (Medium)logback-core 1.2.13- GHSA-pr98-23f8-jwxv (Medium), GHSA-6v67-2wr5-gvf4 (Low)
openapi-generator version
v7.16.0 (released September 28, 2025)
This is NOT a regression - it appears to be a build/release process issue where the dependency updates from PR #21980 (merged September 16, 2025) were not properly included in the JAR artifact.
OpenAPI declaration file content or url
N/A - This is not related to any specific OpenAPI spec. The issue is with the JAR artifact itself.
Generation Details
# Using openapi-generator-cli via Dart pub
dart pub global activate openapi_generator_cli
# The JAR is automatically downloaded from Maven Central:
# https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.16.0/openapi-generator-cli-7.16.0.jar
Steps to reproduce
- Download the v7.16.0 JAR:
curl -L -o openapi-generator-cli-7.16.0.jar \
https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.16.0/openapi-generator-cli-7.16.0.jar
- Check the commons-lang3 version inside the JAR:
unzip -p openapi-generator-cli-7.16.0.jar \
META-INF/maven/org.apache.commons/commons-lang3/pom.properties | grep version
Expected output:
version=3.18.0
Actual output:
version=3.12.0
- Verify with security scanner:
syft openapi-generator-cli-7.16.0.jar -o json > sbom.json
grype sbom:sbom.json | grep -E "commons-lang3|logback-core"
Output shows vulnerabilities:
commons-lang3 3.12.0 3.18.0 java-archive GHSA-j288-q9x7-2f5v Medium
logback-core 1.2.13 1.3.15 java-archive GHSA-pr98-23f8-jwxv Medium
logback-core 1.2.13 1.3.15 java-archive GHSA-6v67-2wr5-gvf4 Low
Related issues/PRs
-
PR #21980: "Update commons related dependencies to newer versions"
- Merged: September 16, 2025
- URL: https://github.com/OpenAPITools/openapi-generator/pull/21980
- Changes: Updated
commons-lang3from 3.12.0 to 3.18.0,commons-clifrom 1.5.0 to 1.10.0,commons-iofrom 2.16.1 to 2.20.0
-
Release v7.16.0:
- Released: September 28, 2025
- URL: https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.16.0
- Explicitly lists PR #21980 under "General" section
Suggest a fix
The issue appears to be in the Maven build/release process. Possible causes:
- Wrong commit tagged: The v7.16.0 tag might point to a commit before PR #21980 was merged
- Maven dependency resolution issue: The POM might specify the correct version, but Maven resolved to an older cached version during build
- Shaded JAR not rebuilt: If using maven-shade-plugin, the shaded JAR might not have been properly rebuilt
Suggested solutions:
- Verify the v7.16.0 tag points to the correct commit (should be after commit from PR #21980)
- Check pom.xml in v7.16.0 tag to confirm the dependency versions are correct
- Rebuild and republish v7.16.0 with a clean Maven cache, or
- Include the fix in v7.17.0 with proper verification of dependency versions in the final JAR
Verification command for future releases:
# Extract and verify all dependency versions
unzip -l openapi-generator-cli-${VERSION}.jar | grep "META-INF/maven" | grep "pom.properties"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the v7.16.0 tag and its pom.xml, then compare them with the dependency changes in PR #21980. Rebuild the CLI JAR with a clean Maven cache and run the listed unzip, syft, and grype checks. Done means the published artifact contains the updated dependency versions and no longer reports the listed vulnerabilities.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, release, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100