Skip to content

fix(arborist): enforce allowScripts for file:/link: dep scripts#9525

Merged
owlstronaut merged 1 commit into
npm:latestfrom
JamieMagee:fix/9498-allow-scripts-file-link-gate
Jun 9, 2026
Merged

fix(arborist): enforce allowScripts for file:/link: dep scripts#9525
owlstronaut merged 1 commit into
npm:latestfrom
JamieMagee:fix/9498-allow-scripts-file-link-gate

Conversation

@JamieMagee

Copy link
Copy Markdown
Contributor

Local file:/link: deps bypassed the allowScripts gate, so their install scripts ran for every policy state (true, false, and absent). The gate now matches the link target, so false blocks silently and an absent entry blocks with a warning, per the RFC. Workspaces stay owner-managed.

References

Fixes #9498

@JamieMagee JamieMagee requested review from a team as code owners June 9, 2026 21:01
@owlstronaut owlstronaut merged commit 34dbdf5 into npm:latest Jun 9, 2026
16 checks passed
@ljharb

ljharb commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Hopefully this is backported to v11; it seems like a clear bugfix, not a break.

@JamieMagee JamieMagee deleted the fix/9498-allow-scripts-file-link-gate branch June 9, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] v12: allowScripts doesn't actually block scripts for file:/link: deps

3 participants