Skip to content

Feature request: support new npm allowScripts functionality #2639

Description

@GCHQDeveloper581

Is your feature request related to a problem? Please describe.
For a write-up of the new functionality see https://github.blog/changelog/2026-06-09-upcoming-breaking-changes-for-npm-v12/

Implication is this is necessary for project to work with npm>=12, and in any case is highly desirable to reduce supply chain risks of dependencies.

Describe the solution you'd like
Validate existing dependencies with preinstall/install/postinstall scripts and allow-list as appropriate

Then set allowScripts to off in package.json

Describe alternatives you've considered
Maintaining the status quo incurs avoidable supply-chain risks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions