Skip to content
OpenAdvisories
Medium · 5.3 CVE-2022-25901 EUVD-2023-0478GHSA-h452-7996-h45h

cookiejar Regular Expression Denial of Service via Cookie.parse function

Published Jan 18, 2023 · Updated Apr 3, 2025 · Assigned by snyk

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 products

VendorProductAffectedFixed
— cookiejar < 2.1.4 2.1.4
— org.webjars.npm:cookiejar — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-cookiejar 2.1.4+~2.1.2-1 —
Debian 13 node-cookiejar 2.1.4+~2.1.2-1 —
Debian 12 node-cookiejar 2.1.4+~2.1.2-1 —
Debian 10 node-cookiejar 2.0.1-1+deb10u1 DLA-3561-1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.webjars.npm:cookiejar <= 2.1.3 — GHSA-h452-7996-h45h
npm cookiejar < 2.1.4 2.1.4 GHSA-h452-7996-h45h

Advisories 2

References