A flaw was found in Mercurial before 4.9. It was possible to use symlinks and subrepositories to defeat Mercurial's path-checking logic and write files outside a repository.
"https://github.com/pypa/advisory-database/blob/main/vulns/mercurial/PYSEC-2019-188.yaml"