[Snyk] Upgrade: , dotenv, express, express-rate-limit, express-session, helmet, moment, mongoose, nodemailer, pdfkit, ws #1149
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade multiple dependencies.
👯♂ The following dependencies are linked and will therefore be updated together.ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
@vonage/server-sdk
from 3.0.0 to 3.16.0 | 48 versions ahead of your current version | 2 months ago
on 2024-07-25
dotenv
from 16.0.3 to 16.4.5 | 17 versions ahead of your current version | 7 months ago
on 2024-02-20
express
from 4.18.2 to 4.19.2 | 4 versions ahead of your current version | 6 months ago
on 2024-03-25
express-rate-limit
from 6.6.0 to 6.11.2 | 10 versions ahead of your current version | a year ago
on 2023-09-12
express-session
from 1.17.3 to 1.18.0 | 1 version ahead of your current version | 8 months ago
on 2024-01-28
helmet
from 6.0.0 to 6.2.0 | 8 versions ahead of your current version | a year ago
on 2023-05-06
moment
from 2.29.4 to 2.30.1 | 2 versions ahead of your current version | 9 months ago
on 2023-12-27
mongoose
from 6.7.2 to 6.13.0 | 36 versions ahead of your current version | 3 months ago
on 2024-06-06
nodemailer
from 6.8.0 to 6.9.14 | 15 versions ahead of your current version | 3 months ago
on 2024-06-19
pdfkit
from 0.13.0 to 0.15.0 | 2 versions ahead of your current version | 6 months ago
on 2024-03-24
ws
from 8.11.0 to 8.18.0 | 12 versions ahead of your current version | 3 months ago
on 2024-07-03
Issues fixed by the recommended upgrade:
SNYK-JS-MONGOOSE-5777721
SNYK-JS-WS-7266574
SNYK-JS-CRYPTOJS-6028119
SNYK-JS-FASTXMLPARSER-5668858
SNYK-JS-IP-6240864
SNYK-JS-MONGODB-5871303
SNYK-JS-NODEMAILER-6219989
SNYK-JS-EXPRESS-6474509
SNYK-JS-FASTXMLPARSER-3325616
SNYK-JS-FASTXMLPARSER-7573289
SNYK-JS-IP-7148531
Release notes
Package name: @vonage/server-sdk
Package name: dotenv
16.4.5
16.4.4
16.4.3
16.4.2
16.4.1
16.4.0
16.3.2
16.3.1
16.3.0
16.2.0
Package name: express
What's Changed
Full Changelog: 4.19.0...4.19.1
What's Changed
New Contributors
Full Changelog: 4.18.3...4.19.0
Main Changes
Other Changes
New Contributors
Full Changelog: 4.18.2...4.18.3
Package name: express-rate-limit
Fixed
IncrementResponse
TypeScript type (See #397)Fixed
Added
Added
RateLimit
header from the RateLimit header fields for HTTP standardization draft adopted by the IETF. Enable by settingstandardHeaders: 'draft-7'
standardHeaders: 'draft-6'
option, treated equivalent tostandardHeaders: true
from previous releases. (true
andfalse
are still supported.)RateLimit-Policy
header added whenstandardHeaders
is set to'draft-6'
,'draft-7'
, ortrue
draft_polli_ratelimit_headers
optiononLimitReached
optiontotalHits
value returned from Store is invalidAdded
ValidationError
, directing users to the appropriate wiki page for more infoChanged
You can view the full changelog here.
Changed
You can view the full changelog here.
Added
https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes for
a list of potential errors. Can be disabled by setting
validate: false
inthe configuration. Automatically disables after the first request. (See
#358)
You can view the changelog here.
(Backport of v6.8.1)
You can view the full changelog here.
Fixed
node16
moduleresolution strategy (See
#355)
Changed
node
20 to list of versions the CI jobs run on.No functional changes.
You can view the changelog here.
Changed
express-rate-limit
organization on GitHub.readme.md
for project sponsor Zuplo.typescript
version 5 and bumped other dependencies.node
12, and addednode
19 to the list of versions the CI jobs run on.You can view the changelog here.
Package name: express-session
partitioned
tocookie
optionspriority
tocookie
optionssecret
thatcrypto.createHmac
supportsexpires
option to reject invalid datesPackage name: helmet
6.2.0
6.1.5
6.1.4
6.1.3
6.1.2
6.1.1
6.1.0
v6.0.1
6.0.0
Package name: moment
2.30.1
2.30.0
2.29.4
Package name: mongoose
Package name: nodemailer
6.9.14 (2024-06-19)
Bug Fixes
6.9.13 (2024-03-20)
Bug Fixes
6.9.12 (2024-03-08)
Bug Fixes
6.9.11 (2024-02-29)
Bug Fixes
6.9.10 (2024-02-22)
Bug Fixes
6.9.9 (2024-02-01)
Bug Fixes
6.9.8 (2023-12-30)
Bug Fixes
6.9.7 (2023-10-22)
Bug Fixes
6.9.6 (2023-10-09)
Bug Fixes
6.9.5 (2023-09-06)
Bug Fixes
Package name: pdfkit
write
methodPackage name: ws
Features
Blob
(#2229).Bug fixes
A request with a number of headers exceeding the
server.maxHeadersCount
threshold could be used to crash a ws server.
const WebSocket = require('ws');
const wss = new WebSocket.Server({ port: 0 }, function () {
const chars = "!#$%&'*+-.0123456789abcdefghijklmnopqrstuvwxyz^_`|~".split('');
const headers = {};
let count = 0;
for (let i = 0; i < chars.length; i++) {
if (count === 2000) break;
}
headers.Connection = 'Upgrade';
headers.Upgrade = 'websocket';
headers['Sec-WebSocket-Key'] = 'dGhlIHNhbXBsZSBub25jZQ==';
headers['Sec-WebSocket-Version'] = '13';
const request = http.request({
headers: headers,
host: '127.0.0.1',
port: wss.address().port
});
request.end();
});
The vulnerability was reported by Ryan LaPointe in #2230.
In vulnerable versions of ws, the issue can be mitigated in the following ways:
--max-http-header-size=size
and/or the