---
id: CVE-2026-107271
title: >-
  Gophish through 0.12.1 contains a rate limit bypass vulnerability that allows
  unauthenticated attackers to evade /login throttling by spoofing
  X-Forwarded-For or X-Real-IP headers
summary: >-
  Gophish through 0.12.1 contains a rate limit bypass vulnerability that allows
  unauthenticated attackers to evade /login throttling by spoofing
  X-Forwarded-For or X-Real-IP headers. Attackers can send a different forwarded
  address per req…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-348
vendor: gophish
product: gophish
affected:
  - gophish <= 0.12.1
published: '2026-10-07'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T16:17:46.800'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-107271'
references:
  - url: 'https://blog.ostorlab.co/gophish-0121-manual-review-agentic-deep-scan.html'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/gophish/gophish'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/gophish/gophish/blob/b1648f0759c6d57ac989157c55d8b47c40254fe6/controllers/route.go#L168
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/gophish/gophish/blob/b1648f0759c6d57ac989157c55d8b47c40254fe6/middleware/ratelimit/ratelimit.go#L132-L136
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/gophish-through-0.12.1-login-rate-limit-bypass-via-x-forwarded-for-spoofing
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-07T16:38:22.227Z'
---

## Overview

Gophish through 0.12.1 contains a rate limit bypass vulnerability that allows unauthenticated attackers to evade /login throttling by spoofing X-Forwarded-For or X-Real-IP headers. Attackers can send a different forwarded address per request so the limiter keyed on rewritten RemoteAddr never triggers, enabling unlimited password guessing and credential stuffing.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
