Skip to content

fix: restrict forwarded IP trust - #4700

Merged
nijel merged 1 commit into
WeblateOrg:mainfrom
nijel:proxy
Aug 14, 2026
Merged

fix: restrict forwarded IP trust#4700
nijel merged 1 commit into
WeblateOrg:mainfrom
nijel:proxy

Conversation

@nijel

@nijel nijel commented Aug 14, 2026

Copy link
Copy Markdown
Member

The built-in nginx previously trusted X-Forwarded-For from every IPv4 and IPv6 peer whenever Weblate proxy handling was enabled. A client able to reach the container directly could therefore choose the address recorded by nginx and consumed by Weblate security controls.

Require operators to identify trusted proxy addresses, resolve the chain in nginx so access logs retain the real client IP, and forward one normalized address to Weblate at offset zero. This preserves useful logging while preventing the application from reinterpreting an attacker-controlled chain.

The built-in nginx previously trusted X-Forwarded-For from every IPv4 and IPv6 peer whenever Weblate proxy handling was enabled. A client able to reach the container directly could therefore choose the address recorded by nginx and consumed by Weblate security controls.

Require operators to identify trusted proxy addresses, resolve the chain in nginx so access logs retain the real client IP, and forward one normalized address to Weblate at offset zero. This preserves useful logging while preventing the application from reinterpreting an attacker-controlled chain.
@nijel nijel self-assigned this Aug 14, 2026
@nijel

nijel commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

Documentation companion in WeblateOrg/weblate#21168

@nijel
nijel merged commit 49ec024 into WeblateOrg:main Aug 14, 2026
47 checks passed
@nijel
nijel deleted the proxy branch August 14, 2026 10:37
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