Skip to content
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

[Snyk] Upgrade react-scripts from 5.0.0 to 5.0.1 #235

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

Conversation

officialmofabs
Copy link
Collaborator

snyk-top-banner

Snyk has created this PR to upgrade react-scripts from 5.0.0 to 5.0.1.

ℹ️ 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.


  • The recommended version is 1 version ahead of your current version.

  • The recommended version was released on 3 years ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-MINIMATCH-3050818
265 No Known Exploit
critical severity Incomplete List of Disallowed Inputs
SNYK-JS-BABELTRAVERSE-5962462
265 Proof of Concept
Release notes
Package name: react-scripts
  • 5.0.1 - 2022-04-12

    5.0.1 (2022-04-12)

    Create React App 5.0.1 is a maintenance release that improves compatibility with React 18. We've also updated our templates to use createRoot and relaxed our check for older versions of Create React App.

    Migrating from 5.0.0 to 5.0.1

    Inside any created project that has not been ejected, run:

    npm install --save --save-exact react-scripts@5.0.1
    

    or

    yarn add --exact react-scripts@5.0.1
    

    🐛 Bug Fix

    💅 Enhancement

    • cra-template-typescript, cra-template, react-scripts
    • cra-template-typescript, cra-template
    • eslint-config-react-app

    📝 Documentation

    🏠 Internal

    Committers: 11

  • 5.0.0 - 2021-12-14

    v5.0.0 (2021-12-14)

    Create React App 5.0 is a major release with several new features and the latest version of all major dependencies.

    Thanks to all the maintainers and contributors who worked so hard on this release! 🙌

    Highlights

    • webpack 5 (#11201)
    • Jest 27 (#11338)
    • ESLint 8 (#11375)
    • PostCSS 8 (#11121)
    • Fast Refresh improvements and bug fixes (#11105)
    • Support for Tailwind (#11717)
    • Improved package manager detection (#11322)
    • Unpinned all dependencies for better compatibility with other tools (#11474)
    • Dropped support for Node 10 and 12

    Migrating from 4.0.x to 5.0.0

    Inside any created project that has not been ejected, run:

    npm install --save --save-exact react-scripts@5.0.0

    or

    yarn add --exact react-scripts@5.0.0
    

    NOTE: You may need to delete your node_modules folder and reinstall your dependencies by running npm install (or yarn) if you encounter errors after upgrading.

    If you previously ejected but now want to upgrade, one common solution is to find the commits where you ejected (and any subsequent commits changing the configuration), revert them, upgrade, and later optionally eject again. It’s also possible that the feature you ejected for is now supported out of the box.

    Breaking Changes

    Like any major release, react-scripts@5.0.0 contains a number of breaking changes. We expect that they won't affect every user, but we recommend you look over this section to see if something is relevant to you. If we missed something, please file a new issue.

    Dropped support for Node 10 and 12

    Node 10 reached End-of-Life in April 2021 and Node 12 will be End-of-Life in April 2022. Going forward we will only support the latest LTS release of Node.js.

    Full Changelog

    💥 Breaking Change

    • create-react-app
    • babel-preset-react-app, cra-template-typescript, cra-template, create-react-app, eslint-config-react-app, react-app-polyfill, react-dev-utils, react-error-overlay, react-scripts
    • eslint-config-react-app, react-error-overlay, react-scripts
    • react-scripts

    🐛 Bug Fix

    💅 Enhancement

    • react-scripts
      • #11717 Add support for Tailwind (@ iansu)
      • #8227 Add source-map-loader for debugging into original source of node_modules libraries that contain sourcemaps (@ justingrant)
      • #10499 Remove ESLint verification when opting-out (@ mrmckeb)
    • eslint-config-react-app, react-error-overlay, react-scripts
    • create-react-app
    • react-dev-utils
    • create-react-app, react-scripts

    📝 Documentation

    🏠 Internal

    • Other
    • create-react-app
    • babel-plugin-named-asset-import, babel-preset-react-app, confusing-browser-globals, create-react-app, react-app-polyfill, react-dev-utils, react-error-overlay, react-scripts
    • react-scripts
    • babel-plugin-named-asset-import, confusing-browser-globals, create-react-app, eslint-config-react-app, react-dev-utils, react-error-overlay, react-scripts
    • confusing-browser-globals, cra-template-typescript, cra-template, create-react-app
    • react-error-overlay, react-scripts
    • babel-preset-react-app, cra-template-typescript, cra-template, create-react-app, eslint-config-react-app, react-app-polyfill, react-dev-utils, react-error-overlay, react-scripts

    🔨 Underlying Tools

    • react-dev-utils, react-scripts
    • react-scripts
    • babel-plugin-named-asset-import, confusing-browser-globals, create-react-app, react-dev-utils, react-error-overlay, react-scripts
      • #11338 Upgrade jest and related packages from 26.6.0 to 27.1.0 (@ krreet)
    • eslint-config-react-app, react-error-overlay, react-scripts
    • babel-preset-react-app, react-dev-utils, react-error-overlay, react-scripts
    • react-dev-utils

    Committers: 34

from react-scripts GitHub release notes

Important

  • 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:

Snyk has created this PR to upgrade react-scripts from 5.0.0 to 5.0.1.

See this package in npm:
react-scripts

See this project in Snyk:
https://app.snyk.io/org/supportigedevteam.onmicrosoft.com/project/18dc50d6-4d8c-4ee3-8624-89d2e9bb4afc?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

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

Package New capabilities Transitives Size Publisher
npm/@humanwhocodes/object-schema@1.2.1 None 0 49.4 kB nzakas
npm/acorn-jsx@5.3.2 None 0 24.4 kB rreverser
npm/ansi-colors@4.1.3 environment 0 26.1 kB jonschlinkert
npm/argparse@1.0.10 environment, filesystem 0 116 kB vitaly
npm/astral-regex@2.0.0 None 0 3.4 kB kevva
npm/de-indent@1.0.2 None 0 2.2 kB yyx990803
npm/deep-is@0.1.4 None 0 8.11 kB thlorenz
npm/eslint-plugin-vue@7.20.0 filesystem, unsafe 0 1.07 MB ota-meshi
npm/esprima@4.0.1 None 0 314 kB ariya
npm/fast-levenshtein@2.0.6 None 0 9.44 kB hiddentao
npm/flat-cache@3.0.4 filesystem 0 30 kB royriojas
npm/flatted@3.2.5 None 0 78.7 kB webreflection
npm/json-stable-stringify-without-jsonify@1.0.1 None 0 14.2 kB samn
npm/levn@0.4.1 None 0 24.9 kB gkz
npm/lodash.merge@4.6.2 None 0 54.1 kB jdalton
npm/lodash.truncate@4.4.2 None 0 19.8 kB jdalton
npm/natural-compare@1.4.0 None 0 5.65 kB megawac
npm/optionator@0.9.1 None +1 71.3 kB gkz
npm/prelude-ls@1.2.1 None 0 36.7 kB gkz
npm/progress@2.0.3 None 0 15.5 kB turbopope
npm/regexpp@3.2.0 None 0 302 kB mysticatea

🚮 Removed packages: npm/setprototypeof@1.2.0, npm/shallow-clone@3.0.1, npm/shebang-command@1.2.0, npm/shebang-regex@1.0.0, npm/shell-quote@1.7.3, npm/side-channel@1.0.4, npm/signal-exit@3.0.7, npm/sirv@1.0.19, npm/slash@3.0.0, npm/sockjs@0.3.24, npm/source-map-js@1.0.2, npm/source-map-support@0.5.21, npm/spdx-correct@3.1.1, npm/spdx-exceptions@2.3.0, npm/spdx-expression-parse@3.0.1, npm/spdx-license-ids@3.0.11, npm/spdy-transport@3.0.0, npm/spdy@4.0.2, npm/ssri@8.0.1, npm/stable@0.1.8, npm/stackframe@1.2.1, npm/statuses@2.0.1, npm/string_decoder@1.3.0, npm/strip-ansi@6.0.1, npm/strip-eof@1.0.0, npm/strip-final-newline@2.0.0, npm/strip-indent@2.0.0, npm/stylehacks@5.1.0, npm/supports-color@7.2.0, npm/supports-preserve-symlinks-flag@1.0.0, npm/svg-tags@1.0.0, npm/svgo@2.8.0, npm/terser-webpack-plugin@5.3.1, npm/terser@5.13.1, npm/thenify-all@1.6.0, npm/thenify@3.3.1, npm/thread-loader@3.0.4, npm/thunky@1.1.0, npm/to-fast-properties@2.0.0, npm/toidentifier@1.0.1, npm/totalist@1.1.0, npm/tr46@0.0.3, npm/tslib@2.4.0, npm/type-fest@0.6.0, npm/unicode-canonical-property-names-ecmascript@2.0.0, npm/unicode-match-property-ecmascript@2.0.0, npm/unicode-match-property-value-ecmascript@2.0.0, npm/unicode-property-aliases-ecmascript@2.0.0, npm/universalify@2.0.0, npm/uri-js@4.4.1, npm/utila@0.4.0, npm/uuid@8.3.2, npm/validate-npm-package-license@3.0.4, npm/vue-hot-reload-api@2.3.4, npm/vue-loader@17.0.0, npm/vue-template-es2015-compiler@1.9.1, npm/vue@2.6.14, npm/watchpack@2.3.1, npm/wcwidth@1.0.1, npm/webidl-conversions@3.0.1, npm/webpack-bundle-analyzer@4.5.0, npm/webpack-chain@6.5.1, npm/webpack-dev-middleware@5.3.1, npm/webpack-dev-server@4.9.0, npm/webpack-merge@5.8.0, npm/webpack-sources@3.2.3, npm/webpack-virtual-modules@0.4.3, npm/webpack@5.72.1, npm/websocket-extensions@0.1.4, npm/whatwg-fetch@3.6.2, npm/whatwg-url@5.0.0, npm/which@1.3.1, npm/wildcard@2.0.0, npm/wrap-ansi@7.0.0, npm/ws@7.5.7, npm/y18n@5.0.8, npm/yallist@4.0.0, npm/yaml@1.10.2, npm/yargs-parser@20.2.9, npm/yargs@16.2.0, npm/yorkie@2.0.0

View full report↗︎

Copy link

🚨 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 NoteCI
Critical CVE npm/loader-utils@1.4.0 ⚠︎

View full report↗︎

Next steps

What is a critical CVE?

Contains a Critical Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

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/loader-utils@1.4.0

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