CVE-2025-65328
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
mega-fence_project mega-fenceup to 25.1.914NVD

Classification

CWE-807

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

Sources

SourceRecordLicence
CVE ListCVE-2025-65328 changed 2026-01-05CVE Terms of Use
NVDCVE-2025-65328 changed 2026-11-04Public domain