Symlink Attack Affecting filelock package, versions [,3.20.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-FILELOCK-14912448
  • published11 Jan 2026
  • disclosed10 Jan 2026
  • creditGeorge Tsigourakos

Introduced: 10 Jan 2026

CVE-2026-22701  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade filelock to version 3.20.3 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack via a race condition in the _acquire method. An attacker can cause lock operations to fail or behave unexpectedly by creating a symlink at the lock file path between the permission check and file creation.

CVSS Base Scores

version 4.0
version 3.1