CVE-2026-57942

LibreTranslate - IP Spoofing via X-Forwarded-For Header

Published Jun 29, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
LibreTranslate through 1.9.7, fixed in commit 397fd22, contains an IP spoofing vulnerability in the get_remote_address() function that allows unauthenticated attackers to spoof client IP addresses by injecting arbitrary values into the X-Forwarded-For header without trusted proxy validation. Attackers can bypass per-IP rate limiting and flood bans by supplying forged addresses in the X-Forwarded-For header to enable unlimited API abuse.

Analysis

AI-generated

Technical impact

A flaw in LibreTranslate versions through 1.9.7 permits unauthenticated attackers to inject arbitrary values into the X‑Forwarded‑For header, enabling the spoofing of client IP addresses. This weakness disables the intended validation of forwarded headers (CWE‑348) and lets an attacker bypass IP‑based rate limiting and flood bans, potentially allowing unlimited abuse of the translation API.

Affected Systems

LibreTranslate up to and including version 1.9.7 are affected. The security bug was fixed in commit 397fd22; any release after that contains the patch.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate risk. Although EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog, the flaw can be exploited remotely via simple HTTP requests with a crafted X‑Forwarded‑For header and requires no authentication. Attackers with network access can easily bypass IP restrictions and abuse the service, creating a significant risk for systems exposed to public traffic.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade LibreTranslate to a version that includes commit 397fd22 or later
  • If an immediate upgrade is not possible, configure the infrastructure to strip or ignore the X‑Forwarded‑For header before it reaches the application
  • Disable or restrict the use of forwarded headers in get_remote_address unless the request comes through a trusted proxy
  • Apply additional IP‑based rate limiting that relies on the connection’s source address instead of any forwarded header

Generated by OpenCVE AI on June 29, 2026 at 19:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Libretranslate
Libretranslate libretranslate
Vendors & Products Libretranslate
Libretranslate libretranslate
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description LibreTranslate through 1.9.7, fixed in commit 397fd22, contains an IP spoofing vulnerability in the get_remote_address() function that allows unauthenticated attackers to spoof client IP addresses by injecting arbitrary values into the X-Forwarded-For header without trusted proxy validation. Attackers can bypass per-IP rate limiting and flood bans by supplying forged addresses in the X-Forwarded-For header to enable unlimited API abuse.
Title LibreTranslate - IP Spoofing via X-Forwarded-For Header
Weaknesses CWE-348
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-348

    Use of Less Trusted Source

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:06 PM
Reserved
Jun 26, 2026, 1:57 PM
Status
Deferred
Published
Jun 29, 2026, 6:16 PM
Modified
Oct 25, 2026, 9:10 PM