Description
A ReDoS (regular expression denial of service) flaw was found in the tough-cookie module before 2.3.3 for Node.js. An attacker that is able to make an HTTP request using a specially crafted cookie may cause the application to consume an excessive amount of CPU.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-tough-cookie | 2.3.4+dfsg-1 | — |
| Debian 13 | node-tough-cookie | 2.3.4+dfsg-1 | — |
| Debian 12 | node-tough-cookie | 2.3.4+dfsg-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | node-tough-cookie | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 2 | rh-nodejs4-nodejs-tough-cookie | 2.3.3-2.el6 | RHSA-2017:2912 |
| RHEL 2 | rh-nodejs6-nodejs-tough-cookie | 2.3.3-1.el6 | RHSA-2017:2913 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Mobile Application Platform 4 | fh-system-dump-tool | 1.0.0-5.el7 | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | fping | 3.10-4.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | nagios +2 | 4.0.8-8.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | nagios-plugins +55 | 2.0.3-3.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | perl-Crypt-CBC | 2.33-2.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | perl-Crypt-DES | 2.05-20.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | perl-Net-SNMP | 6.0.1-7.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | phantomjs | 1.9.7-3.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | python-meld3 | 0.6.10-1.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | qstat | 2.11-13.20080912svn311.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | radiusclient-ng +2 | 0.5.6-9.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | redis | 2.8.21-2.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | rhmap-fh-openshift-templates | 4.6.0-5.el7 | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | rhmap-mod_authnz_external | 3.3.1-7.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | sendEmail | 1.56-2.el7 | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | ssmtp | 2.64-14.el7map | RHSA-2018:1263 |
| Red Hat Mobile Application Platform 4 | supervisor | 3.1.3-3.el7map | RHSA-2018:1263 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | tough-cookie | < 2.3.3 | 2.3.3 | GHSA-g7q5-pjjr-gqvp |
Advisories 4
- RHSA-2018:1263 Red Hat Security Advisory: Red Hat Mobile Application Platform 4.6.0 release - RPMs Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2017:2912 Red Hat Security Advisory: rh-nodejs4-nodejs-tough-cookie security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2017:2913 Red Hat Security Advisory: rh-nodejs6-nodejs-tough-cookie security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- WID-SEC-2024-1591 Juniper JUNOS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2024
References
- RHSA-2017:2913 vendor-advisory
- https://nodesecurity.io/advisories/525
- 101185 vdb-entry
- RHSA-2018:1264 vendor-advisory
- RHSA-2017:2912 vendor-advisory
- RHSA-2018:1263 vendor-advisory
- https://github.com/salesforce/tough-cookie/issues/92
- https://snyk.io/vuln/npm:tough-cookie:20170905
- FEDORA-2019-76f1b57c1c vendor-advisory