Skip to content

fix(express): update TRUST_PROXY configuration to accept hop count for reverse proxy trust - #1041

Open
drchiodo wants to merge 1 commit into
thedevs-network:mainfrom
drchiodo:fix/trust-proxy-config
Open

drchiodo wants to merge 1 commit into
thedevs-network:mainfrom
drchiodo:fix/trust-proxy-config

Conversation

@drchiodo

@drchiodo drchiodo commented Aug 17, 2026 •

Copy link
Copy Markdown

As discussed on Telegram Chat and following thiese docs:

https://github.com/express-rate-limit/express-rate-limit/wiki/Troubleshooting-Proxy-Issues
and
https://expressjs.com/en/guide/behind-proxies/

i propose a modification to avoid the IP overriding in case of TRUST_PROXY configuration

@drchiodo

drchiodo commented Oct 9, 2026

Copy link
Copy Markdown
Author

Checking in after about two months: this closes a rate-limit bypass we confirmed exploitable live, so a look would help a lot.

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.

1 participant