chore(deps): update dependency express-rate-limit to v8.2.2 [security]#578
Merged
renovate[bot] merged 1 commit intomainfrom Mar 6, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
8.2.1→8.2.2Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
GitHub Vulnerability Alerts
CVE-2026-30827
Summary
The default
keyGeneratorin express-rate-limit applies IPv6 subnet masking (/56by default) to all addresses thatnet.isIPv6()returns true for. This includes IPv4-mapped IPv6 addresses (::ffff:x.x.x.x), which Node.js returns asrequest.ipon dual-stack servers.Because the first 80 bits of all IPv4-mapped addresses are zero, a
/56(or any/32to/80) subnet mask produces the same network key (::/56) for every IPv4 client. This collapses all IPv4 traffic into a single rate-limit bucket: one client exhausting the limit causes HTTP 429 for all other IPv4 clients.Details
Root Cause
In
source/ip-key-generator.ts:net.isIPv6('::ffff:192.168.1.1')returnstrue, so IPv4-mapped addresses enter the subnet masking path. With a/56prefix, the start address for any::ffff:x.x.x.xis::, producing the key::/56.Proof of Concept
End-to-End Validation
On a dual-stack Express server (
app.listen(port, '::')), tested with Express 5.2.1:request.ipfor IPv4 clients is::ffff:127.0.0.1::/56limitrequests from any IPv4 client, all other IPv4 clients receive 429When This Occurs
::)request.ipcontains IPv4-mapped IPv6 addresseskeyGenerator(custom key generators are not affected)Impact
Affected Versions
All versions of express-rate-limit between v8.0.0 and v8.2.1.
Fix
This issue was fixed in commit 14e53888cdfd1b9798faf5b634c4206409e27fc4. This fix has been included in release v8.3.0, and backported to all affected minor versions in the form of releases v8.2.2, v8.1.1, and v8.0.2.
Release Notes
express-rate-limit/express-rate-limit (express-rate-limit)
v8.2.2Compare Source
Configuration
📅 Schedule: Branch creation - "" in timezone America/Vancouver, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
Thanks for the PR!
Any successful deployments (not always required) will be available below.
API available
Frontend available
Once merged, code will be promoted and handed off to following workflow run.
Main Merge Workflow