Lockfiles improve repeatability, not eternal safety

A lockfile guarantees everybody builds the same thing. It does not guarantee the thing is good.

It freezes the versions you resolved on the day you resolved them, including the flaws they contained. Teams sometimes treat a lockfile as a security control, when it is a consistency control with a security side effect that cuts both ways.

More on Software supply chain