flamencist / flamencist/SelectorGenerator

CVE-2020-28481 (Medium) detected in socket.io-2.1.1.tgz

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Mend: dependency security vulnerability
Dominant language
JavaScript
Stars
20
Forks
7
PR merge metrics
No merged PRs in 30d

Description

## CVE-2020-28481 - Medium Severity Vulnerability
Vulnerable Library - socket.io-2.1.1.tgz

node.js realtime framework server


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


Path to dependency file: /package.json


Path to vulnerable library: /node_modules/socket.io/package.json


Dependency Hierarchy:
- karma-5.0.4.tgz (Root Library)
- :x: **socket.io-2.1.1.tgz** (Vulnerable Library)


Vulnerability Details



The package socket.io before 2.4.0 are vulnerable to Insecure Defaults due to CORS Misconfiguration. All domains are whitelisted by default.

Publish Date: 2021-01-19

URL: CVE-2020-28481



CVSS 3 Score Details (4.3)

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


For more information on CVSS3 Scores, click here.


Suggested Fix

Type: Upgrade version


Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28481


Release Date: 2021-01-19


Fix Resolution (socket.io): 2.4.0


Direct dependency fix Resolution (karma): 5.0.8

***
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)

Contributor guide

No contributing guide indexed for this repository

Research direction

The vulnerable dependency is traced through /package.json from karma-5.0.4 to socket.io-2.1.1; start by inspecting that dependency entry and the installed package metadata. Apply the stated direct dependency resolution of karma 5.0.8, then verify that socket.io is no longer at the vulnerable version and CVE-2020-28481 is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.