Skip to content

Commit a lockfile to protect against supply chain attacks #2541

@amotarao

Description

@amotarao

Package

repository root

Description

This repository does not commit a lockfile. The recent axios supply chain compromise (axios/axios#10604) highlighted a concrete risk: contributors running npm install to set up their local environment may have inadvertently installed a malicious version of a dependency, since web-api depends on axios: "^1.13.5" which includes the compromised 1.14.1.

Committing a package-lock.json would pin all transitive dependencies to known-good versions, making this kind of attack much harder to go undetected.

Alternatives Considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency filesecurity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions