Skip to content

[Snyk] Upgrade undici from 5.28.4 to 7.7.0 #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Apr 27, 2025

snyk-top-banner

Snyk has created this PR to upgrade undici from 5.28.4 to 7.7.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 69 versions ahead of your current version.

  • The recommended version was released 25 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-CROSSSPAWN-8303230
169 Proof of Concept
high severity Insecure Randomness
SNYK-JS-UNDICI-8641354
169 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-OCTOKITENDPOINT-8730856
169 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-OCTOKITREQUESTERROR-8730854
169 Proof of Concept
Release notes
Package name: undici
  • 7.7.0 - 2025-04-02

    What's Changed

    New Contributors

    Full Changelog: v7.6.0...v7.7.0

  • 7.6.0 - 2025-03-27

    What's Changed

    New Contributors

    Full Changelog: v7.5.0...v7.6.0

  • 7.5.0 - 2025-03-12

    What's Changed

    • feat(docs): button to switch dark and light mode by @ shivarm in #4044
    • feat: add mock call history to access request configuration in test by @ blephy in #4029
    • fix: Fix retry-handler.js when retry-after header is a Date by @ fgiova in #4084
    • Update Cache Tests by @ github-actions in #4027
    • Allow disabling autoSelectFamily in an Agent by @ hitsthings in #4070
    • Removed clients with unrecoverable errors from the Pool by @ mcollina in #4088

    New Contributors

    Full Changelog: v7.4.0...v7.5.0

  • 7.4.0 - 2025-02-28

    What's Changed

    New Contributors

    Full Changelog: v7.3.0...v7.4.0

  • 7.3.0 - 2025-01-22

    What's Changed

    Full Changelog: v7.2.3...v7.3.0

  • 7.2.3 - 2025-01-16

    ⚠️ Security Release ⚠️

    Fixes CVE CVE-2025-22150 GHSA-c76h-2ccp-4975 (embargoed until 22-01-2025).

    What's Changed

    Full Changelog: v7.2.2...v7.2.3

  • 7.2.2 - 2025-01-15
  • 7.2.1 - 2025-01-09
  • 7.2.0 - 2024-12-18
  • 7.1.1 - 2024-12-16
  • 7.1.0 - 2024-12-03
  • 7.0.0 - 2024-11-27
  • 7.0.0-alpha.10 - 2024-11-27
  • 7.0.0-alpha.9 - 2024-11-27
  • 7.0.0-alpha.8 - 2024-11-27
  • 7.0.0-alpha.7 - 2024-11-25
  • 7.0.0-alpha.6 - 2024-11-20
  • 7.0.0-alpha.5 - 2024-11-19
  • 7.0.0-alpha.4 - 2024-11-15
  • 7.0.0-alpha.3 - 2024-10-24
  • 7.0.0-alpha.2 - 2024-10-09
  • 7.0.0-alpha.1 - 2024-09-03
  • 6.21.2 - 2025-03-13

    What's Changed

    New Contributors

    Full Changelog: v6.21.1...v6.21.2

  • 6.21.1 - 2025-01-16

    ⚠️ Security Release ⚠️

    Fixes CVE CVE-2025-22150 GHSA-c76h-2ccp-4975 (embargoed until 22-01-2025).

    What's Changed

    Full Changelog: v6.21.0...v6.21.1

  • 6.21.0 - 2024-11-13
  • 6.20.1 - 2024-10-14
  • 6.20.0 - 2024-10-09
  • 6.19.8 - 2024-08-19
  • 6.19.7 - 2024-08-09
  • 6.19.6 - 2024-08-09
  • 6.19.5 - 2024-07-31
  • 6.19.4 - 2024-07-22
  • 6.19.3 - 2024-07-22
  • 6.19.2 - 2024-06-18
  • 6.19.1 - 2024-06-17
  • 6.19.0 - 2024-06-14
  • 6.18.2 - 2024-05-29
  • 6.18.1 - 2024-05-22
  • 6.18.0 - 2024-05-20
  • 6.17.0 - 2024-05-17
  • 6.16.1 - 2024-05-10
  • 6.16.0 - 2024-05-07
  • 6.15.0 - 2024-04-29
  • 6.14.1 - 2024-04-23
  • 6.14.0 - 2024-04-22
  • 6.13.0 - 2024-04-12
  • 6.12.0 - 2024-04-08
  • 6.11.1 - 2024-04-02
  • 6.11.0 - 2024-04-02
  • 6.10.2 - 2024-03-27
  • 6.10.1 - 2024-03-21
  • 6.10.0 - 2024-03-21
  • 6.9.0 - 2024-03-14
  • 6.8.0 - 2024-03-13
  • 6.7.1 - 2024-03-08
  • 6.7.0 - 2024-03-03
  • 6.6.2 - 2024-02-06
  • 6.6.1 - 2024-02-05
  • 6.6.0 - 2024-02-01
  • 6.5.0 - 2024-01-26
  • 6.4.0 - 2024-01-19
  • 6.3.0 - 2024-01-08
  • 6.2.1 - 2023-12-22
  • 6.2.0 - 2023-12-20
  • 6.1.0 - 2023-12-20
  • 6.0.1 - 2023-12-06
  • 6.0.0 - 2023-12-05
  • 5.29.0 - 2025-03-19

    What's Changed

    • Fix tests in v5.x for Node 20 by @ mcollina in #4104
    • Removed clients with unrecoverable errors from the Pool #4088

    Full Changelog: v5.28.5...v5.29.0

  • 5.28.5 - 2025-01-16

    ⚠️ Security Release ⚠️

    Fixes CVE CVE-2025-22150 GHSA-c76h-2ccp-4975 (embargoed until 22-01-2025).

    Full Changelog: v5.28.4...v5.28.5

  • 5.28.4 - 2024-04-02
