Security Issue
I am using react-use 17.5.0 and recently a security issue has been opened https://cwe.mitre.org/data/definitions/1321.html and https://nvd.nist.gov/vuln/detail/CVE-2024-39008
If I do npm ls fast-loops, I get the below
Also the dependabot says it's fixed in 1.1.4
and [email protected] removed this dependency fast-loops last week https://github.com/robinweser/inline-style-prefixer/commit/4c1ffce41c08ebbc5e4e773f8de7149944270f1a
and nano-css has opened PR for bumping version of [email protected] https://github.com/streamich/nano-css/pull/313
I was also concerned at first. Then I realized, the dependency nano-css is only used in the hook useCss. With tools like webpack-bundle-analyzer, you can check if the hook useCss is actually bundled in your codebase.
and
[email protected]removed this dependencyfast-loopslast week robinweser/inline-style-prefixer@4c1ffce andnano-csshas opened PR for bumping version of[email protected]streamich/nano-css#313
@lkazberova Any update on nano-css PR
@VishnuNCS no updates, waiting for when @streamich will have a chance to merge it
@bigaru unfortunately it will not help with automatic security audit with this package :(
I have bumped, both, nano-css and react-use. However, note that react-use was never affected by this vulnerability, the vulnerability is in CSS auto-prefixes plugin of nano-css, which is not used by react-use.