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-2024-21534 (Critical) detected in multiple libraries #405

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

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

CVE-2024-21534 - Critical Severity Vulnerability

Vulnerable Libraries - jsonpath-plus-3.0.0.tgz, jsonpath-plus-1.1.0.tgz, jsonpath-plus-5.0.7.tgz, dap-uiv0.1.1, jsonpath-plus-0.16.0.tgz, jsonpath-plus-5.1.0.tgz

jsonpath-plus-3.0.0.tgz

A JS implementation of JSONPath with some additional operators

Library home page: https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-3.0.0.tgz

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

Path to vulnerable library: /aws-node-typescript-apollo-lambda/node_modules/jsonpath-plus/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/jsonpath-plus/package.json

Dependency Hierarchy: - serverless-offline-6.8.0.tgz (Root Library) - :x: **jsonpath-plus-3.0.0.tgz** (Vulnerable Library)

jsonpath-plus-1.1.0.tgz

A JS implementation of JSONPath with some additional operators

Library home page: https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-1.1.0.tgz

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

Path to vulnerable library: /aws-node-puppeteer/node_modules/jsonpath-plus/package.json,/aws-node-rest-api-typescript/node_modules/jsonpath-plus/package.json

Dependency Hierarchy: - serverless-offline-5.12.1.tgz (Root Library) - :x: **jsonpath-plus-1.1.0.tgz** (Vulnerable Library)

jsonpath-plus-5.0.7.tgz

A JS implementation of JSONPath with some additional operators

Library home page: https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-5.0.7.tgz

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

Path to vulnerable library: /aws-node-typescript-nest/node_modules/jsonpath-plus/package.json

Dependency Hierarchy: - serverless-offline-7.0.0.tgz (Root Library) - :x: **jsonpath-plus-5.0.7.tgz** (Vulnerable Library)

jsonpath-plus-0.16.0.tgz

A JS implementation of JSONPath with some additional operators

Library home page: https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-0.16.0.tgz

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

Path to vulnerable library: /aws-node-oauth-dropbox-api/node_modules/jsonpath-plus/package.json,/aws-node-dynamic-image-resizer/node_modules/jsonpath-plus/package.json,/aws-node-signed-uploads/node_modules/jsonpath-plus/package.json,/aws-node-auth0-custom-authorizers-api/node_modules/jsonpath-plus/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/jsonpath-plus/package.json,/aws-node-github-check/node_modules/jsonpath-plus/package.json,/aws-node-vue-nuxt-ssr/node_modules/jsonpath-plus/package.json

Dependency Hierarchy: - serverless-offline-3.31.0.tgz (Root Library) - :x: **jsonpath-plus-0.16.0.tgz** (Vulnerable Library)

jsonpath-plus-5.1.0.tgz

A JS implementation of JSONPath with some additional operators

Library home page: https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-5.1.0.tgz

Path to dependency file: /aws-node-rest-api-typescript-simple/package.json

Path to vulnerable library: /aws-node-rest-api-typescript-simple/node_modules/jsonpath-plus/package.json,/aws-node-http-api-dynamodb-local/node_modules/jsonpath-plus/package.json,/aws-node-http-api-typescript/node_modules/jsonpath-plus/package.json,/aws-node-rest-api-with-dynamodb-and-offline/node_modules/jsonpath-plus/package.json

Dependency Hierarchy: - serverless-offline-6.9.0.tgz (Root Library) - :x: **jsonpath-plus-5.1.0.tgz** (Vulnerable Library)

Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4

Found in base branch: master

Vulnerability Details

All versions of the package jsonpath-plus are vulnerable to Remote Code Execution (RCE) due to improper input sanitization. An attacker can execute aribitrary code on the system by exploiting the unsafe default usage of vm in Node. **Note:** There were several attempts to fix it in versions [10.0.0-10.1.0](https://github.com/JSONPath-Plus/JSONPath/compare/v9.0.0...v10.1.0) but it could still be exploited using [different payloads](https://github.com/JSONPath-Plus/JSONPath/issues/226).

Publish Date: 2024-10-11

URL: CVE-2024-21534

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-2024-21534

Release Date: 2024-10-11

Fix Resolution: jsonpath-plus - 10.2.0


Step up your Open Source Security Game with Mend here