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-0004 (High) detected in multiple libraries - autoclosed #307

Closed mend-bolt-for-github[bot] closed 1 year ago

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

WS-2023-0004 - High Severity Vulnerability

Vulnerable Libraries - jszip-3.7.1.tgz, jszip-3.7.0.tgz, jszip-3.2.2.tgz, jszip-3.5.0.tgz

jszip-3.7.1.tgz

Create, read and edit .zip files with JavaScript http://stuartk.com/jszip

Library home page: https://registry.npmjs.org/jszip/-/jszip-3.7.1.tgz

Path to dependency file: /openwhisk-swift-simple-http-endpoint/package.json

Path to vulnerable library: /openwhisk-swift-simple-http-endpoint/node_modules/jszip/package.json,/openwhisk-swift-simple/node_modules/jszip/package.json,/openwhisk-node-simple-http-endpoint/node_modules/jszip/package.json,/aws-python-rest-api-with-pymongo/node_modules/jszip/package.json,/aws-node-rest-api-with-dynamodb-and-offline/node_modules/jszip/package.json,/aws-python-flask-dynamodb-api/node_modules/jszip/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/jszip/package.json,/openwhisk-python-simple-http-endpoint/node_modules/jszip/package.json,/openwhisk-ruby-simple/node_modules/jszip/package.json,/aws-node-dynamic-image-resizer/node_modules/jszip/package.json,/openwhisk-swift-scheduled-cron/node_modules/jszip/package.json,/openwhisk-python-simple/node_modules/jszip/package.json,/openwhisk-node-and-docker-chaining-functions/node_modules/jszip/package.json,/aws-ruby-sqs-with-dynamodb/src/node_modules/jszip/package.json,/openwhisk-rust-simple-http-endpoint/node_modules/jszip/package.json,/openwhisk-php-simple/node_modules/jszip/package.json,/aws-ruby-sinatra-dynamodb-api/node_modules/jszip/package.json,/aws-golang-auth-examples/node_modules/jszip/package.json,/openwhisk-swift-precompiled-binaries/node_modules/jszip/package.json,/openwhisk-node-simple/node_modules/jszip/package.json,/openwhisk-python-scheduled-cron/node_modules/jszip/package.json,/aws-node-rest-api-typescript-simple/node_modules/jszip/package.json,/openwhisk-node-chaining-functions/node_modules/jszip/package.json,/openwhisk-node-scheduled-cron/node_modules/jszip/package.json,/aws-node-fullstack/backend/node_modules/jszip/package.json,/aws-python-flask-api/node_modules/jszip/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/jszip/package.json,/aws-node-http-api-typescript/node_modules/jszip/package.json,/aws-python-line-echo-bot/node_modules/jszip/package.json,/aws-node-http-api-dynamodb-local/node_modules/jszip/package.json,/aws-rust-simple-http-endpoint/node_modules/jszip/package.json,/openwhisk-go-simple/node_modules/jszip/package.json,/kubeless-python-simple-scheduled-function/node_modules/jszip/package.json,/kubeless-python-simple-function/node_modules/jszip/package.json

Dependency Hierarchy: - serverless-1.83.3.tgz (Root Library) - enterprise-plugin-3.8.4.tgz - :x: **jszip-3.7.1.tgz** (Vulnerable Library)

jszip-3.7.0.tgz

Create, read and edit .zip files with JavaScript http://stuartk.com/jszip

Library home page: https://registry.npmjs.org/jszip/-/jszip-3.7.0.tgz

Path to dependency file: /aws-python-http-api-with-pynamodb/package.json

Path to vulnerable library: /aws-python-http-api-with-pynamodb/node_modules/jszip/package.json

Dependency Hierarchy: - serverless-python-requirements-5.1.1.tgz (Root Library) - :x: **jszip-3.7.0.tgz** (Vulnerable Library)

jszip-3.2.2.tgz

Create, read and edit .zip files with JavaScript http://stuartk.com/jszip

Library home page: https://registry.npmjs.org/jszip/-/jszip-3.2.2.tgz

Path to dependency file: /aws-python-pynamodb-s3-sigurl/package.json

Path to vulnerable library: /aws-python-pynamodb-s3-sigurl/node_modules/jszip/package.json

Dependency Hierarchy: - serverless-python-requirements-5.0.1.tgz (Root Library) - :x: **jszip-3.2.2.tgz** (Vulnerable Library)

jszip-3.5.0.tgz

Create, read and edit .zip files with JavaScript http://stuartk.com/jszip

Library home page: https://registry.npmjs.org/jszip/-/jszip-3.5.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/jszip/package.json,/aws-node-typescript-apollo-lambda/node_modules/jszip/package.json

Dependency Hierarchy: - serverless-offline-6.8.0.tgz (Root Library) - :x: **jszip-3.5.0.tgz** (Vulnerable Library)

Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4

Found in base branch: master

Vulnerability Details

jszip before 3.8.0 does not sanitize filenames when files are loaded with `loadAsync`, which makes the library vunerable to zip-slip attack.

Publish Date: 2023-01-04

URL: WS-2023-0004

CVSS 3 Score Details (7.3)

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2023-01-04

Fix Resolution (jszip): 3.8.0

Direct dependency fix Resolution (serverless): 2.0.0

Fix Resolution (jszip): 3.8.0

Direct dependency fix Resolution (serverless-python-requirements): 5.2.0

Fix Resolution (jszip): 3.6.0

Direct dependency fix Resolution (serverless-python-requirements): 5.1.0

Fix Resolution (jszip): 3.6.0

Direct dependency fix Resolution (serverless-offline): 6.9.0


Step up your Open Source Security Game with Mend here

mend-bolt-for-github[bot] commented 1 year 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.