Skip to content

fix: security - upgrade undici to 8.12.2 and 7.30.1 - #1746

Merged
jaredwray merged 1 commit into
mainfrom
cursor/undici-security-bump-53bb
Oct 21, 2026
Merged

jaredwray merged 1 commit into
mainfrom
cursor/undici-security-bump-53bb

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 upgrades undici.

Aikido reports three High advisories on undici 8.11.2 and 7.30.0:

  • AIKIDO-2026-846025: improper certificate validation
  • AIKIDO-2026-393834: denial of service
  • AIKIDO-2026-159850: denial of service

The patched releases are undici 8.12.2, 7.30.1, and 6.29.1. This repo does not install the 6.x line.

Versions

Before:

  • @cacheable/net depends on undici ^8.11.2. The lockfile resolves 8.11.2.
  • The pnpm override pins every undici 7.x request to 7.30.0.
  • docula 3.0.1 resolves undici 8.11.2.

After:

  • @cacheable/net depends on undici ^8.12.2. The lockfile resolves 8.12.2.
  • The pnpm override pins every undici 7.x request to 7.30.1.
  • docula 3.0.1 resolves undici 8.12.2.

The lockfile no longer contains undici 8.11.2 or 7.30.0.

Override

miniflare 5.20261006.1-alpha pins undici 7.29.1. That exact pin cannot reach 7.30.1. The existing 7.x override stays, and the pin is now 7.30.1.

docula accepts undici ^8.10.2. @cacheable/net now accepts ^8.12.2. Both ranges include 8.12.2, so the 8.x line does not need an override.

Release age

undici 8.12.2 and 7.30.1 were published on 2026-10-15. minimumReleaseAge is 10080 minutes, and strict mode is on. The install adds a version exclude for those two releases only.

Test audit

This pull request does not add, change, or delete a test. The existing suite still protects the public fetch behavior.

Verification

  • pnpm install updated the lockfile.
  • pnpm build completed.
  • node scripts/test-build.mjs passed.
  • pnpm test:ci passed. Biome reported no warnings. @cacheable/net ran 212 tests with 100% line coverage.
Open in Web Open in Cursor 

The direct dependency floor is now ^8.12.2. The 7.x override is now 7.30.1. miniflare pins undici 7.29.1, so that override stays.

Co-authored-by: Jared Wray <me@jaredwray.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T14:19:17.342241Z d96cf35 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.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedundici@​8.11.2 ⏵ 8.12.292100100 +198100

View full report

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (895cf25) to head (d96cf35).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1746   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines         3620      3620           
  Branches       811       824   +13     
=========================================
  Hits          3620      3620           

☔ 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 b8e4f2c into main Oct 21, 2026
15 checks passed
@jaredwray
jaredwray deleted the cursor/undici-security-bump-53bb branch October 21, 2026 00:07
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