Skip to content

[Snyk] Security upgrade express from 4.19.2 to 4.22.0#38

Open
jhamot wants to merge 1 commit into
mainfrom
snyk-fix-24ebf0f5a1b63c689d5fb0c25fe90ff3
Open

[Snyk] Security upgrade express from 4.19.2 to 4.22.0#38
jhamot wants to merge 1 commit into
mainfrom
snyk-fix-24ebf0f5a1b63c689d5fb0c25fe90ff3

Conversation

@jhamot

@jhamot jhamot commented Mar 28, 2026

Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • examples/client/javascript/package.json
  • examples/client/javascript/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-15789761
  50  

Breaking Change Risk

Merge Risk: Medium

Notice: This assessment is enhanced by AI.


Important

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

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

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Regular Expression Denial of Service (ReDoS)

…ript/package-lock.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-PATHTOREGEXP-15789761
@jhamot

jhamot commented Mar 28, 2026

Copy link
Copy Markdown
Owner Author

Merge Risk: Medium

This minor version upgrade for Express includes security fixes and a notable behavioral change.

Key Changes:

  • Behavioral Change (Potential Breakage): Starting with version 4.20.0, the default depth for parsing URL-encoded data (via the qs library) has been reduced from Infinity to 32. This is a security enhancement to prevent potential denial-of-service attacks from deeply nested query strings. Applications that process query strings with more than 32 levels of nesting will be affected.
  • Erroneous Breaking Change: Version 4.22.0 introduced a change to address a perceived vulnerability (CVE-2024-51999), which was later deemed an incorrect but breaking change and reverted in 4.22.1. This change alters how the request.query object is created when using the extended query parser.
  • Security Fixes: The versions in this range include patches for various vulnerabilities, including an XSS issue in res.redirect and vulnerabilities in dependencies like cookie and path-to-regexp.

Recommendation:
Verify that your application does not rely on parsing deeply nested query string objects (more than 32 levels). Test query parsing functionality thoroughly after this upgrade.

Source: GitHub Releases

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants