filelock is a platform-independent file lock for Python. From 4.2.1 until 4.3.0, on POSIX, ReadWriteLock can remove empty directories from an unrelated directory owned by the locking account. This requires a shared parent without the sticky bit where another local account can rename directories. The confirmed impact is confined to empty directories. This issue is fixed in version 4.3.0.
https://github.com/tox-dev/filelock/security/advisories/GHSA-jcf5-mpj4-xfg8
https://github.com/tox-dev/filelock/releases/tag/4.3.0
https://github.com/tox-dev/filelock/pull/973
https://github.com/tox-dev/filelock/commit/f000cc7dc095718273ae26c959072c0d9a50ff7d