We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb1b120 + a5f4a9f commit 2c89928Copy full SHA for 2c89928
news/11418.trivial.rst
@@ -0,0 +1 @@
1
+Patch non-exploitable ReDoS vulnerability in wheel_file regex
src/pip/_internal/models/wheel.py
@@ -13,8 +13,8 @@ class Wheel:
13
"""A wheel file"""
14
15
wheel_file_re = re.compile(
16
- r"""^(?P<namever>(?P<name>.+?)-(?P<ver>.*?))
17
- ((-(?P<build>\d[^-]*?))?-(?P<pyver>.+?)-(?P<abi>.+?)-(?P<plat>.+?)
+ r"""^(?P<namever>(?P<name>[^\s-]+?)-(?P<ver>[^\s-]*?))
+ ((-(?P<build>\d[^-]*?))?-(?P<pyver>[^\s-]+?)-(?P<abi>[^\s-]+?)-(?P<plat>[^\s-]+?)
18
\.whl|\.dist-info)$""",
19
re.VERBOSE,
20
)
0 commit comments