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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-fetch vulnerability transitive from isomorphic-fetch #338

Closed
lucasgonze opened this issue Feb 8, 2022 · 3 comments
Closed

node-fetch vulnerability transitive from isomorphic-fetch #338

lucasgonze opened this issue Feb 8, 2022 · 3 comments

Comments

@lucasgonze
Copy link

lucasgonze commented Feb 8, 2022

馃悰 Bug Report

According to Dependabot, babel-plugin-fbt-runtime@0.9.12 (through 0.10.0-rc5-beta) requires node-fetch@^1.0.1 via a transitive dependency on isomorphic-fetch@2.2.1. This version of node-fetch has a vulnerability that is fixed in 2.6.7 and later.

isomorphic-fetch is abandoned. Consumers of isomorphic-fetch are moving to an alternative project, cross-fetch. babel-plugin-fbt-runtime should too.

To Reproduce

  1. Add babel-plugin-fbt-runtime to a project
  2. Run Dependabot against the downstream project
  3. View alerts

Expected behavior

node-fetch should be at 2.6.7 or later

Link to repo (highly encouraged) or paste

For security reasons, I can't share this publically. Contact me offline (lucas@gonze.com).

Also...

I'd happily submit a patch but am baffled by the structure of this repo. LMK if you want the help.

@lucasgonze lucasgonze changed the title node-fetch is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor node-fetch vulnerability transitive from isomorphic-fetch Feb 9, 2022
@pkqinys
Copy link
Contributor

pkqinys commented Feb 9, 2022

According to Dependabot, babel-plugin-fbt-runtime@0.9.12 (through 0.10.0-rc5-beta) requires node-fetch@^1.0.1 via a transitive dependency on isomorphic-fetch@2.2.1.

Hmm, that's different from what I saw. This issue exists in 0.9.5 - 0.9.18 because babel-plugin-fbt-runtime at that time depended on fbjs which in turn depends on isomorphic-fetch.

However, we recently removed fbjs dependency in e42ecd2 and I believe this is no longer an issue

@pkqinys pkqinys closed this as completed Feb 9, 2022
@lucasgonze
Copy link
Author

Thank you for this helpful guidance, @pkqinys . I see that fbjs is gone in 0.10.0-rc5-beta. What is the stability of that version, given that it is only a release candidate? Can I pull it into production software?

It may be relevant that my work is also on a Facebook project.

@pkqinys
Copy link
Contributor

pkqinys commented Feb 10, 2022

I would recommend wait until we release the public version. babel-plugin-fbt@0.21.0-rc10-beta should be stable as it has been deployed to production at Meta for a while now. However babel-plugin-fbt-runtime@0.10.0-rc5-beta is not in production yet.

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

No branches or pull requests

2 participants