|
| 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 | + |
1 | 39 | v84.0.0 |
2 | 40 | ======= |
3 | 41 |
|
|
0 commit comments