---
title: "filelock — CVE-2026-112940"
description: "A path traversal flaw affects the PyPI package filelock. Affected versions: >= 3.20.4, <= 4.2.0. Fixed from version 4.2.1. CVSS score 7.1."
canonical: https://inyourgeek.com/en/failles-de-securite/2026-10-23-cve-2026-112940
type: faille-de-securite
author: "Sébastien Soulier"
publisher: "InYourGeek"
language: en
datePublished: 2026-10-23
dateModified: 2026-10-23
---
# filelock — CVE-2026-112940

A path traversal flaw affects the PyPI package filelock. Affected versions: >= 3.20.4, <= 4.2.0. Fixed from version 4.2.1. CVSS score 7.1.

## What to do

Update filelock to 4.2.1 or later.

| Fact | Value |
| --- | --- |
| Package | filelock |
| Ecosystem | PyPI (Python) |
| Class | Path traversal |
| Affected versions | >= 3.20.4, <= 4.2.0 |
| Fixed version | 4.2.1 |
| CVSS | 7.1 |
| CVE | CVE-2026-112940 |
| GHSA | GHSA-v4x8-3wr5-3wq8 |
| Published on | October 23, 2026 |
| Severity | High |

## Sources

- [GitHub Security Advisory — GHSA-v4x8-3wr5-3wq8](https://github.com/advisories/GHSA-v4x8-3wr5-3wq8) — GitHub Security Advisories
- [NVD — CVE-2026-112940](https://nvd.nist.gov/vuln/detail/CVE-2026-112940) — NVD

---

Equivalent HTML page : https://inyourgeek.com/en/failles-de-securite/2026-10-23-cve-2026-112940
Published by InYourGeek — https://inyourgeek.com/en/a-propos
Method and safeguards : https://inyourgeek.com/en/methode
Full register : https://inyourgeek.com/en/failles-de-securite
