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-2022-2421 (Critical) detected in socket.io-parser-3.3.0.tgz, socket.io-parser-3.3.2.tgz #344

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

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

CVE-2022-2421 - Critical Severity Vulnerability

Vulnerable Libraries - socket.io-parser-3.3.0.tgz, socket.io-parser-3.3.2.tgz

socket.io-parser-3.3.0.tgz

socket.io protocol parser

Library home page: https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.0.tgz

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

Path to vulnerable library: /aws-node-typescript-apollo-lambda/node_modules/socket.io-parser/package.json

Dependency Hierarchy: - serverless-1.79.0.tgz (Root Library) - components-2.34.6.tgz - platform-client-china-1.0.33.tgz - utils-china-0.1.23.tgz - socket.io-client-2.3.0.tgz - :x: **socket.io-parser-3.3.0.tgz** (Vulnerable Library)

socket.io-parser-3.3.2.tgz

socket.io protocol parser

Library home page: https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.2.tgz

Path to dependency file: /aws-node-dynamic-image-resizer/package.json

Path to vulnerable library: /aws-node-dynamic-image-resizer/node_modules/socket.io-parser/package.json,/aws-node-http-api-typescript/node_modules/socket.io-parser/package.json,/aws-node-rest-api-typescript-simple/node_modules/socket.io-parser/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/socket.io-parser/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/socket.io-parser/package.json,/aws-rust-simple-http-endpoint/node_modules/socket.io-parser/package.json,/aws-golang-auth-examples/node_modules/socket.io-parser/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 - socket.io-client-2.4.0.tgz - :x: **socket.io-parser-3.3.2.tgz** (Vulnerable Library)

Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4

Found in base branch: master

Vulnerability Details

Due to improper type validation in attachment parsing the Socket.io js library, it is possible to overwrite the _placeholder object which allows an attacker to place references to functions at arbitrary places in the resulting query object.

Publish Date: 2022-10-25

URL: CVE-2022-2421

CVSS 3 Score Details (10.0)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Changed - 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://github.com/advisories/GHSA-qm95-pgcg-qqfq

Release Date: 2022-10-26

Fix Resolution (socket.io-parser): 3.3.3

Direct dependency fix Resolution (serverless): 1.80.0-06ed01b8

Fix Resolution (socket.io-parser): 3.3.3

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


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.