Every CVE Search/ Get API key

CVE-2026-59890

setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+

6.1 MediumFix available

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
Low
Availability
None

Exploit likelihood

0.53%Up 0.3 points since Jul 9, 2026
90%50%10%1%

What each source reports

CVE List Score used 6.1

setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Record
CVE-2026-59890
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Weakness
CWE-176, CWE-697
Updated
2026-11-02
EUVDEUVD-2026-42323 6.1

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Record
EUVD-2026-42323
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-h35f-9h28-mq5c 6.1

setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+

Summary

When building a source distribution (python -m build --sdist / setup.py sdist), setuptools' FileList applies MANIFEST.in directives (exclude, global-exclude, recursive-exclude, prune) by matching a compiled glob against on-disk file names byte-for-byte, with no Unicode normalization. On normalization-preserving filesystems (notably macOS APFS and HFS+), a file written in NFD and a MANIFEST.in rule written in NFC refer to the same file but are byte-distinct, so the exclusion silently fails to match. A file the maintainer intended to exclude is then packed into the .tar.gz and, if published, uploaded to the public, immutable PyPI index.

Details

File names in FileList.files come from os.walk (setuptools/_distutils/filelist.py, _find_all_simple), so on APFS a file written NFD is offered to the matcher in NFD, while the MANIFEST.in pattern carries the author's editor form (typically NFC). The matching path performs no canonicalization:

# setuptools/command/egg_info.py  (FileList.global_exclude)
def global_exclude(self, pattern):
    match = translate_pattern(os.path.join('**', pattern))   # fnmatch.translate -> regex, no NFC/NFD
    return self._remove_files(match.match)                   # byte-level regex over raw os.walk names

A rule written NFC (café = 63 61 66 c3 a9) does not match an on-disk name written NFD (café = 63 61 66 65 cc 81), even though the filesystem treats the two as one file.

A unicodedata.normalize('NFD', ...) helper exists in setuptools/unicode_utils.py (decompose()), but it is never called in the manifest matching path, so neither the pattern nor the walked path is normalized before matching. The only normalization in this area, EggInfoCommand._manifest_normalize, uses filesys_decode (bytes→str decode only, no NFC/NFD) and runs when writing SOURCES.txt, after matching has already occurred.

Impact

MANIFEST.in exclusions are the documented mechanism maintainers use to keep secrets, local configs, and private fixtures out of the published sdist. A non-ASCII excluded file may be published to the public, immutable PyPI index despite the rule — an irreversible disclosure with no visual cue (NFC and NFD forms render identically). Exposure is filesystem-dependent and most relevant on macOS APFS/HFS+, where many maintainers build and publish. Pure-ASCII rules are unaffected.

Proof of concept

With a project containing MANIFEST.in:

global-include *.txt *.json
global-exclude secret_café.txt    # rule saved NFC

and an on-disk file secret_café.txt written in NFD, python -m build --sdist packs the secret file into the resulting .tar.gz, while an ASCII control file excluded by the same directive is correctly dropped — isolating the bypass to the NFC-pattern vs. NFD-name mismatch. Reproduced on macOS APFS with setuptools 82.0.1.

Remediation

Normalize both the walked path and each MANIFEST.in pattern to a single canonical form before matching, in both setuptools/command/egg_info.py (FileList) and the vendored setuptools/_distutils/filelist.py. For an exclusion list, err toward excluding more, and document that MANIFEST.in matching is normalization-insensitive on macOS.

Credit

Reported by Tomas Illuminati. Coordinated via CERT/CC VINCE VU#604762.

Record
GHSA-h35f-9h28-mq5c
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Weakness
CWE-176, CWE-697
Updated
2026-11-02
NVD 6.1

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Record
CVE-2026-59890
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Weakness
CWE-176, CWE-697
Updated
2026-11-02
OSVBELL-CVE-2026-59890 6.1
Record
BELL-CVE-2026-59890
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Updated
2026-11-02
OSV 6.1

setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Record
CVE-2026-59890
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Weakness
CWE-176, CWE-697
Updated
2026-11-02
Show 17 moreShow less
OSVGHSA-h35f-9h28-mq5c 6.1

setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+

