Skip to content

Commit 77b7ace

Browse files
committed
Bump version: 84.0.0 → 84.1.0
1 parent e66004c commit 77b7ace

6 files changed

Lines changed: 40 additions & 27 deletions

File tree

‎.bumpversion.cfg‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 84.0.0
2+
current_version = 84.1.0
33
commit = True
44
tag = True
55

‎NEWS.rst‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
v84.1.0
2+
=======
3+
4+
Features
5+
--------
6+
7+
- ``setuptools.archive_util`` now raises the new ``UnsafeMember`` exception when
8+
an archive member would be extracted outside of the extraction directory,
9+
where previously such a member was silently skipped. Aborting makes a
10+
malicious or malformed archive visible to the caller instead of yielding a
11+
quietly incomplete extraction, and matches the behavior of the standard
12+
library's ``tarfile`` extraction filters.
13+
14+
15+
Bugfixes
16+
--------
17+
18+
- ``Wheel.install_as_egg`` no longer creates namespace package directories
19+
outside of the destination egg directory. Entries in a wheel's
20+
``namespace_packages.txt`` were split on ``.`` and passed straight to
21+
``os.path.join``, so an entry that was absolute, drive-qualified, or UNC
22+
discarded the destination and placed an ``__init__.py`` at a path chosen by
23+
the wheel. Namespace entries are now validated as dotted module names on
24+
every platform -- see GHSA-xmj3-9gf7-h52w.
25+
26+
This code path is reached only by the deprecated ``setup_requires``
27+
mechanism when ``setup()`` is invoked outside a PEP 517 frontend; the
28+
setuptools build backend never reaches it.
29+
- ``setuptools.archive_util`` no longer extracts archive members outside of the
30+
requested extraction directory. Both the tar and zip formats specify ``/`` as
31+
the only path separator, but the guard against ``..`` components split member
32+
names on ``/`` alone, so a name such as ``..\escaped.txt`` was treated as a
33+
single component and then resolved as a traversal by the filesystem on
34+
Windows. Member names containing a backslash, a drive letter, or a UNC prefix
35+
are now rejected on every platform, as are members whose resolved destination
36+
falls outside the extraction directory -- see GHSA-grgh-hr87-3jpw.
37+
38+
139
v84.0.0
240
=======
341

‎newsfragments/+ghsa-grgh-hr87-3jpw.bugfix.rst‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎newsfragments/+ghsa-grgh-hr87-3jpw.feature.rst‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎newsfragments/+ghsa-xmj3-9gf7-h52w.bugfix.rst‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ backend-path = ["."]
1010

1111
[project]
1212
name = "setuptools"
13-
version = "84.0.0"
13+
version = "84.1.0"
1414
authors = [
1515
{ name = "Python Packaging Authority", email = "[email protected]" },
1616
]

0 commit comments

Comments
 (0)