All vulnerabilities

Go

CVE-2026-77463

Remark42: Rate limit bypass via unconditional trust of X-Forwarded-For/X-Real-IP headers in direct-internet deployment

Severity
Medium 6.5
Published
9 Nov 2026
Last changed
9 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.16.2
Exploit chance
0.3% in the next 30 daysHigher than 22% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
CWE-348CWE-807
Attack
Over the network · No login needed · No user action needed
Attacker can
Change some data · Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Also known as
GHSA-56x6-q882-mf27
Sources
OSV.dev and GitHub

Description

Remark42 applied chi's middleware.RealIP globally, trusting True-Client-IP / X-Real-IP / X-Forwarded-For headers without verifying the request came from a trusted proxy. The per-IP rate limiters key on the overwritten r.RemoteAddr, so any client can bypass every per-IP rate limiter by rotating spoofed IP headers. The same spoofed IP also drives other per-IP controls (stored comment IP, anonymous identity derivation, and --votes-ip vote de-duplication). This affects deployments reachable directly from the internet (Remark42's built-in HTTP, static TLS, and ACME modes are all documented and supported), as well as any proxied deployment where the proxy forwards an attacker-controlled recognised header.

The router applies middleware.RealIP globally, ahead of the per-route limiters, without any check that the server is behind a trusted proxy (in v1.16.1, backend/app/rest/api/rest.go:207).

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
github.com/umputun/remark42Go · osv:Go:github.com/umputun/remark42
  • From 1.0.0 up to 1.2.0
github.com/umputun/remark42/backendGo · osv:Go:github.com/umputun/remark42/backend
  • From 1.0.0 before 1.16.2

About github.com/umputun/remark42

This is the only vulnerability in github.com/umputun/remark42 in our list.

About github.com/umputun/remark42/backend

This is the only vulnerability in github.com/umputun/remark42/backend in our list.

References