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

[Snyk] Upgrade: dotenv, express, express-session, node-fetch, http-errors, jsonwebtoken, morgan, neo4j-driver, nodemailer, underscore #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonkiky
Copy link
Collaborator

@jonkiky jonkiky commented Sep 20, 2024

snyk-top-banner

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.

Name Versions Released on

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-session
from 1.17.3 to 1.18.0 | 1 version ahead of your current version | 8 months ago
on 2024-01-28
node-fetch
from 2.6.9 to 2.7.0 | 5 versions ahead of your current version | a year ago
on 2023-08-23
http-errors
from 1.6.3 to 1.8.1 | 6 versions ahead of your current version | 3 years ago
on 2021-11-14
jsonwebtoken
from 9.0.0 to 9.0.2 | 2 versions ahead of your current version | a year ago
on 2023-08-30
morgan
from 1.9.1 to 1.10.0 | 1 version ahead of your current version | 5 years ago
on 2020-03-20
neo4j-driver
from 5.5.0 to 5.24.0 | 25 versions ahead of your current version | 22 days ago
on 2024-08-29
nodemailer
from 6.9.1 to 6.9.14 | 13 versions ahead of your current version | 3 months ago
on 2024-06-19
underscore
from 1.13.6 to 1.13.7 | 1 version ahead of your current version | 2 months ago
on 2024-07-24

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Open Redirect
SNYK-JS-EXPRESS-6474509
519 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-NODEMAILER-6219989
519 Proof of Concept
Release notes
Package name: dotenv from dotenv GitHub release notes
Package name: express from express GitHub release notes
Package name: express-session
  • 1.18.0 - 2024-01-28
    • Add debug log for pathname mismatch
    • Add partitioned to cookie options
    • Add priority to cookie options
    • Fix handling errors from setting cookie
    • Support any type in secret that crypto.createHmac supports
    • deps: cookie@0.6.0
      • Fix expires option to reject invalid dates
      • perf: improve default decode speed
      • perf: remove slow string split in parse
    • deps: cookie-signature@1.0.7
  • 1.17.3 - 2022-05-11
    • Fix resaving already-saved new session at end of request
    • deps: cookie@0.4.2
