fix(cli): Bump @xhmikosr/bin-wrapper to v14 to resolve CVE-2026-31808#124
Merged
kdy1 merged 3 commits intoswc-project:mainfrom Mar 18, 2026
Merged
fix(cli): Bump @xhmikosr/bin-wrapper to v14 to resolve CVE-2026-31808#124kdy1 merged 3 commits intoswc-project:mainfrom
@xhmikosr/bin-wrapper to v14 to resolve CVE-2026-31808#124kdy1 merged 3 commits intoswc-project:mainfrom
Conversation
🦋 Changeset detectedLatest commit: b29f873 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #123
Bumps
@xhmikosr/bin-wrapperfrom^13.0.5to^14.0.0, which pulls in@xhmikosr/downloader@16→file-type@21.3.3, fixing CVE-2026-31808 (GHSA-5v7r-6r5c-r473) — an infinite loop DoS infile-type's ASF parser.Before:
After:
Changes
packages/cli/package.json— Bump@xhmikosr/bin-wrapperfrom^13.0.5to^14.0.0packages/cli/src/swcx/index.ts— Adapt to two breaking changes in v14:export default class BinWrapperinstead of a named export, so the require changes from{ BinWrapper }to{ default: BinWrapper }(works viarequire(esm), supported unflagged since Node 20.19.0 — our minimum engine version).path()is now a method instead of a propertypackages/cli/src/swcx/bin-wrapper.d.ts— Add local type declarations since v14 doesn't ship TypeScript types (follows existing pattern used forchokidar)