Vulnerability · Published Jan 18, 2023 · Assigned by snyk

CVE-2022-25901

Medium 5.3

In plain English

A medium-severity regular-expression denial of service in cookiejar. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.6%top 24.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Versions of the package cookiejar before 2.1.4 are vulnerable to Regular Expression Denial of Service (ReDoS) via the Cookie.parse function, which uses an insecure regular expression.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-cookiejar2.1.4+~2.1.2-1DEBIAN-CVE-2022-25901
Debian:13node-cookiejar2.1.4+~2.1.2-1DEBIAN-CVE-2022-25901
Debian:14node-cookiejar2.1.4+~2.1.2-1DEBIAN-CVE-2022-25901
Mavenorg.webjars.npm:cookiejarno fix listedGHSA-h452-7996-h45h
npmcookiejar2.1.4GHSA-h452-7996-h45h

Affected products (as reported)

VendorProductVersions
n/a cookiejar 0 – before 2.1.4
n/a org.webjars.npm:cookiejar 0 – before *

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P

References