Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

[Snyk] Security upgrade react-scripts from 1.0.11 to 5.0.0#418

Open
tjenkinson wants to merge 1 commit intomasterfrom
snyk-fix-041912a6509c3724b418e4095f7fb669
Open

[Snyk] Security upgrade react-scripts from 1.0.11 to 5.0.0#418
tjenkinson wants to merge 1 commit intomasterfrom
snyk-fix-041912a6509c3724b418e4095f7fb669

Conversation

@tjenkinson
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • fixtures/attribute-behavior/package.json
  • fixtures/attribute-behavior/yarn.lock

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-ASYNC-7414156
  631  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Regular Expression Denial of Service (ReDoS)

…havior/yarn.lock to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-ASYNC-7414156
@socket-security
Copy link

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

Package New capabilities Transitives Size Publisher
npm/@babel/code-frame@7.24.7 environment +3 109 kB nicolo-ribaudo
npm/@babel/compat-data@7.24.7 None 0 65.6 kB nicolo-ribaudo
npm/@babel/core@7.24.7 environment, filesystem, unsafe +9 2.05 MB nicolo-ribaudo
npm/@babel/generator@7.24.7 None 0 493 kB nicolo-ribaudo
npm/@babel/helper-compilation-targets@7.24.7 None +1 64 kB nicolo-ribaudo
npm/@babel/helper-create-class-features-plugin@7.24.7 None +7 860 kB nicolo-ribaudo
npm/@babel/helper-create-regexp-features-plugin@7.24.7 None +1 146 kB nicolo-ribaudo
npm/@babel/helper-define-polyfill-provider@0.6.2 unsafe 0 221 kB nicolo-ribaudo
npm/@babel/helper-module-imports@7.24.7 None 0 63.7 kB nicolo-ribaudo
npm/@babel/helper-plugin-utils@7.24.7 None 0 127 kB nicolo-ribaudo
npm/@babel/helper-skip-transparent-expression-wrappers@7.24.7 None 0 58.5 kB nicolo-ribaudo
npm/@babel/parser@7.24.7 None 0 1.89 MB nicolo-ribaudo
npm/@babel/plugin-syntax-class-properties@7.12.13 None 0 2.68 kB nicolo-ribaudo
npm/@babel/plugin-syntax-import-meta@7.10.4 None 0 2.56 kB jlhwung
npm/@babel/plugin-syntax-logical-assignment-operators@7.10.4 None 0 2.74 kB jlhwung
npm/@babel/plugin-syntax-numeric-separator@7.10.4 None 0 2.75 kB jlhwung
npm/@babel/plugin-syntax-top-level-await@7.14.5 None 0 2.74 kB nicolo-ribaudo
npm/@babel/plugin-syntax-typescript@7.24.7 None 0 72.8 kB nicolo-ribaudo
npm/@babel/plugin-transform-react-display-name@7.24.7 None 0 78.4 kB nicolo-ribaudo
npm/@babel/preset-env@7.24.7 environment, filesystem +85 5.87 MB nicolo-ribaudo
npm/@babel/preset-react@7.24.7 None +6 506 kB nicolo-ribaudo
npm/@babel/runtime@7.24.7 None 0 246 kB nicolo-ribaudo
npm/@babel/template@7.24.7 None 0 69 kB nicolo-ribaudo
npm/@babel/traverse@7.24.7 None +4 681 kB nicolo-ribaudo
npm/@babel/types@7.24.7 environment +2 2.49 MB nicolo-ribaudo
npm/@csstools/postcss-progressive-custom-properties@1.3.0 None 0 43.9 kB alaguna
npm/@csstools/selector-specificity@2.2.0 None 0 16.7 kB alaguna
npm/@eslint-community/regexpp@4.11.0 None 0 446 kB eslint-community-bot
npm/@jridgewell/gen-mapping@0.3.5 None +1 99.5 kB jridgewell
npm/@jridgewell/sourcemap-codec@1.4.15 None 0 45.9 kB jridgewell
npm/@jridgewell/trace-mapping@0.3.25 None +1 222 kB jridgewell
npm/@nodelib/fs.stat@2.0.5 filesystem 0 11.8 kB mrmlnc
npm/@nodelib/fs.walk@1.2.8 Transitive: filesystem +2 90.5 kB mrmlnc
npm/@pkgjs/parseargs@0.11.0 None 0 74.2 kB oss-bot
npm/@types/babel__core@7.20.5 None +2 50.8 kB types
npm/@types/babel__traverse@7.20.6 None 0 84.1 kB types
npm/@types/eslint@8.56.10 None 0 192 kB types
npm/@types/estree@1.0.5 None 0 25.7 kB types
npm/@types/express-serve-static-core@4.19.5 None +5 2.16 MB types
npm/@types/express@4.17.21 None +4 2.12 MB types
npm/@types/istanbul-lib-coverage@2.0.6 None 0 5.45 kB types
npm/@types/json-schema@7.0.15 None 0 31.7 kB types
npm/@types/serve-static@1.15.7 None +4 2.12 MB types
npm/@typescript-eslint/utils@5.62.0 Transitive: environment, filesystem, unsafe +26 8.18 MB jameshenry
npm/@webassemblyjs/ast@1.12.1 None +5 431 kB xtuc
npm/@webassemblyjs/wasm-parser@1.12.1 None +7 391 kB xtuc
npm/abab@2.0.6 None 0 10.4 kB jeffcarp
npm/accepts@1.3.8 None +2 241 kB dougwilson
npm/acorn@8.12.0 None 0 537 kB marijn
npm/address@1.2.2 environment, filesystem, shell 0 13 kB fengmk2
npm/ajv-keywords@3.5.2 None 0 72.9 kB esp
npm/ajv@6.12.6 eval 0 929 kB esp
npm/ansi-escapes@4.3.2 None +1 135 kB sindresorhus
npm/ansi-styles@4.3.0 None +2 50.9 kB sindresorhus
npm/anymatch@3.1.3 None 0 9.65 kB phated
npm/array-buffer-byte-length@1.0.1 None 0 13.5 kB ljharb
npm/array-includes@3.1.8 None +1 35.5 kB ljharb
npm/array.prototype.flat@1.3.2 None 0 18.7 kB ljharb
npm/babel-jest@27.5.1 environment Transitive: eval, filesystem, shell +22 2.39 MB simenb
npm/babel-plugin-polyfill-corejs3@0.10.4 None 0 207 kB nicolo-ribaudo
npm/braces@3.0.3 None +1 61.4 kB jonschlinkert
npm/browserslist@4.23.1 environment, filesystem +1 359 kB ai
npm/call-bind@1.0.7 None +2 65.3 kB ljharb
npm/camelcase@6.3.0 None 0 11.7 kB sindresorhus
npm/caniuse-lite@1.0.30001639 None 0 2.08 MB caniuse-lite
npm/chalk@2.4.2 environment +5 81.8 kB sindresorhus
npm/chokidar@3.6.0 environment, filesystem +1 102 kB paulmillr
npm/content-type@1.0.5 None 0 10.5 kB dougwilson
npm/core-js-compat@3.37.1 None 0 731 kB zloirock
npm/cross-spawn@7.0.3 environment, filesystem, shell 0 21.2 kB satazor
npm/css-tree@1.1.3 None 0 989 kB lahmatiy
npm/csso@4.2.0 None 0 593 kB lahmatiy
npm/debug@4.3.5 environment 0 42.4 kB qix
npm/deep-is@0.1.4 None 0 8.11 kB thlorenz
npm/define-data-property@1.1.4 None +1 42.6 kB ljharb
npm/define-properties@1.2.1 None 0 12.9 kB ljharb
npm/domelementtype@2.3.0 None 0 11.4 kB feedic
npm/domhandler@4.3.1 None 0 44.6 kB feedic
npm/domutils@2.8.0 network +2 143 kB feedic
npm/es-abstract@1.23.3 None +9 2.53 MB ljharb
npm/es-errors@1.3.0 None 0 12.3 kB ljharb
npm/es-shim-unscopables@1.0.2 None 0 11 kB ljharb
npm/escalade@3.1.2 filesystem 0 11.6 kB lukeed
npm/eslint-visitor-keys@3.4.3 None 0 32.3 kB eslintbot
npm/espree@9.6.1 None +1 98 kB eslintbot
npm/fast-deep-equal@3.1.3 None 0 13 kB esp
npm/fast-glob@3.3.2 filesystem 0 96.7 kB mrmlnc
npm/fast-json-stable-stringify@2.1.0 None 0 17 kB esp
npm/fbjs@0.8.14 Transitive: eval +1 1.63 MB zpao
npm/file-saver@1.3.3 None 0 28.9 kB endless
npm/find-up@4.1.0 Transitive: filesystem +1 18.2 kB sindresorhus
npm/fsevents@2.3.3 None 0 173 kB pipobscure
npm/function.prototype.name@1.1.6 None +1 42.2 kB ljharb

