There is a known security vulnerability with Node-Fetch that has been fixed in version 2.6.1+
https://www.npmjs.com/advisories/1556
Create a new project using yarn init.
Add firebase via yarn add firebase.
Run yarn audit
Note the security vulnerability on downstream dependency node-fetch.
As this is a downstream dependency issue, I dont have any relevant code to provide.
For my info:
The two sources of older versions of node-fetch are
isomorphic-fetch which seems to be no longer maintained. Perhaps this should be replaced with node-fetch directly.The issue in Firestore was resolved with #3759. The issue with isomorphic-fetch remains.
Most helpful comment
For my info:
The two sources of older versions of node-fetch are
isomorphic-fetchwhich seems to be no longer maintained. Perhaps this should be replaced withnode-fetchdirectly.