Skip to content

[Snyk] Upgrade undici from 5.25.4 to 7.6.0 #138

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 18, 2025

snyk-top-banner

Snyk has created this PR to upgrade undici from 5.25.4 to 7.6.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 82 versions ahead of your current version.

  • The recommended version was released 21 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Insecure Randomness
SNYK-JS-UNDICI-8641354
83 Proof of Concept
low severity Information Exposure
SNYK-JS-UNDICI-5962466
83 No Known Exploit
low severity Permissive Cross-domain Policy with Untrusted Domains
SNYK-JS-UNDICI-6252336
83 No Known Exploit
low severity Improper Access Control
SNYK-JS-UNDICI-6564963
83 No Known Exploit
low severity Improper Authorization
SNYK-JS-UNDICI-6564964
83 No Known Exploit
Release notes
Package name: undici
  • 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

    What's Changed

    • Update WPT by @ github-actions in #3991
    • fix: dual-stack retries infinite loop by @ luddd3 in #4001
    • build(deps): bump codecov/codecov-action from 5.0.7 to 5.1.2 by @ dependabot in #3980
    • build(deps): bump github/codeql-action from 3.27.0 to 3.28.1 by @ dependabot in #4003
    • tests: Update Cache Tests by @ github-actions in #3965
    • ReadableStreamFrom pull until cannot on empty enqueu by @ KhafraDev in #4002
    • Resolve circular dependency by @ mcollina in #4006

    Full Changelog: v7.2.1...v7.2.2

  • 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
  • 5.28.3 - 2024-02-05
  • 5.28.2 - 2023-11-30
  • 5.28.1 - 2023-11-27
  • 5.28.0 - 2023-11-24
  • 5.27.2 - 2023-11-03
  • 5.27.1 - 2023-11-03
  • 5.27.0 - 2023-10-26
  • 5.26.5 - 2023-10-23
  • 5.26.4 - 2023-10-19
  • 5.26.3 - 2023-10-11
  • 5.26.2 - 2023-10-11
  • 5.26.1 - 2023-10-11
  • 5.26.0 - 2023-10-11
  • 5.25.4 - 2023-10-03
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 undici from version 5.25.4 to 7.6.0 to address multiple security vulnerabilities

New Features:

  • Upgrade to the latest version of undici with potential new features and improvements

Bug Fixes:

  • Resolve multiple security vulnerabilities including Insecure Randomness, Information Exposure, and Improper Access Control

Snyk has created this PR to upgrade undici from 5.25.4 to 7.6.0.

See this package in npm:
undici

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/b5cdf2ad-2b8a-4186-9f27-57d3c2adaf21?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Apr 18, 2025

Reviewer's Guide by Sourcery

This pull request upgrades the undici dependency from version 5.25.4 to 7.6.0. This upgrade includes several bug fixes, performance improvements, and new features. It also addresses multiple security vulnerabilities.

Sequence diagram for request with retry-after header fix

sequenceDiagram
  participant Client
  participant RetryHandler
  participant Server

  Client->>Server: Send Request
  Server->>Client: 503 Service Unavailable, retry-after: <Date>
  Client->>RetryHandler: Receive retry-after header
  RetryHandler->>Client: Schedule retry based on Date
  Client->>Server: (After retry-after) Send Request
  Server->>Client: 200 OK
Loading

Updated class diagram for undici with security fixes

classDiagram
  class Undici {
    <<external>>
    +request(url: string, options: object): Promise<Response>
    +pipeline(url: string, options: object, handler: function): Promise<void>
    +stream(url: string, options: object, handler: function): Promise<void>
    +connect(options: object): Promise<void>
    +upgrade(url: string, options: object, handler: function): Promise<void>
    +close(): Promise<void>
    +destroy(): Promise<void>
  }
  note for Undici "Upgraded from 5.25.4 to 7.6.0\nIncludes security fixes for CVE-2025-22150 and others."
Loading

File-Level Changes

Change Details Files
The pull request upgrades the undici dependency from version 5.25.4 to 7.6.0.
  • Updated the undici dependency to the latest version.
packages/http-client/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!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

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