Summary

When building a source distribution (python -m build --sdist / setup.py sdist), setuptools' FileList applies MANIFEST.in directives (exclude, global-exclude, recursive-exclude, prune) by matching a compiled glob against on-disk file names byte-for-byte, with no Unicode normalization. On normalization-preserving filesystems (notably macOS APFS and HFS+), a file written in NFD and a MANIFEST.in rule written in NFC refer to the same file but are byte-distinct, so the exclusion silently fails to match. A file the maintainer intended to exclude is then packed into the .tar.gz and, if published, uploaded to the public, immutable PyPI index.

Details

File names in FileList.files come from os.walk (setuptools/_distutils/filelist.py, _find_all_simple), so on APFS a file written NFD is offered to the matcher in NFD, while the MANIFEST.in pattern carries the author's editor form (typically NFC). The matching path performs no canonicalization:

# setuptools/command/egg_info.py  (FileList.global_exclude)
def global_exclude(self, pattern):
    match = translate_pattern(os.path.join('**', pattern))   # fnmatch.translate -> regex, no NFC/NFD
    return self._remove_files(match.match)                   # byte-level regex over raw os.walk names

A rule written NFC (café = 63 61 66 c3 a9) does not match an on-disk name written NFD (café = 63 61 66 65 cc 81), even though the filesystem treats the two as one file.

A unicodedata.normalize('NFD', ...) helper exists in setuptools/unicode_utils.py (decompose()), but it is never called in the manifest matching path, so neither the pattern nor the walked path is normalized before matching. The only normalization in this area, EggInfoCommand._manifest_normalize, uses filesys_decode (bytes→str decode only, no NFC/NFD) and runs when writing SOURCES.txt, after matching has already occurred.

Impact

MANIFEST.in exclusions are the documented mechanism maintainers use to keep secrets, local configs, and private fixtures out of the published sdist. A non-ASCII excluded file may be published to the public, immutable PyPI index despite the rule — an irreversible disclosure with no visual cue (NFC and NFD forms render identically). Exposure is filesystem-dependent and most relevant on macOS APFS/HFS+, where many maintainers build and publish. Pure-ASCII rules are unaffected.

Proof of concept

With a project containing MANIFEST.in:

global-include *.txt *.json
global-exclude secret_café.txt    # rule saved NFC

and an on-disk file secret_café.txt written in NFD, python -m build --sdist packs the secret file into the resulting .tar.gz, while an ASCII control file excluded by the same directive is correctly dropped — isolating the bypass to the NFC-pattern vs. NFD-name mismatch. Reproduced on macOS APFS with setuptools 82.0.1.

Remediation

Normalize both the walked path and each MANIFEST.in pattern to a single canonical form before matching, in both setuptools/command/egg_info.py (FileList) and the vendored setuptools/_distutils/filelist.py. For an exclusion list, err toward excluding more, and document that MANIFEST.in matching is normalization-insensitive on macOS.

Credit

Reported by Tomas Illuminati. Coordinated via CERT/CC VINCE VU#604762.

Record
GHSA-h35f-9h28-mq5c
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Weakness
CWE-176, CWE-697
Updated
2026-11-02
OSVOESA-2026-3191 6.1

python-setuptools security update

Setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages.

Security Fix(es):

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.(CVE-2026-59890)

Record
OESA-2026-3191
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Updated
2026-11-02
OSVPYSEC-2026-3447 6.1

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Record
PYSEC-2026-3447
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Updated
2026-11-02
OSVRHSA-2026:37530 6.1

Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

Record
RHSA-2026:37530
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2026-59890 6.1

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Record
UBUNTU-CVE-2026-59890
CVSS 3.1
6.1 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Updated
2026-11-02
OSVAZL-110366 No score

CVE-2026-59890 affecting package setuptool 1.19.11-23

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Record
AZL-110366
Updated
2026-11-05
OSVAZL-92229 No score

CVE-2026-59890 affecting package python-setuptools for versions less than 69.0.3-6

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Record
AZL-92229
Updated
2026-11-05
OSVBIT-setuptools-2026-59890 No score

setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Record
BIT-setuptools-2026-59890
Updated
2026-11-02
OSVCLSA-2026-1786468462 No score

