# 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…

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-05T00:00:00.000Z
- Modified: 2026-11-04T22:10:00.210Z
- Weaknesses: CWE-807
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mega-fence_project mega-fence: up to 25.1.914

## References

- <https://raw.githubusercontent.com/p1aintext/CVE/main/CVE-2025-65328.md> (exploit, third-party-advisory)
- <https://drive.proton.me/urls/MY05PVBFXG#xDd2Xqy98WM9> (broken-link)

## Sources

- CVE List: [CVE-2025-65328](https://www.cve.org/CVERecord?id=CVE-2025-65328), CVE Terms of Use, modified 2026-01-05
- NVD: [CVE-2025-65328](https://nvd.nist.gov/vuln/detail/CVE-2025-65328), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2025-65328 · Whole record: https://cve.day/CVE-2025-65328.json · Rebuilt by cve.day 2026-11-25T22:59:10.277Z
