CVE-2026-86041: ezBookkeeping: Source-IP allowlist (MCP & API token) is bypassable via a spoofed `X-Forwarded-For` header
Published 2026-11-09 · Updated 2026-11-23 · Also known as GHSA-wchh-mrv2-5h4q, GO-2026-6949
Summary
ezBookkeeping fails to properly validate the X-Forwarded-For header because the underlying Gin framework defaults to trusting all proxies. Administrators must upgrade to version 1.6.0 or later to patch the IP allowlist bypass.
Who is affected
Affected deployments of ezBookkeeping using source-IP allowlists for MCP or API tokens are vulnerable to authorization bypass. An attacker can spoof their source IP address using the X-Forwarded-For header to appear as a trusted client, effectively neutralizing IP-based security controls and corrupting audit logs.
Exploitability
The vulnerability has a CVSS 4.0 base score reflecting low complexity and no special privileges required, as the attacker can manipulate headers from any network location. While the EPSS score of 0.003 indicates a low current probability of exploitation, the lack of CISA KEV listing suggests this is not currently being widely targeted in the wild.
Remediation
- Upgrade the ezBookkeeping package to version 1.6.0 or later.
- Verify the implementation of SetTrustedProxies if performing custom proxy configurations to prevent Gin from trusting all incoming IP headers.
How to check your project
- Check the go.mod file in the ezBookkeeping project to confirm if the version of github.com/mayswind/ezbookkeeping is between 0.10.0 and 1.5.9.
- Run the PoC tests provided in the source repository (TestACCESSCONTROL001_XFFBypass or TestCHAIN_AllowlistBypass) to confirm if the current environment treats forged X-Forwarded-For headers as trusted.
Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/mayswind/ezbookkeeping |
>= 0.10.0, < 1.6.0 | 1.6.0 | go get github.com/mayswind/[email protected] |
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | None |
| Privileges required | Low |
| User interaction | None |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | Low |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
Does this vulnerability bypass the authentication layer?
No. This flaw only bypasses the compensating IP-based allowlist. Actions performed through the MCP or API still require valid credentials (e.g., valid tokens) to execute.
How does the X-Forwarded-For header impact system logs?
The application incorrectly logs the spoofed IP address provided in the X-Forwarded-For header instead of the actual client IP, which prevents accurate audit tracking and non-repudiation.
Is this vulnerability limited to specific network configurations?
Yes, it specifically impacts instances where the operator has enabled the 'mcp_allowed_remote_ips' or 'api_token_allowed_remote_ips' settings, as these are the controls neutralized by the header spoofing.
Original advisory description
References
- WEB https://github.com/mayswind/ezbookkeeping/security/advisories/GHSA-wchh-mrv2-5h4q
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-86041
- WEB https://github.com/mayswind/ezbookkeeping/commit/d79a5beb8037e529dc4dc64a6d22bd2d02b2e986
- PACKAGE https://github.com/mayswind/ezbookkeeping
- WEB https://github.com/mayswind/ezbookkeeping/releases/tag/v1.6.0
Source records: GHSA-wchh-mrv2-5h4q, GO-2026-6949 (OSV.dev) · EPSS by FIRST, 2026-11-25.