Skip to content

CVE-2021-32640 (Medium) detected in multiple libraries #250

Open

Description

@mend-bolt-for-github

CVE-2021-32640 - Medium Severity Vulnerability

Vulnerable Libraries - ws-7.3.1.tgz, ws-6.1.4.tgz, ws-6.2.1.tgz, ws-5.2.2.tgz

ws-7.3.1.tgz

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

Library home page: https://registry.npmjs.org/ws/-/ws-7.3.1.tgz

Path to dependency file: /deps/npm/docs/package.json

Path to vulnerable library: /deps/npm/docs/package.json

Dependency Hierarchy:

  • gatsby-2.23.20.tgz (Root Library)
    • gatsby-cli-2.12.80.tgz
      • gatsby-recipes-0.2.10.tgz
        • ❌ ws-7.3.1.tgz (Vulnerable Library)
ws-6.1.4.tgz

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

Library home page: https://registry.npmjs.org/ws/-/ws-6.1.4.tgz

Path to dependency file: /deps/npm/docs/package.json

Path to vulnerable library: /deps/npm/docs/package.json

Dependency Hierarchy:

  • gatsby-2.23.20.tgz (Root Library)
    • socket.io-client-2.3.0.tgz
      • engine.io-client-3.4.3.tgz
        • ❌ ws-6.1.4.tgz (Vulnerable Library)
ws-6.2.1.tgz

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

Library home page: https://registry.npmjs.org/ws/-/ws-6.2.1.tgz

Path to dependency file: /deps/npm/docs/package.json

Path to vulnerable library: /deps/npm/docs/package.json

Dependency Hierarchy:

  • gatsby-2.23.20.tgz (Root Library)
    • webpack-dev-server-3.11.0.tgz
      • ❌ ws-6.2.1.tgz (Vulnerable Library)
ws-5.2.2.tgz

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

Library home page: https://registry.npmjs.org/ws/-/ws-5.2.2.tgz

Path to dependency file: /deps/v8/tools/turbolizer/package.json

Path to vulnerable library: /deps/v8/tools/turbolizer/node_modules/ws/package.json,/deps/npm/docs/package.json

Dependency Hierarchy:

  • gatsby-2.23.20.tgz (Root Library)
    • gatsby-cli-2.12.80.tgz
      • gatsby-recipes-0.2.10.tgz
        • subscriptions-transport-ws-0.9.17.tgz
          • ❌ ws-5.2.2.tgz (Vulnerable Library)

Found in HEAD commit: 816eb239406f6f1ea0705d8f7029bf859bdd56ae

Found in base branch: master

Vulnerability Details

ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the Sec-Websocket-Protocol header can be used to significantly slow down a ws server. The vulnerability has been fixed in ws@7.4.6 (websockets/ws@00c425e). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options.

Publish Date: 2021-05-25

URL: CVE-2021-32640

CVSS 3 Score Details (5.3)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-6fc8-4gx4-v693

Release Date: 2021-05-25

Fix Resolution (ws): 7.4.6

Direct dependency fix Resolution (gatsby): 2.23.21-oom-exit-code.13

Fix Resolution (ws): 7.4.6

Direct dependency fix Resolution (gatsby): 2.23.21-oom-exit-code.13

Fix Resolution (ws): 7.4.6

Direct dependency fix Resolution (gatsby): 2.23.21-oom-exit-code.13

Fix Resolution (ws): 7.4.6

Direct dependency fix Resolution (gatsby): 2.23.21-oom-exit-code.13


Step up your Open Source Security Game with Mend here

Activity

  1. added
    Mend: dependency security vulnerability
    on Jun 28, 2021
  2. changed the title [-]CVE-2021-32640 (Medium) detected in ws-7.4.5.tgz, ws-5.2.2.tgz[/-] [+]CVE-2021-32640 (Medium) detected in multiple libraries[/+] on Jan 7, 2023
  3. changed the title [-]CVE-2021-32640 (Medium) detected in ws-7.4.5.tgz, ws-5.2.2.tgz[/-] [+]CVE-2021-32640 (Medium) detected in multiple libraries[/+] on Jan 7, 2023
  4. changed the title [-]CVE-2021-32640 (Medium) detected in ws-7.4.5.tgz, ws-5.2.2.tgz[/-] [+]CVE-2021-32640 (Medium) detected in multiple libraries[/+] on Jan 7, 2023
  5. changed the title [-]CVE-2021-32640 (Medium) detected in ws-7.4.5.tgz, ws-5.2.2.tgz[/-] [+]CVE-2021-32640 (Medium) detected in multiple libraries[/+] on Jan 7, 2023
  6. changed the title [-]CVE-2021-32640 (Medium) detected in ws-7.4.5.tgz, ws-5.2.2.tgz[/-] [+]CVE-2021-32640 (Medium) detected in multiple libraries[/+] on Jan 7, 2023
  7. changed the title [-]CVE-2021-32640 (Medium) detected in multiple libraries[/-] [+]CVE-2021-32640 (Medium) detected in multiple libraries - autoclosed[/+] on Apr 21, 2023
  8. mend-bolt-for-github commented on Apr 21, 2023

    @mend-bolt-for-github
    Author

    ✔️ 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.

  9. changed the title [-]CVE-2021-32640 (Medium) detected in multiple libraries - autoclosed[/-] [+]CVE-2021-32640 (Medium) detected in multiple libraries[/+] on Apr 26, 2023
  10. mend-bolt-for-github commented on Apr 26, 2023

    @mend-bolt-for-github
    Author

    ℹ️ This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Mend: dependency security vulnerability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions