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

Upgrade node-forge to 0.10.0 - in 2.0.4 release #297

Closed
kidplug opened this issue Oct 2, 2020 · 14 comments
Closed

Upgrade node-forge to 0.10.0 - in 2.0.4 release #297

kidplug opened this issue Oct 2, 2020 · 14 comments
Assignees
Labels
type: process A process-related concern. May include testing, release, or the like.

Comments

@kidplug
Copy link

kidplug commented Oct 2, 2020

In light of new advisory:

High │ Prototype Pollution in node-forge
https://npmjs.com/advisories/1561

@kidplug
Copy link
Author

kidplug commented Oct 2, 2020

Current package.json:

  "dependencies": {
    "node-forge": "^0.9.0"
  },

Semantic versioning for major "0" ignores the caret ^ :(

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Oct 3, 2020
@sofisl sofisl removed the triage me I really want to be triaged. label Oct 5, 2020
@sofisl sofisl closed this as completed Oct 5, 2020
@kidplug
Copy link
Author

kidplug commented Oct 5, 2020

Closed, won't do?

@sofisl sofisl reopened this Oct 5, 2020
@sofisl
Copy link
Contributor

sofisl commented Oct 5, 2020

I'm sorry, premature close! I was confused by the PR earlier.

@sofisl sofisl added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Oct 5, 2020
stephenplusplus added a commit to googleapis/node-gtoken that referenced this issue Oct 6, 2020
@kidplug
Copy link
Author

kidplug commented Oct 6, 2020

This doesn't fix the issue in the google-p12-pem@2.0.4 release

@stephenplusplus
Copy link

My PR unintentionally closed this issue. I don't know if we want to go back and address this in the 2.0.0 release-- are you unable to upgrade to ^3.0?

@kidplug
Copy link
Author

kidplug commented Oct 6, 2020

We'd prefer to not upgrade all these libs at this time.
The dependency tree is this:

└─┬ @google-cloud/speech@3.6.0
  └─┬ @google-cloud/common@2.4.0
    └─┬ google-auth-library@5.10.1
      └─┬ gtoken@4.1.4
        └─┬ google-p12-pem@2.0.4
          └── node-forge@0.9.2

As far as I can tell, 3.6.0 is still a "current" release of google cloud speech; likewise for all the other packages shown.
The only package in that last which is not a "current" release is node-forge.

I would expect any "current" releases to apply dependency upgrades when a "HIGH" npm advisory is issued:
High │ Prototype Pollution in node-forge
https://npmjs.com/advisories/1561

@stephenplusplus
Copy link

stephenplusplus commented Oct 6, 2020

I'm currently working through a similar tree here: googleapis/nodejs-logging#904 (comment). Eventually, Speech (the ^4.x releases) will get a new release once the others are updated.

cc @bcoe @JustinBeckwith for the concerns regarding the release process.

@stephenplusplus
Copy link

@kidplug Going back in a previous release line to make the fix is possible, but ideally, you could upgrade to make sure you're protected going forward. Is there anything we can do to help the upgrade process? Did the change to speech@4 involve any breaking changes that are difficult to include in your app/environment?

@kidplug
Copy link
Author

kidplug commented Oct 6, 2020

I'll try the google speech v4 upgrade. Initially testing seems fine.

@bcoe
Copy link
Contributor

bcoe commented Oct 7, 2020

@kidplug did the upgrade go okay for you? I'm debating today whether or not we need to back-port fixes to the 5.x version of auth.

@kidplug
Copy link
Author

kidplug commented Oct 7, 2020

Yes, our application ran fine on the upgraded speech library. Planning to commit the upgrade in our upcoming release.

@staadecker
Copy link

@bcoe I would personally would really enjoy a back-port fix to at least 2.0.2 since the firebase-tools package depends on 2.0.2 and isn't able to update to the latest version (see here, they don't want to drop support to Node 8). A back-port to versions 2.0.2 and 2.0.4 would resolve the issue. firebase-tools has over 1 million monthly downloads.

Thank you!

@yoshi-automation yoshi-automation added 🚨 This issue needs some love. and removed 🚨 This issue needs some love. labels Feb 10, 2021
@sofisl sofisl removed the priority: p2 Moderately-important priority. Fix may not be included in next release. label Mar 31, 2021
@sofisl sofisl added type: process A process-related concern. May include testing, release, or the like. and removed type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Mar 31, 2021
@sofisl
Copy link
Contributor

sofisl commented Mar 31, 2021

@bcoe, given that this would involve back-porting a fix, and that we are not currently (though we do plan to) provide ongoing support to these versions in the future, I'm relabeling this issue as a process. We can (eventually) try out Java's new tooling for these types of requests.

@chingor13
Copy link
Contributor

Backported to v2.0.5 in #345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

No branches or pull requests

7 participants