python-setuptools: Fix of CVE-2026-59890

  • CVE-2026-59890: normalize Unicode form (NFC) on both the MANIFEST.in pattern and the candidate path before matching, so an exclude directive cannot be bypassed by a decomposed (NFD) file name
Record
CLSA-2026-1786468462
Updated
2026-11-02
OSVCLSA-2026-1787028610 No score

TuxCare security update for setuptools (1 CVE)

TuxCare rebuilt setuptools to address 1 CVE. Fixed in 75.8.0.post2+tuxcare.

Record
CLSA-2026-1787028610
Updated
2026-11-02
OSVCLSA-2026-1787559705 No score

TuxCare security update for setuptools (1 CVE)

TuxCare rebuilt setuptools to address 1 CVE. Fixed in 75.3.2.post1+tuxcare.

Record
CLSA-2026-1787559705
Updated
2026-11-02
OSVCLSA-2026-1790749457 No score

TuxCare security update for setuptools (1 CVE)

TuxCare rebuilt setuptools to address 1 CVE. Fixed in 75.0.0.post2+tuxcare.

Record
CLSA-2026-1790749457
Updated
2026-11-02
OSVCLSA-2026-1791273613 No score

TuxCare security update for setuptools (2 CVEs)

TuxCare rebuilt setuptools to address 2 CVEs. Fixed in 65.5.1.post2+tuxcare.

Record
CLSA-2026-1791273613
Updated
2026-11-02
OSVCLSA-2026-1791274242 No score

TuxCare security update for setuptools (2 CVEs)

TuxCare rebuilt setuptools to address 2 CVEs. Fixed in 60.0.0.post3+tuxcare.

Record
CLSA-2026-1791274242
Updated
2026-11-02
OSVCLSA-2026-1791275059 No score

TuxCare security update for setuptools (3 CVEs)

TuxCare rebuilt setuptools to address 3 CVEs. Fixed in 59.8.0.post2+tuxcare.

Record
CLSA-2026-1791275059
Updated
2026-11-02
OSVCLSA-2026-1791366380 No score

TuxCare security update for setuptools (1 CVE)

TuxCare rebuilt setuptools to address 1 CVE. Fixed in 70.3.0.post2+tuxcare.

Record
CLSA-2026-1791366380
Updated
2026-11-02
OSVCLSA-2026-1791366704 No score

TuxCare security update for setuptools (1 CVE)

TuxCare rebuilt setuptools to address 1 CVE. Fixed in 68.0.0.post2+tuxcare.

