Skip to content

fix: bump openapi-generator-cli to 2.39.1#64

Merged
angelocordon merged 3 commits into
mainfrom
fix/secvuln-46269-shell-quote
Jul 7, 2026
Merged

fix: bump openapi-generator-cli to 2.39.1#64
angelocordon merged 3 commits into
mainfrom
fix/secvuln-46269-shell-quote

Conversation

@angelocordon

Copy link
Copy Markdown
Contributor

Summary

Bumps @openapitools/openapi-generator-cli from 2.32.0 to 2.39.1 to transitively resolve a shell injection vulnerability in shell-quote.

Root cause

shell-quote@1.8.3 (pulled in transitively via concurrently) did not escape newlines in object .op values. A literal \n in an .op field passed through unescaped to the shell, where POSIX shells treat it as a command separator — enabling shell command injection in callers that build object tokens from untrusted input and pass the result to a shell.

Transitive dependency chain

@openapitools/openapi-generator-cli
  └─ concurrently 9.2.1 → 10.0.3
       └─ shell-quote 1.8.3 (vulnerable) → 1.8.4 (patched) ✅

Scope

This repo never imports shell-quote directly — it is only present as a transitive dev dependency of the CLI wrapper. There is no production exposure.

The Java generator JAR version (7.12.0 in openapitools.json) is unchanged, so no regeneration of src/ is needed and no generated output has changed.

Files changed

  • package.json — one-line version bump
  • pnpm-lock.yaml — regenerated lockfile (copyright header will be restored by CI copywrite step)

Revert plan

Reverting this PR fully restores the previous state. No database migrations, feature flags, or infrastructure changes are involved.


PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    This PR is a security control improvement: it upgrades a transitive dev dependency to its patched version, eliminating a known shell injection vulnerability (GHSA-w7jw-789q-3m8p / SECVULN-46269) from the dependency graph.

…HSA-w7jw-789q-3m8p)

Bumps @openapitools/openapi-generator-cli from 2.32.0 to 2.39.1.
This transitively updates concurrently (9.2.1 -> 10.0.3), which in turn
resolves shell-quote to 1.8.4 (was 1.8.3, the vulnerable version).

shell-quote@1.8.3 did not escape newlines in object .op values, allowing
shell command injection when object tokens with attacker-controlled .op
values were passed to quote() and the result handed to a shell.

The Java generator JAR version (7.12.0 in openapitools.json) is unchanged,
so no regeneration of src/ is required.

Closes SECVULN-46269
@angelocordon
angelocordon requested a review from a team as a code owner July 7, 2026 18:41
@hashicorp-cla-app

hashicorp-cla-app Bot commented Jul 7, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@angelocordon angelocordon self-assigned this Jul 7, 2026
@angelocordon angelocordon changed the title fix: bump openapi-generator-cli to 2.39.1 to patch shell-quote CVE (GHSA-w7jw-789q-3m8p) fix: bump openapi-generator-cli to 2.39.1 Jul 7, 2026
@angelocordon
angelocordon enabled auto-merge (squash) July 7, 2026 20:39
@angelocordon
angelocordon merged commit 2157486 into main Jul 7, 2026
1 of 2 checks passed
@angelocordon
angelocordon deleted the fix/secvuln-46269-shell-quote branch July 7, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants