Skip to content

fix: security - ws (CVE-2026-140009) - #1768

Merged
jaredwray merged 1 commit into
mainfrom
cursor/security-ws-cve-2026-140009-d90e
Dec 1, 2026
Merged

jaredwray merged 1 commit into
mainfrom
cursor/security-ws-cve-2026-140009-d90e

Conversation

@jaredwray

Copy link
Copy Markdown
Owner

Please check if the PR fulfills these requirements

  • Followed the Contributing guidelines and Code of Conduct
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

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

  • ws 8.21.0 -> 8.23.0

Advisory: 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.0 selects 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-action 4.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 minimumReleaseAgeExclude entry.

Test audit

This pull request does not add, change, or delete a test.
The test audit gate does not apply.

Checks

pnpm install passed.
pnpm install --frozen-lockfile passed.
pnpm why ws shows one copy: 8.23.0 via miniflare and wrangler.
pnpm build passed.
node scripts/test-build.mjs passed.
pnpm test:ci passed on Node 22.
Redis listened on port 6379.
The mock HTTP service listened on port 3737.

Open in Web Open in Cursor 

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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T14:01:03.061805Z 1d9eb38 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (de2124b) to head (1d9eb38).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jaredwray
jaredwray merged commit f69098d into main Dec 1, 2026
16 checks passed
@jaredwray
jaredwray deleted the cursor/security-ws-cve-2026-140009-d90e branch December 1, 2026 19:59
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