Skip to content

semver vulnerable to Regular Expression Denial of Service #943

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

Closed
1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP opened this issue Jul 4, 2023 · 1 comment · Fixed by #944
Closed

Comments

@1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP

The semver package has a security vulnerability. They only fixed v7, but the babel team has backported the fix to semver v6, can we use that? babel/babel#15742

npm audit output
# npm 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`
node_modules/eslint-plugin-jsx-a11y/node_modules/semver
  eslint-plugin-jsx-a11y  >=6.6.0
  Depends on vulnerable versions of semver
  node_modules/eslint-plugin-jsx-a11y
@ljharb
Copy link
Member

ljharb commented Jul 4, 2023

It’s not a really a vulnerability - like most JS CVEs, it’s a false positive - and we can’t upgrade to v7. I’d rather not use a fork, and would instead prefer to wait until semver backports it to v6, since it’s not an actual vuln.

@ljharb ljharb closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2023
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 a pull request may close this issue.

2 participants