Record
CLSA-2026-1791366704
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
setuptools
PyPI
before 83.0.0
83.0.0
setuptool
Azure Linux:3
through 1.19.11-23 None known
python-setuptools
Azure Linux:3
before 69.0.3-6
69.0.3-6
py3-setuptools
Alpaquita:stream
65.6.0-r1 up to 83.0.0-r0
83.0.0-r0
py3-setuptools
BellSoft Hardened Containers:stream
65.6.0-r1 up to 83.0.0-r0
83.0.0-r0
setuptools
Bitnami
before 83.0.0
83.0.0
python3-setuptools
TuxCare:AlmaLinux:9.2
before 53.0.0-12.el9.tuxcare.els2
53.0.0-12.el9.tuxcare.els2
python3-setuptools-wheel
TuxCare:AlmaLinux:9.2
before 53.0.0-12.el9.tuxcare.els2
53.0.0-12.el9.tuxcare.els2
setuptools
TuxCare:PyPI
75.8.0 up to 75.8.0.post2+tuxcare, plus listed versions
75.8.0.post1+tuxcare
75.8.0.post2+tuxcare
setuptools
TuxCare:PyPI
75.3.2 up to 75.3.2.post1+tuxcare
75.3.2.post1+tuxcare
Show 21 moreShow less
Affected packages
PackageAffectedFixed
setuptools
TuxCare:PyPI
75.0.0 up to 75.0.0.post2+tuxcare, plus listed versions
75.0.0.post1+tuxcare
75.0.0.post2+tuxcare
setuptools
TuxCare:PyPI
From an advisory covering 2 CVEs
65.5.1 up to 65.5.1.post2+tuxcare, plus listed versions
65.5.1.post1+tuxcare
65.5.1.post2+tuxcare
setuptools
TuxCare:PyPI
From an advisory covering 2 CVEs
60.0.0 up to 60.0.0.post3+tuxcare, plus listed versions
60.0.0.post1+tuxcare60.0.0.post2+tuxcare
60.0.0.post3+tuxcare
setuptools
TuxCare:PyPI
From an advisory covering 3 CVEs
59.8.0 up to 59.8.0.post2+tuxcare, plus listed versions
59.8.0.post1+tuxcare
59.8.0.post2+tuxcare
setuptools
TuxCare:PyPI
70.3.0 up to 70.3.0.post2+tuxcare, plus listed versions
70.3.0.post1+tuxcare
70.3.0.post2+tuxcare
setuptools
TuxCare:PyPI
68.0.0 up to 68.0.0.post2+tuxcare, plus listed versions
68.0.0.post1+tuxcare
68.0.0.post2+tuxcare
setuptools
PyPI
before 83.0.0, plus listed versions
0.6b10.6b20.6b30.6b40.6c1
Show 45 moreShow less
0.6c100.6c110.6c20.6c30.6c40.6c50.6c60.6c70.6c80.6c90.7.20.7.30.7.40.7.50.7.60.7.70.7.80.80.90.9.10.9.20.9.30.9.40.9.50.9.60.9.70.9.81.01.11.1.11.1.21.1.31.1.41.1.51.1.61.1.71.21.31.3.11.3.21.41.4.11.4.210.010.0.1
83.0.0
python-setuptools
openEuler:24.03-LTS-SP4
before 68.0.0-3.oe2403sp4
68.0.0-3.oe2403sp4
python-setuptools
openEuler:20.03-LTS-SP4
before 44.1.1-5.oe2003sp4
44.1.1-5.oe2003sp4
python-setuptools
openEuler:22.03-LTS-SP4
before 59.4.0-7.oe2203sp4
59.4.0-7.oe2203sp4
python-setuptools
openEuler:24.03-LTS-SP1
before 68.0.0-3.oe2403sp1
68.0.0-3.oe2403sp1
python-setuptools
openEuler:24.03-LTS-SP3
before 68.0.0-3.oe2403sp3
68.0.0-3.oe2403sp3
python-setuptools
Red Hat:hummingbird:1
before 0:83.0.0-4.hum1
0:83.0.0-4.hum1
python-setuptools-wheel
Red Hat:hummingbird:1
before 0:83.0.0-4.hum1
0:83.0.0-4.hum1
python3-setuptools
Red Hat:hummingbird:1
before 0:83.0.0-4.hum1
0:83.0.0-4.hum1
setuptools
Ubuntu:20.04:LTS
All versions, plus listed versions
45.2.0-145.2.0-1ubuntu0.145.2.0-1ubuntu0.245.2.0-1ubuntu0.3
None known
setuptools
Ubuntu:22.04:LTS
All versions, plus listed versions
52.0.0-458.2.0-159.6.0-1.259.6.0-1.2ubuntu0.22.04.159.6.0-1.2ubuntu0.22.04.259.6.0-1.2ubuntu0.22.04.3
None known
setuptools
Ubuntu:24.04:LTS
All versions, plus listed versions
68.1.2-268.1.2-2ubuntu168.1.2-2ubuntu1.168.1.2-2ubuntu1.2
None known
setuptools
Ubuntu:25.10
All versions, plus listed versions
75.8.0-178.1.0-1.278.1.1-0.1
None known
setuptools
Ubuntu:26.10
All versions, plus listed versions
78.1.1-0.1build1
None known
setuptools
Ubuntu:26.04:LTS
All versions, plus listed versions
78.1.1-0.178.1.1-0.1build1
None known

History

History
RecordedChangedSources
affected
factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-59890 is a medium vulnerability (CVSS 6.1) in Pypa Setuptools, published July 8, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.53%, the 45th percentile. Fixed in setuptools 83.0.0.

References

Show 13 moreShow less
This page doesn't list everything

Left out here: 573 versions. The JSON record has them.

MoveEnter Open