CVE-2026-86041

ezBookkeeping: Source-IP allowlist (MCP & API token) is bypassable via a spoofed `X-Forwarded-For` header

Published Nov 4, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
ezBookkeeping is an open source, self-hosted personal finance application. From 0.10.0 until 1.6.0, ezBookkeeping constructs its Gin router with gin.New() without configuring SetTrustedProxies, causing c.ClientIP() to trust a spoofed X-Forwarded-For value. An unauthenticated remote attacker can supply an allowlisted address to bypass the mcp_allowed_remote_ips or api_token_allowed_remote_ips gate. A valid MCP or API token remains required for protected actions. When such actions occur, the same spoofed value is stored in Transaction.CreatedIp and the request log, attributing activity to the trusted host instead of the attacker. This issue is fixed in version 1.6.0.

Analysis

AI-generated

Technical impact

ezBookkeeping, an open‑source financial application, improperly extracts client IP addresses by using gin.New() without setting trusted proxies. Consequently, the c.ClientIP() function accepts a spoofed X‑Forwarded‑For header. An attacker can provide a value that matches the allow‑listed IP fields for machine‑controlled processes (MCP) or API tokens. Although a valid token is still required, the spoofed IP is recorded in transaction metadata and logs, thereby masking the attacker’s true location and bypassing IP‑based traffic filtering. This flaw does not enable code execution but does allow an attacker to appear as a legitimate client, potentially enabling further exploitation if downstream systems rely on the recorded IP for authorization or auditing.

Affected Systems

The vulnerability affects versions 0.10.0 through 1.6.0 of mayswind’s ezBookkeeping application. Any deployment of these releases that has not applied the 1.6.0 update is susceptible.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity; the EPSS score is not available, and the issue is not listed in KEV. The most likely attack vector involves an unauthenticated request to the application’s API or MCP endpoint with a crafted X‑Forwarded‑For header. If the attacker supplies an IP that is permitted by the allow‑list, access is granted and logs record the spoofed address, facilitating potential future credential compromise or audit bypass. The risk is heightened where the application is exposed to the internet or otherwise trusts proxy headers without proper configuration.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ezBookkeeping to version 1.6.0 or later to receive the patched Gin router configuration
  • Configure SetTrustedProxies explicitly to restrict which proxy headers are honored if running behind a reverse proxy
  • Reevaluate and tighten the IP allowlist for MCP and API token access and ensure it is applied after authenticating the client

Generated by OpenCVE AI on November 4, 2026 at 23:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wchh-mrv2-5h4q ezBookkeeping: Source-IP allowlist (MCP & API token) is bypassable via a spoofed `X-Forwarded-For` header
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Mayswind
Mayswind ezbookkeeping
Vendors & Products Mayswind
Mayswind ezbookkeeping
Type Values Removed Values Added
Description ezBookkeeping is an open source, self-hosted personal finance application. From 0.10.0 until 1.6.0, ezBookkeeping constructs its Gin router with gin.New() without configuring SetTrustedProxies, causing c.ClientIP() to trust a spoofed X-Forwarded-For value. An unauthenticated remote attacker can supply an allowlisted address to bypass the mcp_allowed_remote_ips or api_token_allowed_remote_ips gate. A valid MCP or API token remains required for protected actions. When such actions occur, the same spoofed value is stored in Transaction.CreatedIp and the request log, attributing activity to the trusted host instead of the attacker. This issue is fixed in version 1.6.0.
Title ezBookkeeping: Source-IP allowlist (MCP & API token) is bypassable via a spoofed `X-Forwarded-For` header
Weaknesses CWE-348
References
Metrics cvssV4_0

{'score': 5.3, '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'}

Weaknesses
  • CWE-348

    Use of Less Trusted Source

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 5, 2026, 7:48 PM
Reserved
Sep 4, 2026, 7:29 PM
Status
Deferred
Published
Nov 4, 2026, 11:17 PM
Modified
Nov 12, 2026, 10:18 PM
Severity
Moderate
Public date
Nov 4, 2026, 10:15 PM