CVEfocus › CVE database › CVE-2022-25901

CVE-2022-25901

CVSS 5.3 MediumEPSS 1.6% (higher than 77% of CVEs)Published 2023-01-18Updated 2025-04-03Assigner: snyk

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.

CWE-1333

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Maven, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
19Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04node-cookiejarNot affected
vulnerable_code_not_present
Ubuntu 20.04node-cookiejarNot affected
vulnerable_code_not_present
Ubuntu 18.04node-cookiejarNot affected
vulnerable_code_not_present
Ubuntu 16.04node-cookiejarFix pending
Debian 14node-cookiejarFixed2.1.4+~2.1.2-1DEBIAN-CVE-2022-25901
Debian 13node-cookiejarFixed2.1.4+~2.1.2-1DEBIAN-CVE-2022-25901
Debian 12node-cookiejarFixed2.1.4+~2.1.2-1DEBIAN-CVE-2022-25901
Red Hat Enterprise Linux 9firefoxNot affected
Red Hat Enterprise Linux 9firefox-x11Not affected
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 9thunderbirdNot affected
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 8thunderbirdNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 7thunderbirdNot affected
Red Hat Enterprise Linux 6firefoxNot affected
npm librarycookiejarFixed2.1.4GHSA-h452-7996-h45h
Maven libraryorg.webjars.npm:cookiejarFix pendingGHSA-h452-7996-h45h

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.