pnpm 11.29 Closes the Gap Between Frozen and Trusted
pnpm's November 22 security release tightens lockfile source checks, exposing an important distinction between reproducible installs and trusted dependencies.
A committed lockfile answers an essential question: which dependency graph should this build install? It leaves another question open: is that graph acceptable under the rules of the machine installing it?
Those questions often collapse into one in CI configuration. A pull request changes the lockfile, review passes, and a frozen install reconstructs the result. That workflow is useful, but its security depends on what the installer validates while reading the graph.
The pnpm release published on November 22, 2026 makes that distinction concrete. For teams running JavaScript services, monorepos, or coding agents that routinely update dependencies, the interesting change is enforcement at the point where a saved resolution becomes an installation.
What Happened
pnpm 11.29.0, released on November 22, 2026, includes several security changes. Its release notes say both ordinary and frozen installs now apply blockExoticSubdeps to lockfile entries. Previously, a lockfile could contain Git or tarball URL subdependencies that were installed despite that setting being enabled.
The release also rejects unauthorized local filesystem dependencies declared by non-local packages, using ERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED. Relative files inside the package's own archive and local dependencies explicitly configured by the workspace remain supported. Another fix stops loading otp from configuration files: repository configuration could previously combine an environment-variable reference with a chosen registry and send the value in an OTP header. These are documented fixes; the announcement does not establish that any particular repository was exploited.
My focus here is the lockfile change. It addresses a familiar architectural problem: a policy enforced when creating an artifact can lose its effect when another path consumes that artifact.
Why It Matters
Dependency review usually emphasizes names, versions, and vulnerability findings. Source locations deserve the same attention. A package coming from the organization's registry, an arbitrary Git repository, or a local directory participates in different trust relationships, even when the application imports it under the same name.
Consider an ordinary development workflow. An engineer resolves dependencies locally, commits the result, and opens a pull request. CI then installs from that saved graph. The engineer's environment may have different configuration, credentials, or package-manager behavior from CI. A contributor could also edit the graph directly. The consumer therefore needs its own acceptance decision.
Reproducibility cannot supply that decision by itself. Repeating a resolution faithfully says nothing about whether its source was authorized. An integrity value can identify a particular archive while leaving the choice of archive unexamined. Likewise, an exact Git commit narrows the bytes being requested without explaining why that repository belongs in the build.
This matters for coding agents because dependency edits are a routine part of their work. An agent may add a library to resolve a missing import, select a fork to work around a bug, or regenerate a large lockfile while changing one manifest. Those actions increase the value of machine-enforced source rules. A reviewer should be able to concentrate on the proposed dependency rather than reconstructing every transitive source decision manually.
The same reasoning applies to human-authored changes. The control belongs in the build path because every contributor reaches that path.
How It Works
The dependency-resolution reference describes blockExoticSubdeps as restricting transitive sources, with exceptions for trusted sources. It distinguishes direct dependencies from subdependencies and preserves workspace-authorized local rewrites. The important scope is transitive resolution; this setting is not a universal ban on every Git URL in a project.
The same reference documents trustLockfile. Enabling it skips the supply-chain verification pass that reapplies release-age, trust, and source policies to the loaded graph. For a workflow accepting outside contributions, that switch changes an assumption worth making explicit: the lockfile itself becomes part of the trusted input.
There are consequently three separate review questions. Does the graph match the manifests? Does it reproduce the intended versions? Does every resolution satisfy the installer's source policy? Teams should expect their tooling to address all three, rather than treating a successful answer to the first as evidence for the others.
The install documentation defines frozen installation around refusing lockfile generation or updates and failing when an update is necessary. It also documents --no-trust-lockfile as the way to request verification even when configuration otherwise trusts the lockfile. These switches govern different behavior, so they make sense together.
Configuration ownership is another part of the design. pnpm's settings documentation places project settings in pnpm-workspace.yaml and describes restrictions on repository-controlled values that could disclose environment secrets. A practical implication follows: a policy committed beside the code remains editable by whoever can propose changes to that code. Organizations needing an invariant across pull requests must also protect the CI step or policy source enforcing it.
Example
Imagine a TypeScript API with a dependency-update bot and an agent that fixes failing builds. The team wants registry-based transitive dependencies and deliberate review of exceptions. The following is an illustrative configuration, not a reproduction of a published exploit:
# pnpm-workspace.yaml
packages:
- packages/*
blockExoticSubdeps: true
trustLockfile: falseFor the upgrade, provision pnpm 11.29.0 through the team's existing toolchain mechanism, then run the existing build from a clean checkout. Make the relevant install behavior explicit:
pnpm --version
pnpm install --frozen-lockfile --no-trust-lockfileThis command sequence is a suggested verification procedure. It has not been executed against a sample application here. Printing the version gives the build log a useful fact: which installer interpreted the policy and graph? Without that, a passing job can leave ambiguity about whether the intended upgrade actually reached the runner.
Now suppose a dependency update introduces a transitive reference to an arbitrary external tarball. The desired result is an install failure before the service build proceeds. The next action should be to identify the parent package, its requested source, and whether the exception is intentional. Regenerating the lockfile without examining the source would answer the wrong question.
If the dependency genuinely requires a fork, choose where that decision should live. An explicitly reviewed direct dependency, an internally published package, or a workspace-controlled override may be appropriate depending on the project. The important property is ownership: the application team should authorize the source rather than inherit that authority silently from a remote package.
For a meaningful rollout check, keep a tiny disposable fixture outside the production repository. Give one registry package a prohibited transitive source and confirm that a frozen install rejects the saved resolution. Keep a separate valid workspace-link example and confirm that it still installs. This tests both rejection and legitimate development behavior; a test that merely prints configuration does neither.
Also review the job's credential exposure. The authentication documentation explains URL-scoped tokens and user-level authentication files, and restricts executable token helpers to user-level configuration. Dependency installation and package publication usually need different authority. A build that only downloads dependencies should not inherit publishing credentials merely because another job requires them.
My Take
The strongest lesson from this release is that stored build decisions need validation at consumption time. Teams already apply that principle elsewhere: a deployment service checks an image reference, and an API checks authorization even when a caller presents a syntactically valid request. A dependency installer has an equivalent responsibility when reading a resolution graph.
I would prioritize this update for repositories that accept generated lockfile changes, external contributions, or frequent dependency automation. I would then inspect the surrounding workflow before adding more policy settings. Who can edit the install command? Which configuration wins? Are policy failures visible to the person reviewing the dependency update? Can an automated repair step weaken the same rule that caused its failure?
That last question is especially relevant to agents. Giving an agent responsibility for making CI green creates pressure to remove obstacles. The useful constraint is a protected acceptance condition, with enough error context for the agent to propose a legitimate repair. Otherwise, a source-policy failure can turn into a configuration change that quietly broadens permitted sources.
There are limits. An approved registry can still serve a malicious release. An allowed dependency can still execute harmful application code. Source restrictions reduce one class of unwanted graph behavior; they do not decide whether a library is trustworthy or whether a build should receive sensitive credentials.
There is also an operational cost to stronger validation. Existing dependencies may fail assumptions that older installs tolerated. Treat those failures as migration findings. Record why each exception exists, who approved it, and what would allow its removal. Broadly trusting the lockfile to get an upgrade through CI throws away the evidence that made the upgrade useful.
Conclusion
pnpm's November 22 release puts a concrete security boundary around a common CI shortcut: consuming a committed graph without fully enforcing the installer's source rules.
For engineering teams, the practical response is straightforward. Upgrade deliberately, keep frozen installation, verify the loaded lockfile, and investigate rejected sources. The resulting build should reproduce the dependency graph the team intended and reject the parts it did not authorize.