Inefficient regular expression complexity in cookiejar - CVE-2022-25901
Published: May 31, 2023
cookiejar
Bradley Farias
Description
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to insufficient input validation when processing untrusted input with a regular expressions within the Cookie.parse function. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.
Remediation
External links
- https://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5
- https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984
- https://github.com/bmeck/node-cookiejar/pull/39
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681
- https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73