---
title: "GHSA-qhv9-728r-6jqg: ReDoS via long string of semicolons in tough-cookie"
description: "Moderate severity. ReDoS via long string of semicolons in tough-cookie. Affects tough-cookie; fixed in 2.3.0."
url: https://inlinr.com/advisories/GHSA-qhv9-728r-6jqg
lang: en
---

[Packages](https://inlinr.com/packages) / [tough-cookie](https://inlinr.com/packages/tough-cookie) / [Security](https://inlinr.com/packages/tough-cookie/security)

Moderate Vulnerability GHSA-qhv9-728r-6jqg CVE-2016-1000232 Published 10 Oct 2018

# ReDoS via long string of semicolons in tough-cookie

Your version 

Affected releases · [tough-cookie](https://inlinr.com/packages/tough-cookie)

- 2.x 2.0.0 – 2.2.2 Fixed in 2.3.0
- 1.x and older 0.9.0 – 1.2.0 No fix, no longer updated

On 2.x, the newest line:

```
npm install tough-cookie@2.3.0
```

Every release on a timeline

6.x 

1. Not affected

6.0.0 – 6.1.0  
4 releases, latest

2.x 

1. Affected

2.0.0 – 2.2.2  
5 releases
2. Fixed

2.3.0 – 2.5.0  
8 releases

1.x 

1. Affected

1.0.0 – 1.2.0  
3 releases

0.x 

1. Affected

0.9.0 – 0.13.0  
19 releases

51 stable releases of tough-cookie, oldest to newest, one row per major.

## What happens

Affected versions of `tough-cookie` may be vulnerable to regular expression denial of service when long strings of semicolons exist in the `Set-Cookie` header.

Recommendation

Update to version 2.3.0 or later.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: low

CVSS:3.0/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:N/​I:N/​A:L

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2016-1000232 "https://nvd.nist.gov/vuln/detail/CVE-2016-1000232")  
nvd.nist.gov/vuln/detail/CVE-2016-1000232
- [Fix commit](https://github.com/salesforce/tough-cookie/commit/615627206357d997d5e6ff9da158997de05235ae "https://github.com/salesforce/tough-cookie/commit/615627206357d997d5e6ff9da158997de05235ae")  
6156272
- [Fix commit](https://github.com/salesforce/tough-cookie/commit/e4fc2e0f9ee1b7a818d68f0ac7ea696f377b1534 "https://github.com/salesforce/tough-cookie/commit/e4fc2e0f9ee1b7a818d68f0ac7ea696f377b1534")  
e4fc2e0
- [Reference](https://access.redhat.com/errata/RHSA-2016:2101 "https://access.redhat.com/errata/RHSA-2016:2101")  
access.redhat.com/errata/RHSA-2016:2101
- [Reference](https://access.redhat.com/errata/RHSA-2017:2912 "https://access.redhat.com/errata/RHSA-2017:2912")  
access.redhat.com/errata/RHSA-2017:2912
- [Reference](https://access.redhat.com/security/cve/cve-2016-1000232 "https://access.redhat.com/security/cve/cve-2016-1000232")  
access.redhat.com/security/cve/cve-2016-1000232
- [GitHub advisory](https://github.com/advisories/GHSA-qhv9-728r-6jqg "https://github.com/advisories/GHSA-qhv9-728r-6jqg")  
github.com/advisories/GHSA-qhv9-728r-6jqg
- [Package](https://github.com/salesforce/tough-cookie "https://github.com/salesforce/tough-cookie")  
github.com/salesforce/tough-cookie
- [Reference](https://www.ibm.com/blogs/psirt/ibm-security-bulletin-ibm-api-connect-is-affected-by-node-js-tough-cookie-module-vulnerability-to-a-denial-of-service-cve-2016-1000232 "https://www.ibm.com/blogs/psirt/ibm-security-bulletin-ibm-api-connect-is-affected-by-node-js-tough-cookie-module-vulnerability-to-a-denial-of-service-cve-2016-1000232")  
ibm.com/blogs/psirt/ibm-security-bulletin-ibm-a…
- [Reference](https://www.npmjs.com/advisories/130 "https://www.npmjs.com/advisories/130")  
npmjs.com/advisories/130

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
