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

ugrade semver to 7.5.3 #18534

Merged
merged 2 commits into from
Jul 10, 2023
Merged

ugrade semver to 7.5.3 #18534

merged 2 commits into from
Jul 10, 2023

Conversation

andym0457
Copy link
Contributor

@andym0457 andym0457 commented Jul 4, 2023

Hey, I just made a Pull Request!

resolves #18439

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@backstage-goalie
Copy link
Contributor

backstage-goalie bot commented Jul 4, 2023

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/cli-node packages/cli-node patch v0.1.2-next.0
@backstage/cli packages/cli patch v0.22.9-next.0
@backstage/plugin-devtools-backend plugins/devtools-backend patch v0.1.2-next.1
@backstage/plugin-tech-insights-backend plugins/tech-insights-backend patch v0.5.13-next.0

@andym0457 andym0457 marked this pull request as ready for review July 4, 2023 11:58
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Uffizzi Preview deployment-30090 was deleted.

@andym0457
Copy link
Contributor Author

How do I verify that this upgrades have fixed the vulnerability as I do not have access to run the command sync:test.

Also what do I do for vulnerabilities in packages that are using older version of semwer which were not listed such as in @babel/core which is using version 6.3.0

@benjdlambert
Copy link
Member

Hey 👋 so you can try and remove the older definitions from the yarn.lock manually and running yarn install, or maybe running yarn dedupe might help? There's also a spelling mistake in the changeset that needs fixing too 🤞

@benjdlambert
Copy link
Member

Hey @andym0457 looks like there's some merge conflicts that have crept in here :(

resolves backstage#18439

Signed-off-by: Andy Muldoon <andy.muldoon@ericsson.com>
@andym0457 andym0457 force-pushed the semwer-upgrade branch 2 times, most recently from 8788479 to f1f7fc5 Compare July 6, 2023 14:21
Signed-off-by: Andy Muldoon <andy.muldoon@ericsson.com>
@andym0457
Copy link
Contributor Author

andym0457 commented Jul 6, 2023

Hey @benjdlambert,

I've address the comments left and have rebased the pull request to remove the conflicts.
I still have some questions as to how to deal with packages that are using older versions of semver that I can't upgrade.
Some are using 5.71/6.3.0/7.0.0.

Here is a breakdown of which packages are still effected
5.7.1

  • normalize-package-data@npm2.5.0 -> latest 5.0.0
  • nodemon@npm:2.0.22 -> latest 2.0.22
  • node-abi@npm:2.30.1 -> latest 3.45.0
  • make-dir@npm:2.1.0 -> latest 4.0.0
  • cross-spawn@npm:6.0.5 -> latest 7.0.3
  • patch-package@npm:6.5.1 -> latest 7.0.0

6.3.0

  • make-dir@npm:3.1.0 -> latest 4.0.0
  • istanbul-lib-instrument@npm:5.1.0 -> latest 5.2.1
  • eslint-plugin-react@npm:7.32.2 -> latest 7.32.2
  • eslint-plugin-jsx-a11y@npm:6.7.1 -> latest 6.7.1
  • eslint-plugin-import@npm:2.27.5 -> latest 2.27.5
  • babel-plugin-polyfill-corejs2@npm:0.3.1 -> latest 0.4.4
  • @babel/preset-env@npm:7.18.9 -> latest 7.22.7
  • @babel/helper-define-polyfill-provider@npm:0.3.1 -> latest 0.4.1
  • @babel/helper-compilation-targets@npm:7.19.1 -> latest 7.22.6
  • @babel/core@npm:7.19.1 -> latest 7.22.8

7.0.0

  • core-js-compat@npm:3.23.5 -> latest 3.31.0

I'm not sure how to deal with these as some are already on their latest and still have an old semver version in use? Or is the MR OK with upgrading the packages that can be to resolve the issue?

@cowboyd
Copy link
Contributor

cowboyd commented Jul 7, 2023

Also, it's hard to see if the failures are related to this change (I wouldn't expect that they are)

@cowboyd
Copy link
Contributor

cowboyd commented Jul 10, 2023

My recommendation would be to upgrade as far as is possible with the currently released sets of packages. For downstream packages that have not yet released fixes, or for further upgrades, we should continue to integrate them as they come because not all usages of the vulnerable semver package result in an exposure to the attack, so the more we can remove the sooner, the better.

Copy link
Member

@benjdlambert benjdlambert left a comment

Choose a reason for hiding this comment

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

The changeset isn't super important here, as the fixed version is still in the accepted range for all these packages anyways, but it's nice to have. I think that this might be the best we can do right now until other packages update their semver ranges, but this is great for now!

@benjdlambert
Copy link
Member

Going to merge this as the E2E's are failing because of upstream type issues.

@benjdlambert benjdlambert merged commit ef6b409 into backstage:master Jul 10, 2023
30 of 35 checks passed
@github-actions
Copy link
Contributor

Thank you for contributing to Backstage! The changes in this pull request will be part of the 1.16.0 release, scheduled for Tue, 18 Jul 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 this pull request may close these issues.

Snyk vulnerability [SNYK-JS-SEMVER-3247795]
3 participants