Versions mentioned in the description apply to the upstream
Remediation section below for
Debian:9 relevant versions.
Mercurial prior to version 4.3 is vulnerable to a missing symlink check that can malicious repositories to modify files outside the repository
mercurial to version 4.0-1+deb9u1 or higher.