contentful / create-contentful-app

Bootstrap a Contentful App
https://contentful.com/developers/docs/extensibility/app-framework/create-contentful-app/
MIT License
103 stars 24 forks source link

Vulnerabilities warning #1609

Open knynkwl opened 1 year ago

knynkwl commented 1 year ago

Node: v18.8.0 npm: 8.18.0


# npm audit report

nth-check  <2.0.1
Severity: high
Inefficient Regular Expression Complexity in nth-check - https://github.com/advisories/GHSA-rp65-9cf3-cjxr
fix available via `npm audit fix --force`
Will install react-scripts@2.1.3, which is a breaking change
node_modules/svgo/node_modules/nth-check
  css-select  <=3.1.0
  Depends on vulnerable versions of nth-check
  node_modules/svgo/node_modules/css-select
    svgo  1.0.0 - 1.3.2
    Depends on vulnerable versions of css-select
    node_modules/svgo
      @svgr/plugin-svgo  <=5.5.0
      Depends on vulnerable versions of svgo
      node_modules/@svgr/plugin-svgo
        @svgr/webpack  4.0.0 - 5.5.0
        Depends on vulnerable versions of @svgr/plugin-svgo
        node_modules/@svgr/webpack
          react-scripts  >=2.1.4
          Depends on vulnerable versions of @svgr/webpack
          node_modules/react-scripts

6 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force
knynkwl commented 1 year ago

Looks to be an issue with svgr

Fixed with:

npm i @svgr/webpack -D

# added to package.json

"overrides": {
    "@svgr/webpack": "$@svgr/webpack"
},