Skip to content

[Snyk] Upgrade undici from 4.12.0 to 7.8.0 #145

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

snyk-top-banner

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

  • The recommended version was released a month ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-UNDICI-3323845
115 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-DECODEURICOMPONENT-3149970
115 Proof of Concept
high severity Asymmetric Resource Consumption (Amplification)
SNYK-JS-BODYPARSER-7926860
115 No Known Exploit
high severity Excessive Platform Resource Consumption within a Loop
SNYK-JS-BRACES-6838727
115 Proof of Concept
high severity Prototype Poisoning
SNYK-JS-QS-3153490
115 Proof of Concept
high severity Improper Handling of Extra Parameters
SNYK-JS-FOLLOWREDIRECTS-6141137
115 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-GETFUNCNAME-5923417
115 Proof of Concept
high severity Prototype Poisoning
SNYK-JS-QS-3153490
115 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-SEMVER-3247795
115 Proof of Concept
high severity Remote Code Execution (RCE)
SNYK-JS-SHELLQUOTE-1766506
115 No Known Exploit
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-SEMVER-3247795
115 Proof of Concept
high severity Symlink Attack
SNYK-JS-TARFS-9535930
115 Mature
high severity Insecure Randomness
SNYK-JS-UNDICI-8641354
115 Proof of Concept
high severity Insecure Randomness
SNYK-JS-UNDICI-8641354
115 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-WS-7266574
115 Proof of Concept
high severity Prototype Pollution
SNYK-JS-JSONSCHEMA-1920922
115 No Known Exploit
high severity Inefficient Regular Expression Complexity
SNYK-JS-MICROMATCH-6838728
115 No Known Exploit
medium severity CRLF Injection
SNYK-JS-UNDICI-3323844
115 Proof of Concept
medium severity Improper Control of Dynamically-Managed Code Resources
SNYK-JS-EJS-6689533
115 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-BABELHELPERS-9397697
115 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-BABELRUNTIME-10044504
115 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-COOKIE-8163060
115 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-OCTOKITENDPOINT-8730856
115 Proof of Concept
medium severity Information Exposure
SNYK-JS-FOLLOWREDIRECTS-2332181
115 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-OCTOKITREQUESTERROR-8730854
115 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-7925106
115 Proof of Concept
medium severity Improper Input Validation
SNYK-JS-POSTCSS-5926692
115 No Known Exploit
medium severity Information Exposure
SNYK-JS-FOLLOWREDIRECTS-6444610
115 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-ROLLUP-8073097
115 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-UAPARSERJS-3244450
115 Proof of Concept
medium severity Improper Certificate Validation
SNYK-JS-UNDICI-2928996
115 Proof of Concept
medium severity CRLF Injection
SNYK-JS-UNDICI-2953389
115 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-LOADERUTILS-3042992
115 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-LOADERUTILS-3105943
115 No Known Exploit
medium severity CRLF Injection
SNYK-JS-UNDICI-2980276
115 No Known Exploit
medium severity Server-side Request Forgery (SSRF)
SNYK-JS-UNDICI-2980286
115 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-MINIMATCH-3050818
115 No Known Exploit
low severity Information Exposure
SNYK-JS-FOLLOWREDIRECTS-2396346
115 No Known Exploit
low severity Information Exposure
SNYK-JS-UNDICI-5962466
115 No Known Exploit
low severity Permissive Cross-domain Policy with Untrusted Domains
SNYK-JS-UNDICI-6252336
115 No Known Exploit
low severity Improper Access Control
SNYK-JS-UNDICI-6564963
115 No Known Exploit
low severity Improper Authorization
SNYK-JS-UNDICI-6564964
115 No Known Exploit
low severity Information Exposure
SNYK-JS-UNDICI-2957529
115 Proof of Concept
low severity Prototype Pollution
SNYK-JS-MINIMIST-2429795
115 Proof of Concept
Release notes
Package name: undici

Snyk has created this PR to upgrade undici from 4.12.0 to 7.8.0.

See this package in npm:
undici

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/bf4e0bbc-6133-4196-a6ba-f683223a4e51?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented May 18, 2025

Reviewer's Guide

This PR upgrades the core HTTP client library undici from v4.12.0 to v7.8.0 by updating the dependency specification, addressing a large set of security and performance fixes across major releases—this bump may introduce breaking changes, so verify compatibility and run the full test suite.

Class Diagram: undici Dependency Version Upgrade

classDiagram
  class ApplicationCode {
    + relies on undici for HTTP requests
  }
  class UndiciPackage {
    <<NPM Dependency>>
    version: String
  }
  ApplicationCode ..> UndiciPackage : "dependency defined in package.json"
  note for UndiciPackage "Version upgraded from 4.12.0 to 7.8.0.\n\nThis PR, automatically generated by Snyk, updates the 'undici' HTTP client library.\nKey implications of this upgrade:\n- Addresses a large number of security vulnerabilities (e.g., ReDoS, DoS, Prototype Poisoning, SSRF, CRLF Injection, XSS, etc.).\n- Represents a major version jump (from v4.x to v7.x), indicating potential breaking changes requiring careful testing and possible code adaptation.\n- Incorporates over 100 intermediate releases, bringing numerous bug fixes, performance enhancements, and new features as detailed in the extensive release notes (e.g., improvements to caching, HTTP/2 handling, WebSocket types)."
Loading

File-Level Changes

Change Details Files
Upgrade undici dependency to v7.8.0
  • Update undici version spec in package.json from ^4.12.0 to ^7.8.0
  • Regenerate lockfile to reflect new version
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

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