from undici GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by Sourcery

Upgrade the undici dependency from v5.28.4 to v7.7.0.

Bug Fixes:

  • Address security vulnerabilities fixed in the new version of undici.
  • Fix potential breaking changes introduced by the major version upgrade of undici.
  • Resolve compatibility issues with Node.js 20.
  • Prevent clients with unrecoverable errors from being added back to the pool.
  • Ensure proper handling of HTTP/2 GOAWAY frames.
  • Fix issues related to sending FormData bodies with HTTP/2.
  • Correctly handle Vary headers and revalidation headers case-insensitively.
  • Address issues with DNS caching and interceptors.
  • Fix retry logic when the retry-after header is a date.
  • Improve error handling in interceptors.
  • Fix potential null reference issues in SQLite cache.
  • Ensure servername is sent for SNI on TLS connections.
  • Fix EnvHttpProxyAgent usage within the Node.js bundle.
  • Improve random number generation fallback for fetch bodies.
  • Correctly apply byte offset when using Buffer.from.
  • Fix type definitions for DNS interceptor and RetryCallback.
  • Update Web Platform Tests (WPT) and fix related issues on Windows.
  • Improve documentation regarding global dispatcher, errors, and API usage.
  • Enhance mock call history for testing purposes.
  • Allow disabling autoSelectFamily in Agents.
  • Add features like HTTP/2 Cleartext (h2c) client support.
  • Mark EnvHttpProxyAgent as stable.
  • Introduce documentation improvements like dark/light mode toggle and copy-to-clipboard functionality.
  • Limit string split length for performance/security.
  • Update development dependencies like @matteo.collina/tspl.
  • Refactor and clean up SQLite cache implementation.
  • Improve test infrastructure and fix flaky tests.
  • Update release instructions and pull request templates.
  • Fix various minor bugs and typos across the codebase.
  • Backport relevant fixes to older supported branches (v6.x, v5.x).

Build:

  • Update undici version in devDependencies.

Snyk has created this PR to upgrade undici from 5.28.4 to 7.7.0.

See this package in npm:
undici

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/00eaf84d-a05e-4e1a-923e-697960352bb8?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Apr 27, 2025

Reviewer's Guide by Sourcery

This pull request upgrades the undici dependency from version 5.28.4 to 7.7.0. This is a major version upgrade primarily aimed at addressing several security vulnerabilities, including high and medium severity issues. Reviewers should pay close attention to potential breaking changes introduced by the major version bump.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Updated undici dependency version
  • Upgraded undici from 5.28.4 to 7.7.0
packages/attest/package.json
Addressed security vulnerabilities
  • Fixed high severity Regular Expression Denial of Service (ReDoS)
  • Fixed high severity Insecure Randomness
  • Fixed medium severity Regular Expression Denial of Service (ReDoS)
packages/attest/package.json
Performed a major version upgrade
  • Upgraded from major version 5 to major version 7
  • Reviewers should check for potential breaking changes
packages/attest/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

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