---
id: CVE-2026-57942
title: LibreTranslate - IP Spoofing via X-Forwarded-For Header
summary: >-
  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…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'
cvssSource: cna
cwe:
  - CWE-348
vendor: LibreTranslate
product: LibreTranslate
affected:
  - LibreTranslate <= 1.9.7
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-06-29T18:37:47.012327Z'
exploitAvailable: true
published: '2026-06-29'
updated: '2026-11-08'
sourceUpdated: '2026-11-08T14:06:35.583Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-57942'
references:
  - url: 'https://github.com/LibreTranslate/LibreTranslate/issues/986'
    label: Researcher Disclosure
  - url: 'https://github.com/LibreTranslate/LibreTranslate/pull/987'
    label: Pull Request
  - url: >-
      https://github.com/LibreTranslate/LibreTranslate/commit/397fd224080515d4001a1bc60c8fed53e3c56b6f
    label: Patch Commit
  - url: >-
      https://www.vulncheck.com/advisories/libretranslate-ip-spoofing-via-x-forwarded-for-header
tags:
  - cve.org
  - exploit-available
epss: 0.00234
epssPercentile: 0.14348
ingestedAt: '2026-11-08T14:51:22.320Z'
---

## Overview

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.

## Affected

- `LibreTranslate <= 1.9.7`

## Remediation

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