Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket.io-client-3.1.2.tgz: 2 vulnerabilities (highest severity is: 9.4) #52

Open
mend-bolt-for-github bot opened this issue Jan 19, 2023 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-bolt-for-github
Copy link
Contributor

mend-bolt-for-github bot commented Jan 19, 2023

Vulnerable Library - socket.io-client-3.1.2.tgz

Path to dependency file: /front/package.json

Path to vulnerable library: /front/node_modules/xmlhttprequest-ssl/package.json

Found in HEAD commit: a8cd22936288e96dc0853b948c465aedbdd75fe3

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (socket.io-client version) Remediation Possible**
CVE-2021-31597 Critical 9.4 xmlhttprequest-ssl-1.5.5.tgz Transitive 3.1.3
CVE-2020-28502 High 8.1 xmlhttprequest-ssl-1.5.5.tgz Transitive 3.1.3

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2021-31597

Vulnerable Library - xmlhttprequest-ssl-1.5.5.tgz

XMLHttpRequest for Node

Library home page: https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz

Path to dependency file: /front/package.json

Path to vulnerable library: /front/node_modules/xmlhttprequest-ssl/package.json

Dependency Hierarchy:

  • socket.io-client-3.1.2.tgz (Root Library)
    • engine.io-client-4.1.2.tgz
      • xmlhttprequest-ssl-1.5.5.tgz (Vulnerable Library)

Found in HEAD commit: a8cd22936288e96dc0853b948c465aedbdd75fe3

Found in base branch: develop

Vulnerability Details

The xmlhttprequest-ssl package before 1.6.1 for Node.js disables SSL certificate validation by default, because rejectUnauthorized (when the property exists but is undefined) is considered to be false within the https.request function of Node.js. In other words, no certificate is ever rejected.

Publish Date: 2021-04-23

URL: CVE-2021-31597

CVSS 3 Score Details (9.4)

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

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

Release Date: 2021-04-23

Fix Resolution (xmlhttprequest-ssl): 1.6.1

Direct dependency fix Resolution (socket.io-client): 3.1.3

Step up your Open Source Security Game with Mend here

CVE-2020-28502

Vulnerable Library - xmlhttprequest-ssl-1.5.5.tgz

XMLHttpRequest for Node

Library home page: https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz

Path to dependency file: /front/package.json

Path to vulnerable library: /front/node_modules/xmlhttprequest-ssl/package.json

Dependency Hierarchy:

  • socket.io-client-3.1.2.tgz (Root Library)
    • engine.io-client-4.1.2.tgz
      • xmlhttprequest-ssl-1.5.5.tgz (Vulnerable Library)

Found in HEAD commit: a8cd22936288e96dc0853b948c465aedbdd75fe3

Found in base branch: develop

Vulnerability Details

This affects the package xmlhttprequest before 1.7.0; all versions of package xmlhttprequest-ssl. Provided requests are sent synchronously (async=False on xhr.open), malicious user input flowing into xhr.send could result in arbitrary code being injected and run.

Publish Date: 2021-03-05

URL: CVE-2020-28502

CVSS 3 Score Details (8.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • 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: GHSA-h4j5-c7cj-74xg

Release Date: 2021-03-05

Fix Resolution (xmlhttprequest-ssl): 1.6.1

Direct dependency fix Resolution (socket.io-client): 3.1.3

Step up your Open Source Security Game with Mend here

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend
Projects
None yet
Development

No branches or pull requests

0 participants