6.5medium
Mega-Fence (webgate-lib.) 25.1.914 and prior trusts the first value of the X-Forwarded-For (XFF) header as the client IP without validating…
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
Description
Mega-Fence (webgate-lib.*) 25.1.914 and prior trusts the first value of the X-Forwarded-For (XFF) header as the client IP without validating a trusted proxy chain. An attacker can supply an arbitrary XFF value in a remote request to spoof the client IP, which is then propagated to security-relevant state (e.g., WG_CLIENT_IP cookie). Deployments that rely on this value for IP allowlists may be bypassed.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| mega-fence_project mega-fence | up to 25.1.914 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Mega-Fence (webgate-lib.*) 25.1.914 and prior trusts the first value of the X-Forwarded-For (XFF) header as the client IP without validating a trusted proxy chain. An attacker can supply an arbitrary XFF value in a remote request to spoof the client IP, which is then propagated to security-relevant state (e.g., WG_CLIENT_IP cookie). Deployments that rely on this value for IP allowlists may be bypassed.
NVD (es)
Mega-Fence (webgate-lib.*) 25.1.914 y anteriores confía en el primer valor del encabezado X-Forwarded-For (XFF) como la IP del cliente sin validar una cadena de proxy de confianza. Un atacante puede proporcionar un valor XFF arbitrario en una solicitud remota para suplantar la IP del cliente, que luego se propaga a un estado relevante para la seguridad (por ejemplo, la cookie WG_CLIENT_IP). Las implementaciones que dependen de este valor para listas blancas de IP pueden ser eludidas.
References
| https://drive.proton.me/urls/MY05PVBFXG#xDd2Xqy98WM9 | broken-link | |
| https://raw.githubusercontent.com/p1aintext/CVE/main/CVE-2025-65328.md | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-65328 changed 2026-01-05 | CVE Terms of Use |
| NVD | CVE-2025-65328 changed 2026-11-04 | Public domain |