Versions of the package tough-cookie before 4.1.3 are vulnerable to Prototype Pollution due to improper handling of Cookies when using CookieJar in rejectPublicSuffixes=false mode. This issue arises from the manner in which the objects are initialized.
CVE-2023-26136 - Critical Severity Vulnerability
Vulnerable Libraries - tough-cookie-3.0.1.tgz, tough-cookie-2.4.3.tgz, tough-cookie-2.5.0.tgz
tough-cookie-3.0.1.tgz
RFC6265 Cookies and Cookie Jar for node.js
Library home page: https://registry.npmjs.org/tough-cookie/-/tough-cookie-3.0.1.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/jsdom/node_modules/tough-cookie/package.json
Dependency Hierarchy: - jest-26.6.3.tgz (Root Library) - core-26.6.3.tgz - jest-config-26.6.3.tgz - jest-environment-jsdom-26.6.2.tgz - jsdom-16.4.0.tgz - :x: **tough-cookie-3.0.1.tgz** (Vulnerable Library)
tough-cookie-2.4.3.tgz
RFC6265 Cookies and Cookie Jar for node.js
Library home page: https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/npm/node_modules/tough-cookie/package.json
Dependency Hierarchy: - npm-7.0.10.tgz (Root Library) - npm-6.14.11.tgz - request-2.88.0.tgz - :x: **tough-cookie-2.4.3.tgz** (Vulnerable Library)
tough-cookie-2.5.0.tgz
RFC6265 Cookies and Cookie Jar for node.js
Library home page: https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/tough-cookie/package.json
Dependency Hierarchy: - coveralls-3.1.0.tgz (Root Library) - request-2.88.2.tgz - :x: **tough-cookie-2.5.0.tgz** (Vulnerable Library)
Found in HEAD commit: dd7278f0b2ceaf2df6ee3a7f803c6bb2be27c22d
Found in base branch: master
Vulnerability Details
Versions of the package tough-cookie before 4.1.3 are vulnerable to Prototype Pollution due to improper handling of Cookies when using CookieJar in rejectPublicSuffixes=false mode. This issue arises from the manner in which the objects are initialized.
Publish Date: 2023-07-01
URL: CVE-2023-26136
CVSS 3 Score Details (9.8)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://www.cve.org/CVERecord?id=CVE-2023-26136
Release Date: 2023-07-01
Fix Resolution (tough-cookie): 4.1.3
Direct dependency fix Resolution (jest): 27.0.0
Fix Resolution (tough-cookie): 4.1.3
Direct dependency fix Resolution (@semantic-release/npm): 7.1.0
Step up your Open Source Security Game with Mend here