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-0842 (Medium) detected in multiple libraries #321

Open mend-bolt-for-github[bot] opened 1 year ago

mend-bolt-for-github[bot] commented 1 year ago

CVE-2023-0842 - Medium Severity Vulnerability

Vulnerable Libraries - xml2js-0.4.23.tgz, xml2js-0.4.17.tgz, xml2js-0.4.19.tgz

xml2js-0.4.23.tgz

Simple XML to JavaScript object converter.

Library home page: https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.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/xml2js/package.json,/azure-node-line-bot/node_modules/xml2js/package.json,/azure-node-telegram-bot/node_modules/xml2js/package.json

Dependency Hierarchy: - serverless-azure-functions-2.1.3.tgz (Root Library) - :x: **xml2js-0.4.23.tgz** (Vulnerable Library)

xml2js-0.4.17.tgz

Simple XML to JavaScript object converter.

Library home page: https://registry.npmjs.org/xml2js/-/xml2js-0.4.17.tgz

Path to dependency file: /aws-node-signed-uploads/package.json

Path to vulnerable library: /aws-node-signed-uploads/node_modules/xml2js/package.json,/aws-node-oauth-dropbox-api/node_modules/xml2js/package.json

Dependency Hierarchy: - chromeless-1.5.2.tgz (Root Library) - aws-sdk-2.254.1.tgz - :x: **xml2js-0.4.17.tgz** (Vulnerable Library)

xml2js-0.4.19.tgz

Simple XML to JavaScript object converter.

Library home page: https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz

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

Path to vulnerable library: /aws-node-typescript-kinesis/node_modules/xml2js/package.json,/aws-python-sqs-worker/node_modules/xml2js/package.json,/aws-node-graphql-api-with-dynamodb/node_modules/xml2js/package.json,/aws-node-rest-api-with-dynamodb-and-offline/node_modules/xml2js/package.json,/aws-node-serverless-gong/node_modules/xml2js/package.json,/aws-ruby-sqs-with-dynamodb/node_modules/xml2js/package.json,/aws-node-rekognition-analysis-s3-image/node_modules/xml2js/package.json,/aws-node-vue-nuxt-ssr/node_modules/xml2js/package.json,/aws-node-http-api-typescript/node_modules/xml2js/package.json,/aws-node-typescript-apollo-lambda/node_modules/xml2js/package.json,/aws-ruby-sqs-with-dynamodb/src/node_modules/xml2js/package.json,/aws-golang-auth-examples/node_modules/xml2js/package.json,/aws-node-typescript-nest/node_modules/xml2js/package.json,/aws-node-sqs-worker/node_modules/xml2js/package.json,/aws-node-graphql-and-rds/node_modules/xml2js/package.json,/aws-node-s3-file-replicator/node_modules/xml2js/package.json,/aws-node-rest-api-typescript-simple/node_modules/xml2js/package.json,/aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Lambda/node_modules/xml2js/package.json,/aws-node-dynamic-image-resizer/node_modules/xml2js/package.json,/aws-node-fetch-file-and-store-in-s3/node_modules/xml2js/package.json,/aws-rust-simple-http-endpoint/node_modules/xml2js/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/xml2js/package.json,/aws-node-dynamodb-backup/node_modules/xml2js/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/aws-sdk/node_modules/xml2js/package.json,/aws-node-http-api-dynamodb-local/node_modules/xml2js/package.json,/aws-node-typescript-sqs-standard/node_modules/xml2js/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/xml2js/package.json

Dependency Hierarchy: - graphql-yoga-1.17.4.tgz (Root Library) - aws-lambda-0.1.2.tgz - aws-sdk-2.469.0.tgz - :x: **xml2js-0.4.19.tgz** (Vulnerable Library)

Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4

Found in base branch: master

Vulnerability Details

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the __proto__ property to be edited.

Publish Date: 2023-04-05

URL: CVE-2023-0842

CVSS 3 Score Details (5.3)

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: 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-0842

Release Date: 2023-04-05

Fix Resolution (xml2js): 0.5.0

Direct dependency fix Resolution (graphql-yoga): 1.18.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.