Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Having written all of this, it looks like
npmjs.org
revoked0.7.29
from even being available for download and0.7.30
and0.8.1
were both published on October 22, 2021. So it likely won't cause future issues because it won't even be possible to download the dependency, but some people may have had0.7.29
on their machines and may have been compromised. I can remove this PR. I'm just not sure if it makes sense to leave it up for a while just for awareness.[email protected]
was compromised yesterday, October 22, 2021, because the author didn't have 2FA enabled. I think thatnpm
dependency was targeted because it's one of the more popular dependencies and the attacker was leveraging it for crypto mining and environment stealing. I noticed a few of our transitive dependencies depend on"ua-parser-js": "^0.7.x"
ingutenberg/trunk
(and probably other repositories). Luckily, it's currently locked to0.7.[23|28]
inpackage-lock.json
, but it may just be a matter of time before annpm update
inadvertently updates the lock file.package.json
to only resolve"resolutions": { "**/ua-parser-js": "0.7.28" }
from all transitive dependencies in the meantime. That is what is done in this commit.@types/ua-parser-js
is resolving to0.7.28
. I'm unsure at the moment if it is even being used, and what dependency would even need the TypeScript types since presumably all of them should be exporting JavaScript modules that don't need compilation(?). Does someone else possibly know if the types are used, or if they even need to match the version of their counterpart JavaScript module?resolutions
field from thepackage.json
whenappium
andfbjs
bump their, or transitive,package.json
s to^0.7.30
.Security issue: compromised npm packages of ua-parser-js (0.7.29, 0.8.0, 1.0.0) - Questions about deprecated npm package ua-parser-js #536
Issue Comment
fbjs > [email protected]: this package has been hijacked #464
Description
How has this been tested?
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).