Repository navigation
fix: security - ws (CVE-2026-140009) - #1768
Merged
Merged
Conversation
miniflare pins ws 8.21.0. No parent release accepts 8.23.0. The override selects the fixed release on the ws 8 line. Co-authored-by: Jared Wray <me@jaredwray.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1768 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 30 30
Lines 3697 3697
Branches 845 832 -13
=========================================
Hits 3697 3697 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Security fix. This change pins ws to the patched 8.x release.
Versions
8.21.0->8.23.0Advisory: GHSA-37g9-w4hg-h9qr / CVE-2026-140009 (High).
The affected range on the 8.x line is
>= 8.0.0 < 8.23.0.The patched release is 8.23.0.
The lockfile had one copy of ws. That copy was 8.21.0.
The lockfile now resolves ws 8.23.0.
The repository has no ws 5.x, 6.x, or 7.x copy.
Why an override
miniflare 5.20261006.1-alpha pins ws 8.21.0.
wrangler 4.149.0 depends on that miniflare release.
Every miniflare release through 5.20261129.0-beta still pins ws 8.21.0.
No parent release accepts ws 8.23.0.
The override
ws@>=8.0.0 <9.0.0selects 8.23.0.This matches the undici pin for the same parent.
Exposure
ws is a development dependency.
The root package depends on wrangler.
wrangler depends on miniflare.
miniflare is the only package that depends on ws.
No published package depends on ws.
miniflare uses ws for the local inspector and for Worker WebSocket upgrades.
The inspector listens on 127.0.0.1.
A malicious peer must connect to that server and flood Ping frames.
This repository does not start miniflare in tests.
The website deploy job runs
pages deploy.That command calls the Cloudflare API.
It does not open a WebSocket server.
Other paths
The repository has one lockfile.
Workspace package.json files do not depend on ws.
Docker Compose, the dev container, and the Docker files do not pin ws.
cloudflare/wrangler-action4.1.3 depends on@actions/core,@actions/exec,@actions/github, and zod.That action does not depend on ws.
The lockfile also records the existing deprecation text for yuku-ast, yuku-codegen, and yuku-parser.
Those versions stay at 0.10.2.
Cooldown
ws 8.23.0 was published on 2026-11-12.
The 7-day cooldown does not block it.
ws 8.23.1 was published on 2026-11-27.
That release is inside the cooldown.
This change pins 8.23.0.
This change adds no
minimumReleaseAgeExcludeentry.Test audit
This pull request does not add, change, or delete a test.
The test audit gate does not apply.
Checks
pnpm installpassed.pnpm install --frozen-lockfilepassed.pnpm why wsshows one copy: 8.23.0 via miniflare and wrangler.pnpm buildpassed.node scripts/test-build.mjspassed.pnpm test:cipassed on Node 22.Redis listened on port 6379.
The mock HTTP service listened on port 3737.