For your digest
ws: ReDoS in Sec-Websocket-Protocol header
It touches something Phylax follows. No evidence of use yet.
Does it affect what I run?
ws (npm)
Checked in your browser. The version you type is not sent anywhere.
Who is affected
- ws (npm): from 7.0.0, before 7.4.6
- ws (npm): from 6.0.0, before 6.2.2
- ws (npm): from 5.0.0, before 5.2.3
The fix
ws (npm) fixed in 7.4.6
npmnpm install ws@7.4.6pnpmpnpm add ws@7.4.6yarnyarn add ws@7.4.6bunbun add ws@7.4.6Check what is installednpm ls wsPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency ws to 7.4.6 or the nearest later release, to fix CVE-2021-32640. 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.ws (npm) fixed in 6.2.2
npmnpm install ws@6.2.2pnpmpnpm add ws@6.2.2yarnyarn add ws@6.2.2bunbun add ws@6.2.2Check what is installednpm ls wsPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency ws to 6.2.2 or the nearest later release, to fix CVE-2021-32640. 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.ws (npm) fixed in 5.2.3
npmnpm install ws@5.2.3pnpmpnpm add ws@5.2.3yarnyarn add ws@5.2.3bunbun add ws@5.2.3Check what is installednpm ls wsPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency ws to 5.2.3 or the nearest later release, to fix CVE-2021-32640. 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".