For your digest
ua-parser-js: Embedded malware in ua-parser-js
It touches something Phylax follows. No evidence of use yet.
Does it affect what I run?
ua-parser-js (npm)
Checked in your browser. The version you type is not sent anywhere.
Who is affected
- ua-parser-js (npm): from 0.7.29, before 0.7.30
- ua-parser-js (npm): from 0.8.0, before 0.8.1
- ua-parser-js (npm): from 1.0.0, before 1.0.1
The fix
ua-parser-js (npm) fixed in 0.7.30
npmnpm install ua-parser-js@0.7.30pnpmpnpm add ua-parser-js@0.7.30yarnyarn add ua-parser-js@0.7.30bunbun add ua-parser-js@0.7.30Check what is installednpm ls ua-parser-jsPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency ua-parser-js to 0.7.30 or the nearest later release, to fix CVE-2021-4229. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.ua-parser-js (npm) fixed in 0.8.1
npmnpm install ua-parser-js@0.8.1pnpmpnpm add ua-parser-js@0.8.1yarnyarn add ua-parser-js@0.8.1bunbun add ua-parser-js@0.8.1Check what is installednpm ls ua-parser-jsPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency ua-parser-js to 0.8.1 or the nearest later release, to fix CVE-2021-4229. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.ua-parser-js (npm) fixed in 1.0.1
npmnpm install ua-parser-js@1.0.1pnpmpnpm add ua-parser-js@1.0.1yarnyarn add ua-parser-js@1.0.1bunbun add ua-parser-js@1.0.1Check what is installednpm ls ua-parser-jsPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency ua-parser-js to 1.0.1 or the nearest later release, to fix CVE-2021-4229. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
Fix commands generated from the advisory's versions. No model wrote them.
In plain words
Brief pending: here are the facts and the fix. The explanation in plain words follows when it has been written and checked.
Evidence
No evidence that it is being used, or can be. It is listed because of what it affects.
Timeline
- First published here, as "For your digest".