Skip to content

fix: bump shell-quote 1.7.3 β†’ ^1.8.4 (GHSA-w7jw-789q-3m8p)#833

Merged
BYK merged 1 commit into
masterfrom
byk/fix/shell-quote-cve
Jun 10, 2026
Merged

fix: bump shell-quote 1.7.3 β†’ ^1.8.4 (GHSA-w7jw-789q-3m8p)#833
BYK merged 1 commit into
masterfrom
byk/fix/shell-quote-cve

Conversation

@BYK

@BYK BYK commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

Resolves the 2 open critical Dependabot alerts (#165 and #166) for shell-quote.

Alert Manifest GHSA Severity
#165 package.json GHSA-w7jw-789q-3m8p Critical
#166 pnpm-lock.yaml (same) Critical

shell-quote < 1.8.4 does not escape newlines in object .op values within quote(). Craft only uses parse() on developer-controlled config strings (.craft.yml pre/post-release commands), so it was not actually exploitable β€” but the bump clears the alerts.

Changes

  • package.json: shell-quote 1.7.3 β†’ ^1.8.4
  • pnpm-lock.yaml: regenerated (resolves 1.8.4)
  • src/commands/publish.ts: normalized import shellQuote from 'shell-quote' β†’ import * as shellQuote from 'shell-quote' to match prepare.ts (correct form for a CJS module with no default export)

No breaking changes to parse() or the ParseEntry type between 1.7.3 and 1.8.4.

Verification

  • pnpm build βœ…
  • pnpm test βœ… (972 passed; the 7 prepare-dry-run.e2e failures are a pre-existing env issue β€” EDITOR unset in headless CI β€” unrelated to this change)
  • pnpm lint βœ… (0 errors)

Resolves critical Dependabot alerts #165 and #166. shell-quote < 1.8.4
does not escape newlines in object .op values in quote(). Craft only
uses parse() on developer-controlled config, so not exploitable, but
bumping clears the alerts.

Also normalizes the import in publish.ts to a namespace import to match
prepare.ts (correct form for a CJS module with no default export).
@BYK BYK merged commit 88f7517 into master Jun 10, 2026
21 checks passed
@BYK BYK deleted the byk/fix/shell-quote-cve branch June 10, 2026 21:21
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.

1 participant