CVE-2025-65328

CVE-2025-65328 is a medium-severity vulnerability in Mega-fence Project Mega-fence with a CVSS 3.x base score of 6.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-807.

Key facts

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.

Frequently asked questions

What is CVE-2025-65328?
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.
How severe is CVE-2025-65328?
CVE-2025-65328 has a CVSS 3.x base score of 6.5, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability none.
Is CVE-2025-65328 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (13th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-65328?
CVE-2025-65328 affects Mega-fence Project Mega-fence. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2025-65328?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2025-65328 have an EU (EUVD) identifier?
Yes. CVE-2025-65328 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-0812.
When was CVE-2025-65328 published?
CVE-2025-65328 was published on 2026-01-05 and last updated on 2026-06-17.

References

Affected products (1)

Other CWE-807 vulnerabilities

Browse all CWE-807 vulnerabilities →