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

node-zopfli reported as having a moderate severity vulnerabilty #129

Open
mind-bending-forks opened this issue Jun 23, 2023 · 0 comments
Open

Comments

@mind-bending-forks
Copy link

As of today (23 June 2023), running npm audit on a project that uses node-zopfli results in the following audit report:

semver  <7.5.2
Severity: moderate
semver vulnerable to Regular Expression Denial of Service - https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/semver
  node-abi  2.1.2 - 2.30.1
  Depends on vulnerable versions of semver
  node_modules/node-abi
    prebuild-install  2.5.1 - 6.1.4
    Depends on vulnerable versions of node-abi
    node_modules/prebuild-install
      node-zopfli  >=2.1.3
      Depends on vulnerable versions of prebuild-install
      node_modules/node-zopfli

The vulnerability is arising from node-zopli's dependency on the semver package, which is reported as being vulnerable to Regular Expression Denial of Service: GHSA-c2qf-rxjj-qqgw

Trying npm audit fix --forcecauses npm to try to downgrade node-zopfli to 2.0.3, which ultimately fails with compilation errors.

A fix for semver is available: https://github.com/npm/node-semver/releases/tag/v7.5.3

Please update node-zopfli's dependency tree to address this vulnerability.

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

No branches or pull requests

1 participant