[Snyk] Upgrade express from 4.21.2 to 4.22.1#298
Conversation
Snyk has created this PR to upgrade express from 4.21.2 to 4.22.1. See this package in npm: express See this project in Snyk: https://app.snyk.io/org/whyiswhen/project/60bfcc42-7904-4a58-b0b3-490bff31d7b3?utm_source=github&utm_medium=referral&page=upgrade-pr
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
|
Important Review skippedIgnore keyword(s) in the title. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello @chirag127, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request automates the upgrade of the "express" framework to version "4.22.1". The update is crucial for maintaining application security and stability, as it includes important fixes from express@4.22.0 and addresses a subsequent breaking change in express@4.22.1. This ensures the project remains current with the latest recommended practices and avoids potential vulnerabilities. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
There was a problem hiding this comment.
Code Review
This pull request from Snyk upgrades the express package from version 4.21.2 to 4.22.1. The changes in package.json and package-lock.json are correct and reflect this dependency update. The changes are approved for merging. While this PR is fine, I noticed a critical security vulnerability in the project's code (index.js and solution.js) that is unrelated to this change. The userIsAuthorised variable is global, which means once one user authenticates, all subsequent users will also be treated as authenticated. This is a major security flaw that should be addressed in a separate PR by handling authorization state on a per-request basis.

Snyk has created this PR to upgrade express from 4.21.2 to 4.22.1.
ℹ️ 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.
The recommended version is 2 versions ahead of your current version.
The recommended version was released 24 days ago.
Release notes
Package name: express
-
4.22.1 - 2025-12-01
- Release: 4.22.1 by @ UlisesGascon in #6934
-
4.22.0 - 2025-12-01
- Security fix for CVE-2024-51999 (GHSA-pj86-cfqh-vqx6)
- Refactor: improve readability by @ sazk07 in #6190
- ci: add support for Node.js@23.0 by @ UlisesGascon in #6080
- Method functions with no path should error by @ wesleytodd in #5957
- ci: updated github actions ci workflow by @ Phillip9587 in #6323
- ci: reorder
- Backport: ci: add node.js 24 to test matrix by @ Phillip9587 in #6506
- chore(4.x): wider range for query test skip by @ jonchurch in #6513
- use tilde notation for certain dependencies by @ UlisesGascon in #6905
- deps: qs@6.14.0 by @ UlisesGascon in #6909
- deps: use tilde notation for
- Release: 4.22.0 by @ UlisesGascon in #6921
-
4.21.2 - 2024-12-05
- Add funding field (v4) by @ bjohansebas in #6065
- deps: path-to-regexp@0.1.11 by @ blakeembrey in #5956
- deps: bump path-to-regexp@0.1.12 by @ jonchurch in #6209
- Release: 4.21.2 by @ UlisesGascon in #6094
from express GitHub release notesWhat's Changed
Important
The prior release (4.22.0) included an erroneous breaking change related to the extended query parser. There is no actual security vulnerability associated with this behavior (CVE-2024-51999 has been rejected). The change has been fully reverted in this release.
Full Changelog: 4.22.0...v4.22.1
Important: Security
What's Changed
npm isteps to fix ci for older node versions by @ Phillip9587 in #6336qsby @ Phillip9587 in #6919Full Changelog: 4.21.2...4.22.0
What's Changed
Full Changelog: 4.21.1...4.21.2
Important
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: