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

Fix #958: Update binary-install in package.json to fix security alert #973

Merged
merged 1 commit into from
Jun 17, 2021

Conversation

Rizary
Copy link
Contributor

@Rizary Rizary commented Feb 13, 2021

Make sure these boxes are checked! 📦✅

  • You have the latest version of rustfmt installed
$ rustup component add rustfmt
  • You ran cargo fmt on the code base before submitting
  • You reference which issue is being closed in the PR text

This PR fixes #958.

✨✨ 😄 Thanks so much for contributing to wasm-pack! 😄 ✨✨

@Rizary
Copy link
Contributor Author

Rizary commented Feb 13, 2021

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Server-Side Request Forgery                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ axios                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=0.21.1                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ wasm-pack [dev]                                              │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ wasm-pack > binary-install > axios                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1594                            │
└───────────────┴──────────────────────────────────────────────────────────────┤

Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper left a comment

Choose a reason for hiding this comment

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

this change should be verified before merging - I believe I changed the API just a tad with this release (sorry for making it only a patch release, should have at least done a minor version bump). verification can be done by running the commands with node install.js and node run.js

@magcius
Copy link

magcius commented Feb 28, 2021

The API has indeed been changed -- just forcing an override of "0.1.1" in my package.json does not work.

@ctron
Copy link

ctron commented Mar 5, 2021

Is there any plan to release this soon?

@Keavon
Copy link

Keavon commented Apr 11, 2021

Checking in on the status of updating this high-severity vulnerability. I'm hesitant to use wasm-pack as a dev dependency until it's fixed.

@magcius
Copy link

magcius commented Apr 11, 2021

wasm-pack seems like it's unmaintained, unfortunately

@simlay
Copy link
Contributor

simlay commented Jun 3, 2021

@ashleygwilliams polite ping. This is a high severity vulnerability.

@Rizary
Copy link
Contributor Author

Rizary commented Jun 3, 2021

I haven't got the chance to fix my PR. Anyone are welcome to give the code some fix.

@simlay
Copy link
Contributor

simlay commented Jun 3, 2021

I haven't got the chance to fix my PR. Anyone are welcome to give the code some fix.

I'm think your CI issue fixed in #983 or is there something else up?

@magcius
Copy link

magcius commented Jun 3, 2021

The API of binary-install changed between the 0.0 and 0.1 versions.

@Keavon
Copy link

Keavon commented Jun 3, 2021

@Rizary can you mark this PR as a draft until either you may get the chance to fix the API incompatibility, or someone else can submit a PR which fixes it? We can worry about getting in touch with Ashley once there's something for her to approve and publish, or transfer the publication rights to the appropriate person such as @drager.

@simlay
Copy link
Contributor

simlay commented Jun 3, 2021

The API of binary-install changed between the 0.0 and 0.1 versions.

Ah yes, I missed this in the comments above. Here's the fix. I ran a test locally and it works. #1012.

@Keavon
Copy link

Keavon commented Jun 4, 2021

Thank you @simlay for the PR which fixes the issue by editing the usage of the API. I'm glad it was such a trivial change! For for the record, this PR is superseded by #1012. It probably wouldn't hurt to close it for clarity (@simlay @Rizary)?

I have also emailed @ashleygwilliams and I'll report back in a few days if I hear nothing. Feel free to also tweet at her, the Twitter handle is in her GitHub profile.

@drager drager merged commit 2620c78 into rustwasm:master Jun 17, 2021
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.

Security alert for axios 0.19.0 (npm dependency)
7 participants