artkamote / examples

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.
https://www.serverless.com/examples/
Other
0 stars 0 forks source link

CVE-2023-26136 (Medium) detected in multiple libraries #335

Open mend-bolt-for-github[bot] opened 11 months ago

mend-bolt-for-github[bot] commented 11 months ago

CVE-2023-26136 - Medium Severity Vulnerability

Vulnerable Libraries - tough-cookie-2.5.0.tgz, tough-cookie-3.0.1.tgz, tough-cookie-4.0.0.tgz, tough-cookie-2.3.4.tgz, tough-cookie-2.4.3.tgz

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: /aws-node-scheduled-weather/package.json

Path to vulnerable library: /aws-node-scheduled-weather/node_modules/tough-cookie/package.json,/aws-golang-auth-examples/node_modules/tough-cookie/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/tough-cookie/package.json,/aws-node-typescript-nest/node_modules/tough-cookie/package.json,/azure-node-telegram-bot/node_modules/tough-cookie/package.json,/aws-node-dynamic-image-resizer/node_modules/tough-cookie/package.json,/kubeless-python-simple-function/node_modules/tough-cookie/package.json,/aws-node-auth0-cognito-custom-authorizers-api/node_modules/tough-cookie/package.json,/aws-rust-simple-http-endpoint/node_modules/tough-cookie/package.json,/aws-node-typescript-apollo-lambda/node_modules/tough-cookie/package.json,/azure-node-line-bot/node_modules/tough-cookie/package.json,/aws-node-http-api-typescript/node_modules/tough-cookie/package.json,/aws-node-telegram-echo-bot/node_modules/tough-cookie/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/tough-cookie/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/request/node_modules/tough-cookie/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/@azure/ms-rest-js/node_modules/tough-cookie/package.json,/aws-node-serverless-gong/node_modules/tough-cookie/package.json,/kubeless-python-simple-scheduled-function/node_modules/tough-cookie/package.json,/aws-node-rest-api-typescript-simple/node_modules/tough-cookie/package.json,/aws-node-fullstack/frontend/node_modules/tough-cookie/package.json

Dependency Hierarchy: - serverless-1.83.3.tgz (Root Library) - components-2.34.9.tgz - platform-client-china-1.1.0.tgz - utils-china-0.1.28.tgz - capi-0.2.17.tgz - request-2.88.2.tgz - :x: **tough-cookie-2.5.0.tgz** (Vulnerable Library)

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: /azure-node-telegram-bot/package.json

Path to vulnerable library: /azure-node-telegram-bot/node_modules/@azure/storage-blob/node_modules/tough-cookie/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/@azure/arm-appservice/node_modules/tough-cookie/package.json,/azure-node-line-bot/node_modules/@azure/arm-appservice/node_modules/tough-cookie/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/@azure/storage-blob/node_modules/tough-cookie/package.json,/azure-node-telegram-bot/node_modules/@azure/arm-appservice/node_modules/tough-cookie/package.json,/azure-node-line-bot/node_modules/@azure/storage-blob/node_modules/tough-cookie/package.json

Dependency Hierarchy: - serverless-azure-functions-2.1.3.tgz (Root Library) - arm-appservice-5.8.0.tgz - ms-rest-js-2.6.0.tgz - :x: **tough-cookie-3.0.1.tgz** (Vulnerable Library)

tough-cookie-4.0.0.tgz

RFC6265 Cookies and Cookie Jar for node.js

Library home page: https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz

Path to dependency file: /azure-node-typescript-servicebus-trigger-endpoint/package.json

Path to vulnerable library: /azure-node-typescript-servicebus-trigger-endpoint/node_modules/tough-cookie/package.json

Dependency Hierarchy: - service-bus-1.1.10.tgz (Root Library) - core-http-1.1.9.tgz - :x: **tough-cookie-4.0.0.tgz** (Vulnerable Library)

tough-cookie-2.3.4.tgz

RFC6265 Cookies and Cookie Jar for node.js

Library home page: https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz

Path to dependency file: /aws-node-oauth-dropbox-api/package.json

Path to vulnerable library: /aws-node-oauth-dropbox-api/node_modules/tough-cookie/package.json

Dependency Hierarchy: - request-2.87.0.tgz (Root Library) - :x: **tough-cookie-2.3.4.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: /aws-node-fullstack/frontend/package.json

Path to vulnerable library: /aws-node-fullstack/frontend/node_modules/request/node_modules/tough-cookie/package.json,/aws-node-twitter-joke-bot/node_modules/tough-cookie/package.json,/aws-node-typescript-nest/node_modules/request/node_modules/tough-cookie/package.json,/aws-node-github-check/node_modules/tough-cookie/package.json

Dependency Hierarchy: - twitter-1.7.1.tgz (Root Library) - request-2.88.0.tgz - :x: **tough-cookie-2.4.3.tgz** (Vulnerable Library)

Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4

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 (6.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None

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 (serverless): 2.0.0-05627d62

Fix Resolution (tough-cookie): 4.1.3

Direct dependency fix Resolution (@azure/service-bus): 7.0.0


Step up your Open Source Security Game with Mend here

mend-bolt-for-github[bot] commented 3 months ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-bolt-for-github[bot] commented 3 months ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.