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

[2.2.14] npm audit reports high severity vulnerability in dependency 'websocket-stream' #431

Closed
jmattsson opened this issue Jun 26, 2024 · 5 comments
Labels
bug This issue is a bug. p2 This is a standard priority issue

Comments

@jmattsson
Copy link

Describe the bug

Run npm audit
# npm audit report

ws  2.1.0 - 5.2.3
Severity: high
ws affected by a DoS when handling a request with many HTTP headers - https://github.com/advisories/GHSA-3h5v-q93c-6h6q
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/websocket-stream/node_modules/ws
  websocket-stream  4.0.0 - 5.1.2 || >=5.4.0
  Depends on vulnerable versions of ws
  node_modules/websocket-stream
    aws-iot-device-sdk  >=2.2.9
    Depends on vulnerable versions of websocket-stream
    node_modules/aws-iot-device-sdk

3 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Expected Behavior

No known vulnerabilities present :)

Current Behavior

The suggested fix would force a downgrade from 2.2.14 back to 2.2.8, which would introduce other issues again and is not viable.

Reproduction Steps

Take a project that requires aws-iot-device-sdk v2.2.14 package, and run npm audit

Possible Solution

No response

Additional Information/Context

No response

SDK version used

2.2.14

Environment details (OS name and version, etc.)

Linux

@jmattsson jmattsson added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jun 26, 2024
@bretambrose
Copy link
Contributor

We cannot do anything about websocket-stream's dependencies: max-mapper/websocket-stream#162.

FWIW, the vulnerability is irrelevant to the SDK's functionality.

@bretambrose
Copy link
Contributor

I take that back, it looks like we could switch dependencies to https://www.npmjs.com/package/@httptoolkit/websocket-stream

Given that we don't use server functionality, it may not end up being a high priority though.

@jmklix jmklix added p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Jun 26, 2024
@bretambrose
Copy link
Contributor

2.2.15 addresses this issue and has been published to npm.

Copy link

github-actions bot commented Jul 3, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

@jmattsson
Copy link
Author

Lovely, thank you for the quick turnaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

3 participants