Description: When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie "--config"). Controlling the Mercurial configuration can modify how and which repository is installed. This vulnerability does not affect users who aren't installing from Mercurial. Broken commit info: Bugfix commit info: https://github.com/pypa/pip/commit/1082eb12622b20d101d2864111dd9a591dd6c2f5 https://github.com/pypa/pip/pull/12306
PR: https://gitee.com/src-anolis-os/python-pip/pulls/11/files