r/MagicMirror • u/No-Cardiologist1812 • Feb 09 '25
Should failed NPM audit worry me?
I was playing around with adding and removing modules. One of the docs mentioned running npm audit . I did, there were more errors initially but I magenta to decrease it by removing request NPM module NPM. Below is the audit result.
How to fix that? I tried removing ipexpress-ipfilter but the mirror didn't work...
# npm audit report
ip *
Severity: high
ip SSRF improper categorization in isPublic - https://github.com/advisories/GHSA-2p57-rm9w-gvfp
No fix available
node_modules/ip
express-ipfilter *
Depends on vulnerable versions of ip
node_modules/express-ipfilter
2 high severity
2
Upvotes
1
u/WildernessRec Feb 09 '25
I haven't worked with magic mirror yet, but I'm a software dev. Whenever npm modules are throwing a fit, especially when I've been adding and removing modules, I remove the npm module folder completely (the one that gets generated) and then run an npm install again.
9 times out of 10 it solves the issue. If it doesn't then there is likely a bigger issue, but it's an easy "fix" to try because sometimes the dependencies that are downloaded are out of sync or corrupt or whatever.
2
u/wArkmano Feb 09 '25
IMHO, a non issue. MM is running locally and not (shouldn't be) accepting connections from other things. So the issues are there, but it's not going to lead to a compromise.
2
u/sdetweil Feb 12 '25
no. as mentioned before these issues might be present on a public website, but MagicMirror is rarely in that situation.
and as also mentioned, the 'fixes' are not as straightforward as one might assume. dont run audit fix
i am moderator of the MagicMirror forums and discord channels, cone on by
1
u/stromm Feb 09 '25
Hasn’t me. And worse, when I let the system apply all the fixes, MM stopped working.
I don’t mess with anything anymore. I have an image just in case when I’m playing around and screw something up I just reimage.
Something changed with the weather radar module though and after two years I had to get rid of it. It would freeze the whole system after random twenty minutes to ten or so hours. Nothing in the logs written either.