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 applicationsUpgrade dulwich to version 1.2.8 or higher.
Affected versions of this package are vulnerable to Symlink Attack via _verify_leading_dirs (absent in affected versions) in dulwich/stash.py during stash.pop. The old path-existence check used os.path.exists, which follows symlinks, so a stash entry whose parent path component is a symlink already present in the worktree (for example, link pointing to .git/hooks) causes the subsequent file write to land outside the work tree. An attacker who can supply a crafted stash can redirect writes to arbitrary locations accessible by the victim user.