Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. filelock
  4. ›
  5. CVE-2026-22701

CVE-2026-22701: filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock

January 13, 2026

Title: Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock

Affected Component: filelock package - SoftFileLock class File: src/filelock/_soft.py lines 17-27 CWE: CWE-362, CWE-367, CWE-59


References

  • github.com/advisories/GHSA-qmgc-5h2g-mvrw
  • github.com/tox-dev/filelock
  • github.com/tox-dev/filelock/commit/255ed068bc85d1ef406e50a135e1459170dd1bf0
  • github.com/tox-dev/filelock/commit/41b42dd2c72aecf7da83dbda5903b8087dddc4d5
  • github.com/tox-dev/filelock/security/advisories/GHSA-qmgc-5h2g-mvrw
  • nvd.nist.gov/vuln/detail/CVE-2026-22701

Code Behaviors & Features

Detect and mitigate CVE-2026-22701 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.20.3

Fixed versions

  • 3.20.3

Solution

Upgrade to version 3.20.3 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

pypi/filelock/CVE-2026-22701.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:52 +0000.