Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

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, [email protected] (through 0.10.0-rc5-beta) requires node-fetch@^1.0.1 via a transitive dependency on [email protected]. 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 ([email protected]).

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, [email protected] (through 0.10.0-rc5-beta) requires node-fetch@^1.0.1 via a transitive dependency on [email protected].

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. [email protected] should be stable as it has been deployed to production at Meta for a while now. However [email protected] is not in production yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants