Uniswap / smart-order-router

GNU General Public License v3.0
408 stars 404 forks source link

chore(deps): update npm dependencies #622

Closed github-actions[bot] closed 3 months ago

github-actions[bot] commented 3 months ago

This pull request fixes the vulnerable packages via npm 10.8.1.

Updated (44) | Package | Version | Source | Detail | |:--------|:-------:|:------:|:-------| | [@babel/code-frame](https://www.npmjs.com/package/@babel/code-frame/v/7.24.7) (`@babel/traverse/node_modules/@babel/code-frame`) | `7.16.7` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/code-frame](https://www.npmjs.com/package/@babel/code-frame/v/7.24.7) (`@babel/template/node_modules/@babel/code-frame`) | `7.16.7` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/generator](https://www.npmjs.com/package/@babel/generator/v/7.24.7) | `7.18.2` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/helper-environment-visitor](https://www.npmjs.com/package/@babel/helper-environment-visitor/v/7.24.7) | `7.18.2` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/helper-function-name](https://www.npmjs.com/package/@babel/helper-function-name/v/7.24.7) | `7.17.9` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/helper-hoist-variables](https://www.npmjs.com/package/@babel/helper-hoist-variables/v/7.24.7) | `7.16.7` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/helper-split-export-declaration](https://www.npmjs.com/package/@babel/helper-split-export-declaration/v/7.24.7) | `7.16.7` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/helper-validator-identifier](https://www.npmjs.com/package/@babel/helper-validator-identifier/v/7.24.7) | `7.22.20` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/highlight](https://www.npmjs.com/package/@babel/highlight/v/7.24.7) | `7.23.4` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/parser](https://www.npmjs.com/package/@babel/parser/v/7.24.7) | `7.18.3` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/template](https://www.npmjs.com/package/@babel/template/v/7.24.7) | `7.16.7` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@babel/traverse](https://www.npmjs.com/package/@babel/traverse/v/7.24.7) | `7.18.2` → `7.24.7` | [github](https://github.com/babel/babel) | **[Critical]** Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code ([ref](https://github.com/advisories/GHSA-67hx-6x53-jw92)) | | [@babel/types](https://www.npmjs.com/package/@babel/types/v/7.24.7) | `7.18.2` → `7.24.7` | [github](https://github.com/babel/babel) | - | | [@eth-optimism/core-utils](https://www.npmjs.com/package/@eth-optimism/core-utils/v/0.12.0) | `0.13.1` → `0.12.0` | [github](https://github.com/ethereum-optimism/optimism) | - | | [@eth-optimism/sdk](https://www.npmjs.com/package/@eth-optimism/sdk/v/3.3.2) | `3.2.2` → `3.3.2` | [github](https://github.com/ethereum-optimism/ecosystem) | - | | [@jridgewell/gen-mapping](https://www.npmjs.com/package/@jridgewell/gen-mapping/v/0.3.5) (`@babel/generator/node_modules/@jridgewell/gen-mapping`) | `0.3.1` → `0.3.5` | [github](https://github.com/jridgewell/gen-mapping) | - | | [@jridgewell/set-array](https://www.npmjs.com/package/@jridgewell/set-array/v/1.2.1) | `1.1.1` → `1.2.1` | [github](https://github.com/jridgewell/set-array) | - | | [@jridgewell/trace-mapping](https://www.npmjs.com/package/@jridgewell/trace-mapping/v/0.3.25) | `0.3.22` → `0.3.25` | [github](https://github.com/jridgewell/trace-mapping) | - | | [@nomiclabs/hardhat-ethers](https://www.npmjs.com/package/@nomiclabs/hardhat-ethers/v/2.2.3) | `2.0.6` → `2.2.3` | [github](https://github.com/nomiclabs/hardhat) | - | | [@typechain/ethers-v5](https://www.npmjs.com/package/@typechain/ethers-v5/v/7.2.0) | `7.0.1` → `7.2.0` | [github](https://github.com/ethereum-ts/Typechain) | - | | [@uniswap/router-sdk](https://www.npmjs.com/package/@uniswap/router-sdk/v/1.9.3) | `1.9.2` → `1.9.3` | [github](https://github.com/Uniswap/sdks) | - | | [@uniswap/sdk-core](https://www.npmjs.com/package/@uniswap/sdk-core/v/5.3.1) | `5.3.0` → `5.3.1` | [github](https://github.com/Uniswap/sdks) | - | | [@uniswap/universal-router-sdk](https://www.npmjs.com/package/@uniswap/universal-router-sdk/v/2.2.2) | `2.2.0` → `2.2.2` | [github](https://github.com/Uniswap/sdks) | - | | [@uniswap/v2-sdk](https://www.npmjs.com/package/@uniswap/v2-sdk/v/4.4.1) | `4.3.2` → `4.4.1` | [github](https://github.com/Uniswap/sdks) | - | | [@uniswap/v3-sdk](https://www.npmjs.com/package/@uniswap/v3-sdk/v/3.13.1) | `3.13.0` → `3.13.1` | [github](https://github.com/Uniswap/sdks) | - | | [braces](https://www.npmjs.com/package/braces/v/3.0.3) | `3.0.2` → `3.0.3` | [github](https://github.com/micromatch/braces) | **[High]** Uncontrolled resource consumption in braces ([ref](https://github.com/advisories/GHSA-grv7-fg5c-xmjg)) | | [fill-range](https://www.npmjs.com/package/fill-range/v/7.1.1) | `7.0.1` → `7.1.1` | [github](https://github.com/jonschlinkert/fill-range) | - | | [follow-redirects](https://www.npmjs.com/package/follow-redirects/v/1.15.6) | `1.15.0` → `1.15.6` | [github](https://github.com/follow-redirects/follow-redirects) | **[Moderate]** Follow Redirects improperly handles URLs in the url.parse() function ([ref](https://github.com/advisories/GHSA-jchw-25xp-jwwc)) | | [jest-environment-hardhat](https://www.npmjs.com/package/jest-environment-hardhat/v/1.1.9) | `1.1.8` → `1.1.9` | [github](https://github.com/Uniswap/jest-environment-hardhat) | - | | [json5](https://www.npmjs.com/package/json5/v/1.0.2) (`tsconfig-paths/node_modules/json5`) | `1.0.1` → `1.0.2` | [github](https://github.com/json5/json5) | **[High]** Prototype Pollution in JSON5 via Parse Method ([ref](https://github.com/advisories/GHSA-9c47-m6qq-7p4h)) | | [json5](https://www.npmjs.com/package/json5/v/2.2.3) | `2.2.1` → `2.2.3` | [github](https://github.com/json5/json5) | **[High]** Prototype Pollution in JSON5 via Parse Method ([ref](https://github.com/advisories/GHSA-9c47-m6qq-7p4h)) | | [moment](https://www.npmjs.com/package/moment/v/2.30.1) | `2.29.3` → `2.30.1` | [github](https://github.com/moment/moment) | **[High]** Moment.js vulnerable to Inefficient Regular Expression Complexity ([ref](https://github.com/advisories/GHSA-wc69-rhjr-hc9g)) | | [semver](https://www.npmjs.com/package/semver/v/5.7.2) (`solc/node_modules/semver`) | `5.7.1` → `5.7.2` | [github](https://github.com/npm/node-semver) | **[Moderate]** semver vulnerable to Regular Expression Denial of Service ([ref](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)) | | [semver](https://www.npmjs.com/package/semver/v/5.7.2) (`npm-run-all/node_modules/semver`) | `5.7.1` → `5.7.2` | [github](https://github.com/npm/node-semver) | **[Moderate]** semver vulnerable to Regular Expression Denial of Service ([ref](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)) | | [semver](https://www.npmjs.com/package/semver/v/5.7.2) (`normalize-package-data/node_modules/semver`) | `5.7.1` → `5.7.2` | [github](https://github.com/npm/node-semver) | **[Moderate]** semver vulnerable to Regular Expression Denial of Service ([ref](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)) | | [semver](https://www.npmjs.com/package/semver/v/6.3.1) (`hardhat/node_modules/semver`) | `6.3.0` → `6.3.1` | [github](https://github.com/npm/node-semver) | **[Moderate]** semver vulnerable to Regular Expression Denial of Service ([ref](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)) | | [semver](https://www.npmjs.com/package/semver/v/6.3.1) (`@babel/core/node_modules/semver`) | `6.3.0` → `6.3.1` | [github](https://github.com/npm/node-semver) | **[Moderate]** semver vulnerable to Regular Expression Denial of Service ([ref](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)) | | [semver](https://www.npmjs.com/package/semver/v/6.3.1) (`nyc/node_modules/semver`) | `6.3.0` → `6.3.1` | [github](https://github.com/npm/node-semver) | **[Moderate]** semver vulnerable to Regular Expression Denial of Service ([ref](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)) | | [semver](https://www.npmjs.com/package/semver/v/6.3.1) (`make-dir/node_modules/semver`) | `6.3.0` → `6.3.1` | [github](https://github.com/npm/node-semver) | **[Moderate]** semver vulnerable to Regular Expression Denial of Service ([ref](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)) | | [semver](https://www.npmjs.com/package/semver/v/6.3.1) (`@babel/helper-compilation-targets/node_modules/semver`) | `6.3.0` → `6.3.1` | [github](https://github.com/npm/node-semver) | **[Moderate]** semver vulnerable to Regular Expression Denial of Service ([ref](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)) | | [semver](https://www.npmjs.com/package/semver/v/6.3.1) (`istanbul-lib-instrument/node_modules/semver`) | `6.3.0` → `6.3.1` | [github](https://github.com/npm/node-semver) | **[Moderate]** semver vulnerable to Regular Expression Denial of Service ([ref](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)) | | [tough-cookie](https://www.npmjs.com/package/tough-cookie/v/4.1.4) | `4.0.0` → `4.1.4` | [github](https://github.com/salesforce/tough-cookie) | **[Moderate]** tough-cookie Prototype Pollution vulnerability ([ref](https://github.com/advisories/GHSA-72xf-g2v4-qvf3)) | | [undici](https://www.npmjs.com/package/undici/v/5.28.4) | `5.12.0` → `5.28.4` | [github](https://github.com/nodejs/undici) | **[High]** Regular Expression Denial of Service in Headers ([ref](https://github.com/advisories/GHSA-r6ch-mqf9-qc9w)) | | [word-wrap](https://www.npmjs.com/package/word-wrap/v/1.2.5) | `1.2.3` → `1.2.5` | [github](https://github.com/jonschlinkert/word-wrap) | **[Moderate]** word-wrap vulnerable to Regular Expression Denial of Service ([ref](https://github.com/advisories/GHSA-j8xg-fqg3-53r7)) |
Added (7) | Package | Version | Source | Detail | |:--------|:-------:|:------:|:-------| | [@babel/helper-string-parser](https://www.npmjs.com/package/@babel/helper-string-parser/v/7.24.7) | `7.24.7` | [github](https://github.com/babel/babel) | - | | [@eth-optimism/core-utils](https://www.npmjs.com/package/@eth-optimism/core-utils/v/0.13.2) (`@eth-optimism/sdk/node_modules/@eth-optimism/core-utils`) | `0.13.2` | [github](https://github.com/ethereum-optimism/optimism) | - | | [@fastify/busboy](https://www.npmjs.com/package/@fastify/busboy/v/2.1.1) | `2.1.1` | [github](https://github.com/fastify/busboy) | - | | [querystringify](https://www.npmjs.com/package/querystringify/v/2.2.0) | `2.2.0` | [github](https://github.com/unshiftio/querystringify) | - | | [requires-port](https://www.npmjs.com/package/requires-port/v/1.0.0) | `1.0.0` | [github](https://github.com/unshiftio/requires-port) | - | | [universalify](https://www.npmjs.com/package/universalify/v/0.2.0) (`tough-cookie/node_modules/universalify`) | `0.2.0` | [github](https://github.com/RyanZim/universalify) | - | | [url-parse](https://www.npmjs.com/package/url-parse/v/1.5.10) | `1.5.10` | [github](https://github.com/unshiftio/url-parse) | - |
Removed (4) | Package | Version | Source | Detail | |:--------|:-------:|:------:|:-------| | [@eth-optimism/contracts-bedrock](https://www.npmjs.com/package/@eth-optimism/contracts-bedrock/v/0.17.1) | `0.17.1` | - | - | | [@eth-optimism/core-utils](https://www.npmjs.com/package/@eth-optimism/core-utils/v/0.12.0) (`@eth-optimism/contracts/node_modules/@eth-optimism/core-utils`) | `0.12.0` | [github](https://github.com/ethereum-optimism/optimism) | - | | [busboy](https://www.npmjs.com/package/busboy/v/1.6.0) | `1.6.0` | [github](https://github.com/mscdex/busboy) | - | | [streamsearch](https://www.npmjs.com/package/streamsearch/v/1.1.0) | `1.1.0` | [github](https://github.com/mscdex/streamsearch) | - |

Created by ybiquitous/npm-audit-fix-action

socket-security[bot] commented 3 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@eth-optimism/sdk@3.3.2 Transitive: network +72 20.3 MB optibot
npm/@nomiclabs/hardhat-ethers@2.2.3 None 0 80.9 kB fvictorio
npm/@typechain/ethers-v5@7.2.0 filesystem Transitive: network +28 2.43 MB ethereum-ts-bot
npm/@uniswap/router-sdk@1.9.3 environment Transitive: network +27 2.95 MB uniswap-labs-service-account
npm/@uniswap/sdk-core@5.3.1 environment +14 1.33 MB uniswap-labs-service-account
npm/@uniswap/universal-router-sdk@2.2.2 environment +1 1.35 MB uniswap-labs-service-account
npm/@uniswap/v2-sdk@4.4.1 environment +17 1.1 MB uniswap-labs-service-account
npm/@uniswap/v3-sdk@3.13.1 environment Transitive: network +33 4.87 MB uniswap-labs-service-account
npm/jest-environment-hardhat@1.1.9 environment +1 106 kB zzmp

🚮 Removed packages: npm/@eth-optimism/sdk@3.2.2, npm/@nomiclabs/hardhat-ethers@2.0.6, npm/@typechain/ethers-v5@7.0.1, npm/@uniswap/router-sdk@1.9.2, npm/@uniswap/sdk-core@5.3.0, npm/@uniswap/universal-router-sdk@2.2.0, npm/@uniswap/v2-sdk@4.3.2, npm/@uniswap/v3-sdk@3.13.0, npm/jest-environment-hardhat@1.1.8

View full report↗︎

socket-security[bot] commented 3 months ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Unmaintained npm/requires-port@1.0.0
  • Last Publish: 10/30/2015, 2:42:33 PM
⚠︎
Filesystem access npm/@typechain/ethers-v5@7.2.0 ⚠︎
Network access npm/undici@5.28.4 ⚠︎
Network access npm/undici@5.28.4 ⚠︎

View full report↗︎

Next steps

What are unmaintained packages?

Package has not been updated in more than 5 years and may be unmaintained. Problems with the package may go unaddressed.

Package should publish periodic maintenance releases if they are maintained, or deprecate if they have no intention in further maintenance.

What is filesystem access?

Accesses the file system, and could potentially read sensitive data.

If a package must read the file system, clarify what it will read and ensure it reads only what it claims to. If appropriate, packages can leave file system access to consumers and operate on data passed to it instead.

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/requires-port@1.0.0
  • @SocketSecurity ignore npm/@typechain/ethers-v5@7.2.0
  • @SocketSecurity ignore npm/undici@5.28.4