Bug 2491085

Summary: binary executable content in node_modules
Product: [Fedora] Fedora Reporter: Gordon Messmer <gordon.messmer>
Component: nodejs-undiciAssignee: Jan Staněk <jstanek>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 45CC: aradchen, jstanek, maxwell, tjuhasz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gordon Messmer 2026-06-20 21:07:25 UTC
The nodejs-packaging-bunder does not strip executable binary files from a node_modules directory before creating a "source" archive for dist-git. This has resulted in a number of Fedora packages being built from archives that include pre-built executables which are not allowed by policy.

In some cases, the prohibited content is not essential to the build process and removing it will not further complicate the RPM build process.

Reproducible: Always

Steps to Reproduce:
1. tar xf *nm-*.tgz
2. find node_modules* -type f -exec file {} + | grep -E 'ELF|Mach-O|PE32|WebAssembly'
3.

Comment 1 Gordon Messmer 2026-06-20 21:14:31 UTC
See https://pagure.io/fesco/issue/3622

Comment 2 Aoife Moloney 2026-08-17 14:56:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.