🚮 Removed packages: npm/acorn@5.2.1, npm/address@1.0.3, npm/ajv-keywords@2.1.1, npm/ajv@5.3.0, npm/alphanum-sort@1.0.2, npm/arrify@1.0.1, npm/async@2.6.0, npm/aws-sign2@0.7.0, npm/babel-code-frame@6.26.0, npm/babel-core@6.26.0, npm/babel-generator@6.26.0, npm/babel-jest@20.0.3, npm/babel-plugin-syntax-dynamic-import@6.18.0, npm/babel-plugin-syntax-jsx@6.18.0, npm/babel-plugin-transform-es2015-modules-amd@6.24.1, npm/babel-plugin-transform-es2015-modules-commonjs@6.26.0, npm/babel-plugin-transform-react-jsx-self@6.22.0, npm/babel-plugin-transform-react-jsx-source@6.22.0, npm/babel-plugin-transform-react-jsx@6.24.1, npm/babel-plugin-transform-regenerator@6.26.0, npm/babel-template@6.26.0, npm/babel-traverse@6.26.0, npm/babel-types@6.26.0, npm/babylon@6.18.0, npm/bn.js@4.11.8, npm/boom@4.3.1, npm/browser-resolve@1.11.2, npm/browserify-aes@1.1.0, npm/browserify-aes@1.1.1, npm/browserify@13.3.0, npm/browserslist@2.9.0, npm/builtin-modules@1.1.1, npm/caniuse-db@1.0.30000760, npm/caniuse-lite@1.0.30000760, npm/chalk@1.1.3, npm/cipher-base@1.0.4, npm/color-convert@1.9.1, npm/commander@2.11.0, npm/concat-stream@1.5.2, npm/cosmiconfig@2.2.2, npm/create-hash@1.1.3, npm/create-hmac@1.1.6, npm/cross-spawn@5.1.0, npm/cryptiles@3.1.2, npm/cssom@0.3.2, npm/del@2.2.2, npm/depd@1.1.1, npm/detect-libc@1.0.2, npm/duplexer2@0.1.4, npm/electron-to-chromium@1.3.27, npm/es5-ext@0.10.35, npm/es6-iterator@2.0.3, npm/es6-symbol@3.1.1, npm/evp_bytestokey@1.0.3, npm/expand-tilde@2.0.2, npm/find-up@2.1.0, npm/form-data@2.3.1, npm/hash.js@1.1.3, npm/minimalistic-crypto-utils@1.0.1, npm/parents@1.0.1, npm/randombytes@2.0.5, npm/resolve@1.4.0, npm/ripemd160@2.0.1, npm/sha.js@2.4.9

View full report↗︎

@socket-security
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 NoteSourceCI
Install scripts npm/core-js-pure@3.37.1
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
  • orphan: npm/core-js-pure@3.37.1
🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

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/core-js-pure@3.37.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants