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

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- 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.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-04T22:15:56.477Z
- Modified: 2026-11-23T20:41:08.220Z
- Also known as: GHSA-wchh-mrv2-5h4q, GO-2026-6949
- Weaknesses: CWE-348
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- mayswind ezbookkeeping: >= 0.10.0, < 1.6.0
- github.com/mayswind/ezbookkeeping (Go): from 0.10.0 before 1.6.0

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/mayswind/ezbookkeeping/security/advisories/GHSA-wchh-mrv2-5h4q> (exploit, advisory, web)
- <https://github.com/mayswind/ezbookkeeping/commit/d79a5beb8037e529dc4dc64a6d22bd2d02b2e986> (fix, web)
- <https://github.com/mayswind/ezbookkeeping/releases/tag/v1.6.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-86041> (advisory)
- <https://github.com/mayswind/ezbookkeeping> (package)

## Sources

- CVE List: [CVE-2026-86041](https://www.cve.org/CVERecord?id=CVE-2026-86041), CVE Terms of Use, modified 2026-11-05
- GitHub Advisory Database: [GHSA-wchh-mrv2-5h4q](https://github.com/advisories/GHSA-wchh-mrv2-5h4q), CC-BY-4.0, modified 2026-11-23
- Go Vulnerability Database: [GO-2026-6949](https://pkg.go.dev/vuln/GO-2026-6949), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-86041](https://nvd.nist.gov/vuln/detail/CVE-2026-86041), Public domain, modified 2026-11-12

---

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