{"id":"CVE-2022-25901","aliases":["DEBIAN-CVE-2022-25901","GHSA-h452-7996-h45h"],"summary":"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.","published_at":"2023-01-18T00:00:00Z","modified_at":"2026-11-18T06:02:15.911284Z","products":[],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.016499999910593033,"percentile":0.770389974117279,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"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_stack":[],"affected_other":[{"ecosystem":"Debian:10","package":"node-cookiejar","purl":"pkg:deb/debian/node-cookiejar?arch=source&distro=buster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.1-1+deb10u1"}]}],"versions":["2.0.1-1"],"fixed":["2.0.1-1+deb10u1"],"provider":"osv","source":"DLA-3561-1","relation":"upstream"},{"ecosystem":"Debian:12","package":"node-cookiejar","purl":"pkg:deb/debian/node-cookiejar?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.4+~2.1.2-1"}]}],"fixed":["2.1.4+~2.1.2-1"],"provider":"osv","source":"DEBIAN-CVE-2022-25901","relation":"self"},{"ecosystem":"Debian:13","package":"node-cookiejar","purl":"pkg:deb/debian/node-cookiejar?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.4+~2.1.2-1"}]}],"fixed":["2.1.4+~2.1.2-1"],"provider":"osv","source":"DEBIAN-CVE-2022-25901","relation":"self"},{"ecosystem":"Debian:14","package":"node-cookiejar","purl":"pkg:deb/debian/node-cookiejar?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.4+~2.1.2-1"}]}],"fixed":["2.1.4+~2.1.2-1"],"provider":"osv","source":"DEBIAN-CVE-2022-25901","relation":"self"},{"ecosystem":"Maven","package":"org.webjars.npm:cookiejar","purl":"pkg:maven/org.webjars.npm/cookiejar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.1.3"}]}],"versions":["2.0.6","2.1.0","2.1.1","2.1.2","2.1.3"],"provider":"osv","source":"GHSA-h452-7996-h45h","relation":"self"},{"ecosystem":"NVD","package":"cookiejar_project:cookiejar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.1.3"}]}],"provider":"nvd","source":"CVE-2022-25901","relation":"self"},{"ecosystem":"npm","package":"cookiejar","purl":"pkg:npm/cookiejar","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.4"}]}],"fixed":["2.1.4"],"provider":"osv","source":"GHSA-h452-7996-h45h","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/search-api-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-25901"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","cpe":"cpe:/o:redhat:rhel_els:6","status":"not_affected","packages":["firefox"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-25901"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["firefox","thunderbird"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-25901"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["firefox","mozjs60","mozjs60-devel","thunderbird"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-25901"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["firefox","firefox-x11","gjs","gjs-devel","polkit","polkit-devel","polkit-docs","polkit-libs","thunderbird"],"package_count":9,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-25901"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps","cpe":"cpe:/a:redhat:openshift_gitops:1","status":"affected","packages":["openshift-gitops-1/argocd-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-25901"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-0809","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0809","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-03-30T22:00:00Z","modified_at":"2024-02-19T23:00:00Z","summary":"IBM QRadar SIEM: Mehrere Schwachstellen","details":"Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in IBM QRadar SIEM ausnutzen, um beliebigen Programmcode auszuführen, Informationen offenzulegen, Informationen falsch darzustellen, einen Denial of Service Zustand herbeizuführen, Sicherheitsvorkehrungen zu umgehen, einen Cross-Site-Scripting-Angriff durchzuführen oder unbekannte Auswirkungen zu verursachen.\n\nIBM QRadar Security Information and Event Management (SIEM) bietet Unterstützung bei der Erkennung und Priorisierung von Sicherheitsbedrohungen im Unternehmen.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2023-0809"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-0809.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0809"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/6967283"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/6967333"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/6980799"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7108657"},{"type":"WEB","url":"https://bodhi.fedoraproject.org/updates/FEDORA-2024-5ecc250449"}]},{"provider":"osv","source_id":"DLA-3561-1","relation":"upstream","url":"https://osv.dev/vulnerability/DLA-3561-1","published_at":"2023-09-11T00:00:00Z","modified_at":"2026-11-20T01:18:49.020207Z","summary":"node-cookiejar - security update","severity":[],"affected":[{"ecosystem":"Debian:10","package":"node-cookiejar","purl":"pkg:deb/debian/node-cookiejar?arch=source&distro=buster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.1-1+deb10u1"}]}],"versions":["2.0.1-1"],"fixed":["2.0.1-1+deb10u1"],"provider":"osv","source":"DLA-3561-1","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2022-25901","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-25901","license":"CC-BY-4.0","published_at":"2023-01-18T05:00:01.282Z","modified_at":"2025-04-03T19:33:00.36Z","summary":"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.","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","source":"CVE-2022-25901"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/pull/39"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00008.html"}]},{"provider":"nvd","source_id":"CVE-2022-25901","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25901","severity":[],"affected":[{"ecosystem":"NVD","package":"cookiejar_project:cookiejar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.1.3"}]}],"provider":"nvd","source":"CVE-2022-25901","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2022-25901","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2022-25901","published_at":"2023-01-18T05:15:11.86Z","modified_at":"2026-11-18T06:02:15.911284Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"DEBIAN-CVE-2022-25901"}],"affected":[{"ecosystem":"Debian:12","package":"node-cookiejar","purl":"pkg:deb/debian/node-cookiejar?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.4+~2.1.2-1"}]}],"fixed":["2.1.4+~2.1.2-1"],"provider":"osv","source":"DEBIAN-CVE-2022-25901","relation":"self"},{"ecosystem":"Debian:13","package":"node-cookiejar","purl":"pkg:deb/debian/node-cookiejar?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.4+~2.1.2-1"}]}],"fixed":["2.1.4+~2.1.2-1"],"provider":"osv","source":"DEBIAN-CVE-2022-25901","relation":"self"},{"ecosystem":"Debian:14","package":"node-cookiejar","purl":"pkg:deb/debian/node-cookiejar?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.4+~2.1.2-1"}]}],"fixed":["2.1.4+~2.1.2-1"],"provider":"osv","source":"DEBIAN-CVE-2022-25901","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-25901"}]},{"provider":"osv","source_id":"GHSA-h452-7996-h45h","relation":"self","url":"https://osv.dev/vulnerability/GHSA-h452-7996-h45h","license":"CC-BY-4.0","published_at":"2023-01-18T06:31:03Z","modified_at":"2025-02-13T19:03:25.062781Z","summary":"cookiejar Regular Expression Denial of Service via Cookie.parse function","details":"Versions of the package cookiejar before 2.1.4 are vulnerable to Regular Expression Denial of Service (ReDoS) via the `Cookie.parse` function and other aspects of the API, which use an insecure regular expression for parsing cookie values. Applications could be stalled for extended periods of time if untrusted input is passed to cookie values or attempted to parse from request headers.\n\nProof of concept:\n\n```\nts\\nconst { CookieJar } = require(\"cookiejar\");\n\nconst jar = new CookieJar();\n\nconst start = performance.now();\n\nconst attack = \"a\" + \"t\".repeat(50_000);\njar.setCookie(attack);\n\nconsole.log(`CookieJar.setCookie(): ${performance.now() - start}ms`);\n\n```\n\n```\nCookieJar.setCookie(): 2963.214399999939ms\n```","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"GHSA-h452-7996-h45h"}],"affected":[{"ecosystem":"Maven","package":"org.webjars.npm:cookiejar","purl":"pkg:maven/org.webjars.npm/cookiejar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.1.3"}]}],"versions":["2.0.6","2.1.0","2.1.1","2.1.2","2.1.3"],"provider":"osv","source":"GHSA-h452-7996-h45h","relation":"self"},{"ecosystem":"npm","package":"cookiejar","purl":"pkg:npm/cookiejar","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.4"}]}],"fixed":["2.1.4"],"provider":"osv","source":"GHSA-h452-7996-h45h","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25901"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/pull/39"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5"},{"type":"PACKAGE","url":"https://github.com/bmeck/node-cookiejar"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js#23L73"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00008.html"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984"}]},{"provider":"redhat-vex","source_id":"CVE-2022-25901","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-25901","license":"CC-BY-4.0","published_at":"2023-01-18T00:00:00Z","modified_at":"2024-06-08T08:28:34Z","summary":"cookiejar: Regular Expression Denial of Service (ReDoS)","details":"A Regular Expression Denial of Service (ReDoS) vulnerability was found in cookiejar via the Cookie.parse function and other aspects of the API, which uses an insecure regular expression for parsing cookie values. Applications could be stalled for extended periods of time if untrusted input is passed to cookie values or attempted to parse from request headers.regular expression.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2022-25901"},{"type":"Red Hat","score":"Moderate","source":"CVE-2022-25901"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/search-api-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-25901"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","cpe":"cpe:/o:redhat:rhel_els:6","status":"not_affected","packages":["firefox"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-25901"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["firefox","thunderbird"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-25901"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["firefox","mozjs60","mozjs60-devel","thunderbird"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-25901"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["firefox","firefox-x11","gjs","gjs-devel","polkit","polkit-devel","polkit-docs","polkit-libs","thunderbird"],"package_count":9,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-25901"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps","cpe":"cpe:/a:redhat:openshift_gitops:1","status":"affected","packages":["openshift-gitops-1/argocd-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-25901"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-25901.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-25901"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2161901"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-25901"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25901"}]}],"references":[{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/pull/39"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00008.html"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-25901"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25901"},{"type":"PACKAGE","url":"https://github.com/bmeck/node-cookiejar"},{"type":"WEB","url":"https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js#23L73"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-25901.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-25901"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2161901"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-25901"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-0809","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0809","license":"TLP:CLEAR, mirroring permitted","modified_at":"2024-02-19T23:00:00Z","relation":"upstream"},{"provider":"osv","source_id":"DLA-3561-1","url":"https://osv.dev/vulnerability/DLA-3561-1","modified_at":"2026-11-20T01:18:49.020207Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2022-25901","url":"https://www.cve.org/CVERecord?id=CVE-2022-25901","license":"CC-BY-4.0","modified_at":"2025-04-03T19:33:00.36Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-25901","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25901","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2022-25901","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2022-25901","modified_at":"2026-11-18T06:02:15.911284Z","relation":"self"},{"provider":"osv","source_id":"GHSA-h452-7996-h45h","url":"https://osv.dev/vulnerability/GHSA-h452-7996-h45h","license":"CC-BY-4.0","modified_at":"2025-02-13T19:03:25.062781Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-25901","url":"https://access.redhat.com/security/cve/CVE-2022-25901","license":"CC-BY-4.0","modified_at":"2024-06-08T08:28:34Z","relation":"self"}]}
