CVE-2022-25901: High severity Cookiejar Project Cookiejar Node.js vulnerability

Published Jan 18, 2023
·
Updated

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 Software

4 affected componentsFixes available
Cookiejar Project Cookiejar Node.js<=2.1.3
IBM Business Automation Insights<=25.0.0
IBM Business Automation Insights<=24.0.1
IBM Business Automation Insights<=24.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade cookiejar to a version that resolves this vulnerability.

    Fixed in 2.1.4

Event History

Jan 18, 2023
CVE Published
via MITRE·05:00 AM
Data Sourced
via MITRE·05:00 AM
DescriptionSeverityWeakness
Nov 3, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-25901?

CVE-2022-25901 is a vulnerability in the cookiejar package before version 2.1.4 that allows for Regular Expression Denial of Service (ReDoS) attacks.

2

How does CVE-2022-25901 impact me?

If you are using the cookiejar package before version 2.1.4, an attacker could launch a ReDoS attack, potentially causing a denial of service on your system.

3

How to fix CVE-2022-25901?

To fix CVE-2022-25901, you should update the cookiejar package to version 2.1.4 or later.

4

Are there any references for CVE-2022-25901?

Yes, you can find references for CVE-2022-25901 at the following links: [Link 1](https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js#L73), [Link 2](https://github.com/bmeck/node-cookiejar/pull/39), [Link 3 - Commit](https://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5).

5

What is the Common Weakness Enumeration (CWE) related to CVE-2022-25901?

The Common Weakness Enumeration (CWE) related to CVE-2022-25901 is CWE-1333, which is for Regular Expression Denial of Service (ReDoS).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203