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

WS-2023-0439 (High) detected in multiple libraries #411

Open mend-bolt-for-github[bot] opened 3 weeks ago

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

WS-2023-0439 - High Severity Vulnerability

Vulnerable Libraries - axios-0.18.0.tgz, axios-0.21.4.tgz, axios-0.18.1.tgz, axios-0.19.2.tgz

axios-0.18.0.tgz

Promise based HTTP client for the browser and node.js

Library home page: https://registry.npmjs.org/axios/-/axios-0.18.0.tgz

Path to dependency file: /aws-node-typescript-nest/package.json

Path to vulnerable library: /aws-node-typescript-nest/node_modules/axios/package.json,/aws-node-heroku-postgres/node_modules/axios/package.json

Dependency Hierarchy: - :x: **axios-0.18.0.tgz** (Vulnerable Library)

axios-0.21.4.tgz

Promise based HTTP client for the browser and node.js

Library home page: https://registry.npmjs.org/axios/-/axios-0.21.4.tgz

Path to dependency file: /azure-node-telegram-bot/package.json

Path to vulnerable library: /azure-node-telegram-bot/node_modules/@azure/ms-rest-js/node_modules/axios/package.json,/aws-node-twilio-send-text-message/node_modules/axios/package.json,/azure-node-line-bot/node_modules/@azure/ms-rest-js/node_modules/axios/package.json,/aws-node-fullstack/backend/node_modules/axios/package.json

Dependency Hierarchy: - serverless-azure-functions-2.1.3.tgz (Root Library) - arm-resources-1.1.0.tgz - ms-rest-js-1.11.2.tgz - :x: **axios-0.21.4.tgz** (Vulnerable Library)

axios-0.18.1.tgz

Promise based HTTP client for the browser and node.js

Library home page: https://registry.npmjs.org/axios/-/axios-0.18.1.tgz

Path to dependency file: /azure-node-telegram-bot/package.json

Path to vulnerable library: /azure-node-telegram-bot/node_modules/axios/package.json,/google-node-typescript-http-endpoint/node_modules/axios/package.json,/aws-node-vue-nuxt-ssr/node_modules/axios/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/axios/package.json,/azure-node-line-bot/node_modules/serverless-azure-functions/node_modules/axios/package.json

Dependency Hierarchy: - :x: **axios-0.18.1.tgz** (Vulnerable Library)

axios-0.19.2.tgz

Promise based HTTP client for the browser and node.js

Library home page: https://registry.npmjs.org/axios/-/axios-0.19.2.tgz

Path to dependency file: /aws-node-typescript-apollo-lambda/package.json

Path to vulnerable library: /aws-node-typescript-apollo-lambda/node_modules/axios/package.json,/aws-node-http-api-typescript/node_modules/axios/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/axios/package.json,/aws-node-dynamic-image-resizer/node_modules/axios/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/@azure/ms-rest-js/node_modules/axios/package.json,/azure-node-line-bot/node_modules/axios/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/axios/package.json,/aws-rust-simple-http-endpoint/node_modules/axios/package.json,/aws-node-rest-api-typescript-simple/node_modules/axios/package.json,/aws-golang-auth-examples/node_modules/axios/package.json

Dependency Hierarchy: - serverless-1.83.3.tgz (Root Library) - enterprise-plugin-3.8.4.tgz - platform-client-1.1.10.tgz - :x: **axios-0.19.2.tgz** (Vulnerable Library)

Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4

Found in base branch: master

Vulnerability Details

Axios is vulnerable to Regular Expression Denial of Service (ReDoS). When a manipulated string is provided as input to the format method, the regular expression exhibits a time complexity of O(n^2). Server becomes unable to provide normal service due to the excessive cost and time wasted in processing vulnerable regular expressions.

Publish Date: 2023-10-25

URL: WS-2023-0439

CVSS 3 Score Details (7.5)

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/WS-2023-0439

Release Date: 2023-10-25

Fix Resolution (axios): 0.20.0

Direct dependency fix Resolution (serverless): 2.0.0-05627d62


Step up your Open Source Security Game with Mend here