from express-session GitHub release notes
Package name: node-fetch from node-fetch GitHub release notes
Package name: http-errors from http-errors GitHub release notes
Package name: jsonwebtoken
  • 9.0.2 - 2023-08-30

    Release 9.0.2 (#935)

  • 9.0.1 - 2023-07-05

    Updating package version to 9.0.1 (#920)

  • 9.0.0 - 2022-12-21
    • Check if node version supports asymmetricKeyDetails

    • Validate algorithms for ec key type

    • Rename variable

    • Rename function

    • Add early return for symmetric keys

    • Validate algorithm for RSA key type

    • Validate algorithm for RSA-PSS key type

    • Check key types for EdDSA algorithm

    • Rename function

    • Move validateKey function to module

    • Convert arrow to function notation

    • Validate key in verify function

    • Simplify if

    • Convert if to switch..case

    • Guard against empty key in validation

    • Remove empty line

    • Add lib to check modulus length

    • Add modulus length checks

    • Validate mgf1HashAlgorithm and saltLength

    • Check node version before using key details API

    • Use built-in modulus length getter

    • Fix Node version validations

    • Remove duplicate validateKey

    • Add periods to error messages

    • Fix validation in verify function

    • Make asymmetric key validation the latest validation step

    • Change key curve validation

    • Remove support for ES256K

    • Fix old test that was using wrong key types to sign tokens

    • Enable RSA-PSS for old Node versions

    • Add specific RSA-PSS validations on Node 16 LTS+

    • Improve error message

    • Simplify key validation code

    • Fix typo

    • Improve error message

    • Change var to const in test

    • Change const to let to avoid reassigning problem

    • Improve error message

    • Test incorrect private key type

    • Rename invalid to unsupported

    • Test verifying of jwt token with unsupported key

    • Test invalid private key type

    • Change order of object parameters

    • Move validation test to separate file

    • Move all validation tests to separate file

    • Add prime256v1 ec key

    • Remove modulus length check

    • WIP: Add EC key validation tests

    • Fix node version checks

    • Fix error message check on test

    • Add successful tests for EC curve check

    • Remove only from describe

    • Remove only

    • Remove duplicate block of code

    • Move variable to a different scope and make it const

    • Convert allowed curves to object for faster lookup

    • Rename variable

    • Change variable assignment order

    • Remove unused object properties

    • Test RSA-PSS happy path and wrong length

    • Add missing tests

    • Pass validation if no algorithm has been provided

    • Test validation of invalid salt length

    • Test error when signing token with invalid key

    • Change var to const/let in verify tests

    • Test verifying token with invalid key

    • Improve test error messages

    • Add parameter to skip private key validation

    • Replace DSA key with a 4096 bit long key

    • Test allowInvalidPrivateKeys in key signing

    • Improve test message

    • Rename variable

    • Add key validation flag tests

    • Fix variable name in Readme

    • Change private to public dsa key in verify

    • Rename flag

    • Run EC validation tests conditionally

    • Fix tests in old node versions

    • Ignore block of code from test coverage

    • Separate EC validations tests into two different ones

    • Add comment

    • Wrap switch in if instead of having an early return

    • Remove unsupported algorithms from asymmetric key validation

    • Rename option to allowInvalidAsymmetricKeyTypes and improve Readme

    • 9.0.0

    • adding migration notes to readme

    • adding changelog for version 9.0.0

    Co-authored-by: julienwoll julien.wollscheid@auth0.com

from jsonwebtoken GitHub release notes
Package name: morgan
  • 1.10.0 - 2020-03-20
    • Add :total-time token
    • Fix trailing space in colored status code for dev format
    • deps: basic-auth@~2.0.1
      • deps: safe-buffer@5.1.2
    • deps: depd@~2.0.0
      • Replace internal eval usage with Function constructor
      • Use instance methods on process to check for listeners
    • deps: on-headers@~1.0.2
      • Fix res.writeHead patch missing return value
  • 1.9.1 - 2018-09-11
    • Fix using special characters in format
    • deps: depd@~1.1.2
      • perf: remove argument reassignment
from morgan GitHub release notes
Package name: neo4j-driver
  • 5.24.0 - 2024-08-29

    Added support for the new Schema notification category, and a minor fix to stop Deno tests from failing when run locally

    ⭐ New Features


    • Added Schema notification category #1211

    🧹 Housekeeping


    • Move Pool module to core #1212
    • Fix to npm test crashing at Deno tests when running test containers #1210
  • 5.23.0 - 2024-07-25

    This fix a potential issue in the Notification api.

    🔧 Fixes


    • Fix Notification.description polyfill from GqlStatusObject #1205

    🧹 Housekeeping


    • Improve pipelines stability #1206
  • 5.22.0 - 2024-06-27

    This release introduces preview support to the GQLStatusObject #1194 along with other ergonomic preview features. This also speeds up the driver shutdown when connections are waiting to be acquired #1196, thanks, CarsonF, for the contribution.

    ⚠️ Preview Features


    • Introduce GqlStatusObject support as notifications to ResultSummary #1194
    • Introduce AbortSignal to Driver.executeQuery 1199
    • Introduce resultTransformer.first #1200
    • Introduce resultTransformer.summary 1201
    • Introduce resultTransformers.eager and resultTransformers.mapped 1202

    🔧 Fixes


    • Don't prevent NodeJS from closing to run acquisition timeout error #1196. Thanks, CarsonF.

    🧹 Housekeeping


    • Improvements on internal APIs #1195
  • 5.21.0 - 2024-05-30

    Fixes crashes when closing transactions when Queries are still ongoing. Thanks for your contribution, @ reckter.

    🔧 Fixes


    • Fix OOM crash, when closing a transaction while Queries are still ongoing #1193
  • 5.20.0 - 2024-04-25

    Housekeeping only.

    🧹 Housekeeping


    • benchkit: Fix Node installation in Dockerimage #1190
  • 5.19.0 - 2024-04-02

    Introduces clientCertificate configuration as a mechanism to support mutual TLS as a second factor for authentication, currently a preview feature.

    ⭐ New Features


    • Introduce Client Certificate configuration (ℹ️ preview) #1183

    🧹 Housekeeping


    • Updated manifest and Dockerfile for Testkit and Benchkit #1187
  • 5.18.0 - 2024-02-29

    Introduces auth configuration to Driver.executeQuery

    ⭐ New Features


    • Introduces auth configuration to Driver.executeQuery#1177

    🧹 Housekeeping


  • 5.17.0 - 2024-01-29

    Improves performance on deserialising DateTime. Thanks for your contribution, @ vongruenigen.

    👏🏼 Improvements


    • Optimize usage of Intl API to speed up response parsing with many datetime objects #1174

    🔧 Fixes


    • Fix duplicated neo4j-javascript string on boltAgent.product object 1173
  • 5.16.0 - 2024-01-02

    See release notes on the wiki

  • 5.15.0 - 2023-11-27
  • 5.14.0 - 2023-10-26
  • 5.13.0 - 2023-09-28
  • 5.12.0 - 2023-08-31
  • 5.11.0 - 2023-07-27
  • 5.10.0 - 2023-06-29
  • 5.9.2 - 2023-06-19
  • 5.9.1 - 2023-06-09
  • 5.9.0 - 2023-05-26
  • 5.8.1 - 2023-05-22
  • 5.8.0 - 2023-05-02
  • 5.7.1 - 2023-05-22
  • 5.7.0 - 2023-04-03
  • 5.6.1 - 2023-05-22
  • 5.6.0 - 2023-02-24
  • 5.5.1 - 2023-05-22
  • 5.5.0 - 2023-01-27
from neo4j-driver GitHub release notes
Package name: nodemailer
  • 6.9.14 - 2024-06-19

    6.9.14 (2024-06-19)

    Bug Fixes

    • api: Added support for Ethereal authentication (56b2205)
    • services.json: Add Email Services Provider Feishu Mail (CN) (#1648) (e9e9ecc)
    • services.json: update Mailtrap host and port in well known (#1652) (fc2c9ea)
    • well-known-services: Add Loopia in well known services (#1655) (21a28a1)
  • 6.9.13 - 2024-03-20

    6.9.13 (2024-03-20)

    Bug Fixes

    • tls: Ensure servername for SMTP (d66fdd3)
  • 6.9.12 - 2024-03-08

    6.9.12 (2024-03-08)

    Bug Fixes

    • message-generation: Escape single quote in address names (4ae5fad)
  • 6.9.11 - 2024-02-29

    6.9.11 (2024-02-29)

    Bug Fixes

    • headers: Ensure that Content-type is the bottom header (c7cf97e)
  • 6.9.10 - 2024-02-22

    6.9.10 (2024-02-22)

    Bug Fixes

    • data-uri: Do not use regular expressions for parsing data URI schemes (12e65e9)
    • data-uri: Moved all data-uri regexes to use the non-regex parseDataUri method (edd5dfe)
  • 6.9.9 - 2024-02-01

    6.9.9 (2024-02-01)

    Bug Fixes

    • security: Fix issues described in GHSA-9h6g-pr28-7cqp. Do not use eternal matching pattern if only a few occurences are expected (dd8f5e8)
    • tests: Use native node test runner, added code coverage support, removed grunt (#1604) (be45c1b)
  • 6.9.8 - 2023-12-30

    6.9.8 (2023-12-30)

    Bug Fixes

    • punycode: do not use native punycode module (b4d0e0c)
  • 6.9.7 - 2023-10-22

    6.9.7 (2023-10-22)

    Bug Fixes

    • customAuth: Do not require user and pass to be set for custom authentication schemes (fixes #1584) (41d482c)
  • 6.9.6 - 2023-10-09

    6.9.6 (2023-10-09)

    Bug Fixes

    • inline: Use 'inline' as the default Content Dispostion value for embedded images (db32c93)
    • tests: Removed Node v12 from test matrix as it is not compatible with the test framework anymore (7fe0a60)
  • 6.9.5 - 2023-09-06

    6.9.5 (2023-09-06)

    Bug Fixes

    • license: Updated license year (da4744e)
  • 6.9.4 - 2023-07-19
  • 6.9.3 - 2023-05-29
  • 6.9.2 - 2023-05-11
  • 6.9.1 - 2023-01-27
from nodemailer GitHub release notes
Package name: underscore
  • 1.13.7 - 2024-07-24

    DataView bugfix, source links, dark mode and other improvements

  • 1.13.6 - 2022-09-23

    Hotfix after 1.13.5 to remove postinstall script

from underscore GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

[//]: # 'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"dotenv","from":"16.0.3","to":"16.4.5"},{"name":"express","from":"4.18.2","to":"4.19.2"},{"name":"express-session","from":"1.17.3","to":"1.18.0"},{"name":"node-fetch","from":"2.6.9","to":"2.7.0"},{"name":"http-errors","from":"1.6.3","to":"1.8.1"},{"name":"jsonwebtoken","from":"9.0.0","to":"9.0.2"},{"name":"morgan","from":"1.9.1","to":"1.10.0"},{"name":"neo4j-driver","from":"5.5.0","to":"5.24.0"},{"name":"nodemailer","from":"6.9.1","to":"6.9.14"},{"name":"underscore","from":"1.13.6","to":"1.13.7"}],"env":"prod","hasFixes":true,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[{"exploit_maturity":"no-known-exploit","id":"SNYK-JS-EXPRESS-6474509","issue_id":"SNYK-JS-EXPRESS-6474509","priority_score":519,"priority_score_factors":[{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6.1","score":305},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Open Redirect"},{"exploit_maturity":"proof-of-concept","id":"SNYK-JS-NODEMAILER-6219989","issue_id":"SNYK-JS-NODEMAILER-6219989","priority_score":586,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"5.3","score":265},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Regular Expression Denial of Service (ReDoS)"}],"prId":"35f0d72d-04fa-4c99-b245-8eb4318c3dbf","prPublicId":"35f0d72d-04fa-4c99-b245-8eb4318c3dbf","packageManager":"npm","priorityScoreList":[519,586],"projectPublicId":"316744b9-e65c-4e93-b0b5-625a7770b6dc","projectUrl":"https://app.snyk.io/org/jonkiky/project/316744b9-e65c-4e93-b0b5-625a7770b6dc?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"...

Snyk has created this PR to upgrade:
  - dotenv from 16.0.3 to 16.4.5.
    See this package in npm: https://www.npmjs.com/package/dotenv
  - express from 4.18.2 to 4.19.2.
    See this package in npm: https://www.npmjs.com/package/express
  - express-session from 1.17.3 to 1.18.0.
    See this package in npm: https://www.npmjs.com/package/express-session
  - node-fetch from 2.6.9 to 2.7.0.
    See this package in npm: https://www.npmjs.com/package/node-fetch
  - http-errors from 1.6.3 to 1.8.1.
    See this package in npm: https://www.npmjs.com/package/http-errors
  - jsonwebtoken from 9.0.0 to 9.0.2.
    See this package in npm: https://www.npmjs.com/package/jsonwebtoken
  - morgan from 1.9.1 to 1.10.0.
    See this package in npm: https://www.npmjs.com/package/morgan
  - neo4j-driver from 5.5.0 to 5.24.0.
    See this package in npm: https://www.npmjs.com/package/neo4j-driver
  - nodemailer from 6.9.1 to 6.9.14.
    See this package in npm: https://www.npmjs.com/package/nodemailer
  - underscore from 1.13.6 to 1.13.7.
    See this package in npm: https://www.npmjs.com/package/underscore

See this project in Snyk:
https://app.snyk.io/org/jonkiky/project/316744b9-e65c-4e93-b0b5-625a7770b6dc?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants