Skip to content

Conversation

@joaop-br
Copy link

@joaop-br joaop-br commented Jul 3, 2023

Fixes #78 issue with npm audit

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Moderate      │ semver vulnerable to Regular Expression Denial of Service    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ semver                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ semver [dev]                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ semver                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://github.com/advisories/GHSA-c2qf-rxjj-qqgw            │
└───────────────┴──────────────────────────────────────────────────────────────┘

@natan500
Copy link

natan500 commented Jul 9, 2023

I see that the changes here are in dev dependencies but in the last official version - 4.2.2 on npm website, the semver package is a production dependency.
https://www.npmjs.com/package/cls-hooked?activeTab=readme

"chai": "^4.1.0",
"mocha": "^6.2.2",
"semver": "^6.3.0",
"semver": "^7.5.3",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semver is used in index.js when the module is loaded. Should this be in dependencies instead of devDependencies?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest release to npm was v4.2.2 in 2017, with a non-dev dependency on semver ^5.4.1
After that, there were multiple changes that never got released, including this commit which moved
semver from dependencies to devDependencies. But that was never released and the latest code still uses semver during module load. Looks strange.

@magtutu
Copy link

magtutu commented Jul 10, 2023

Does anyone know how to contact the module author?

}
},
"semver": {
"version": "6.3.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like superagent is also using semver@6, you will also need to upgrade superagent version requirement to ^5.3.1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any update here? should we open a new PR where we change superagents version and semver?
See no reason why this should wait any longer

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.

Does it possible to update semver depcy from anything to 7.5.2?

6 participants