Servers and applications
GHSA-6j8g-rp8v-55vr
Per-IP Rate Limit Bypass via Spoofable X-Forwarded-For and CF-Connecting-IP Headers
- Severity
- Medium 6.5
- Published
- 14 Nov 2026
- Last changed
- 14 Nov 2026
- Added to UpHeron
- 14 Nov 2026
- Fixed in
- 1.18.0
- Weakness
- CWE-348
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Change some data · Slow it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L- Sources
- Project advisories (GitHub)
Description
extract_remote_ip() returns a client-supplied header value as the client IP. Every per-IP rate limiter uses this value as the bucket key. An unauthenticated attacker rotates the header on each request and gets a fresh bucket every time. The per-IP rate limit stops working.
api/libs/helper.py:402-408:
The default Docker deployment does not use Cloudflare. nginx does not strip CF-Connecting-IP. Any client can set this header.
When CF-Connecting-IP is absent, the function reads X-Forwarded-For[0]. docker/nginx/proxy.conf.template:4 uses $proxy_add_x_forwarded_for which appends the real IP. The attacker-supplied value stays at index 0.
api/extensions/ext_proxy_fix.py sets ProxyFix(app.wsgi_app, x_port=1). x_for is not set. Werkzeug does not sanitise the header.
api/libs/rate_limit.py:61:
api/services/account_service.py:959:
Rotating the header rotates the bucket key. The limit never triggers.
Affected software
| Software | Affected versions |
|---|---|
DifyServers and applications · github:langgenius/dify |
|
About Dify
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
- GitHub stars
- 161,177GitHub, 15 Nov 2026
- Forks
- 25,501GitHub, 15 Nov 2026
- Latest release
- 1.19.0GitHub, 15 Nov 2026
- Released
- 4 Nov 2026GitHub
- First published on GitHub
- 12 Apr 2023GitHub
Vulnerabilities in Dify
- In our list
- 42
- Published in the last 12 months
- 21
- Critical, last 12 months
- 3
- High, last 12 months
- 7
- Known exploited
- 0
- CVE-2026-58141Dify < 1.15.0 SSRF Protection Bypass via Remote-Files EndpointsHigh 7.2 6 Nov 2026
- CVE-2026-123135langgenius dify Sandbox Run __init__.py hard-coded credentialsMedium 5.3 5 Nov 2026
- CVE-2026-105761IDOR in AppMCPServer PUT Endpoint Allows Modification of Other Apps' MCP ServersHigh 7.1 19 Aug 2026
- GHSA-9c9q-5rj5-mjj2Cross-Tenant File Preview via Unscoped Console `file_id`High 7.7 15 Jul 2026
- GHSA-fj5w-7rc8-3f3fCross-Tenant External API Usage EnumerationMedium 4.3 15 Jul 2026
- GHSA-5vmp-5q9h-hmr7Cross-Tenant External API Detail DisclosureHigh 8.5 15 Jul 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-6j8g-rp8v-55vr
- github.com https://github.com/langgenius/dify/security/advisories/GHSA-6j8g-rp8v-55vr