For your digest
path-to-regexp: path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters
It touches something Phylax follows. No evidence of use yet.
Does it affect what I run?
path-to-regexp (npm)
Checked in your browser. The version you type is not sent anywhere.
Who is affected
- path-to-regexp (npm): every version, before 0.1.13
- path-to-regexp (npm): from 0.2.0, before 1.9.0
- path-to-regexp (npm): every version, before 0.1.10
- path-to-regexp (npm): from 7.0.0, before 8.0.0
- path-to-regexp (npm): from 2.0.0, before 3.3.0
- path-to-regexp (npm): from 4.0.0, before 6.3.0
The fix
path-to-regexp (npm) fixed in 0.1.13
npmnpm install path-to-regexp@0.1.13pnpmpnpm add path-to-regexp@0.1.13yarnyarn add path-to-regexp@0.1.13bunbun add path-to-regexp@0.1.13Check what is installednpm ls path-to-regexpPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency path-to-regexp to 0.1.13 or the nearest later release, to fix CVE-2024-45296. 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.path-to-regexp (npm) fixed in 1.9.0
npmnpm install path-to-regexp@1.9.0pnpmpnpm add path-to-regexp@1.9.0yarnyarn add path-to-regexp@1.9.0bunbun add path-to-regexp@1.9.0Check what is installednpm ls path-to-regexpPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency path-to-regexp to 1.9.0 or the nearest later release, to fix CVE-2024-45296. 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.path-to-regexp (npm) fixed in 0.1.10
npmnpm install path-to-regexp@0.1.10pnpmpnpm add path-to-regexp@0.1.10yarnyarn add path-to-regexp@0.1.10bunbun add path-to-regexp@0.1.10Check what is installednpm ls path-to-regexpPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency path-to-regexp to 0.1.10 or the nearest later release, to fix CVE-2024-45296. 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.path-to-regexp (npm) fixed in 8.0.0
npmnpm install path-to-regexp@8.0.0pnpmpnpm add path-to-regexp@8.0.0yarnyarn add path-to-regexp@8.0.0bunbun add path-to-regexp@8.0.0Check what is installednpm ls path-to-regexpPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency path-to-regexp to 8.0.0 or the nearest later release, to fix CVE-2024-45296. 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.path-to-regexp (npm) fixed in 3.3.0
npmnpm install path-to-regexp@3.3.0pnpmpnpm add path-to-regexp@3.3.0yarnyarn add path-to-regexp@3.3.0bunbun add path-to-regexp@3.3.0Check what is installednpm ls path-to-regexpPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency path-to-regexp to 3.3.0 or the nearest later release, to fix CVE-2024-45296. 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.path-to-regexp (npm) fixed in 6.3.0
npmnpm install path-to-regexp@6.3.0pnpmpnpm add path-to-regexp@6.3.0yarnyarn add path-to-regexp@6.3.0bunbun add path-to-regexp@6.3.0Check what is installednpm ls path-to-regexpPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency path-to-regexp to 6.3.0 or the nearest later release, to fix CVE-2024-45296. 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".
- Fixed releases changed: added path-to-regexp 1.9.0, path-to-regexp 0.1.10, path-to-regexp 8.0.0, path-to-regexp 3.3.0, path-to-regexp 6.3.0.