-
Notifications
You must be signed in to change notification settings - Fork 26
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
npm audit - 2 vulnerabilities found - Severity: 2 high #556
Comments
downstream issue aws/aws-iot-device-sdk-js-v2#517 |
Thanks for pointing this out to us. It is currently not an issue for anyone using this sdk, as security vulnerabilities don't affect any of the functions used by this sdk. We will leave this issue open for when we update to the latest ws version. |
This broke our CI pipeline as we run I would assume the |
From the Github advisory:
The vulnerability is in server functionality: handling the headers of an unknown http request (the websocket handshake). We do not use server functionality and the headers in the handshake are either under client control (the request) or IoT Core control (the response). |
Describe the bug
Expected Behavior
No vulnerabilities found
Current Behavior
2 vulnerabilities found
Severity: 2 high
Reproduction Steps
npm audit
Possible Solution
Seems
aws-crt
is using 2 different major versions of[email protected]
and[email protected]
Solution would be to bump to
mqtt@>=5.7.2
Ref to "ws": "^8.17.1": https://github.com/mqttjs/MQTT.js/blob/v5.7.2/package.json#L127
Looking at the breaking changes from mqtt 4 > 5 these are only small changes needed/documented: https://github.com/mqttjs/MQTT.js/blob/v5.7.2/CHANGELOG.md
This should solve both issues by using a single
[email protected]
asisomorphic-ws
depends on any version being apeerDependency
.https://github.com/heineiuo/isomorphic-ws/blob/master/package.json#L27
Additional Information/Context
No response
aws-crt-nodejs version used
1.21.2
nodejs version used
22.1.0
Operating System and version
Windows 11
The text was updated successfully, but these errors were encountered: