You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens when users opt-in for the trustPolicy: no-downgrade option.
Of course, we could use pnpm trustPolicyExclude: ['encodeurl@2.0.2'] option to mitigate this problem.
What to do about it?
I'll let you decide what's best for this project, but my suggestion to avoid your consumers to get this pnpm warning is to publish v1.x and v2.x patches with Trusted Publishing too.
Among the 200m+ weekly downloads of v1/v2 for this package, many users will likely use pnpm with its strictest security options like me, will encounter this error and will need to configure an exclusion after taking time to understand the problem and assessing if it's a legit publish downgrade or a possible supply chain attack. Moving every major versions to Trusted Publishing is not strictly required, but would save time for many of us.
How this was caugnt?
Our CI uses sfw + pnpm with a strict security config to scan for downgrades and risky transitive dependencies in our dependency graph, for newly publishes that match our semver ranges.
That's unfortunate but I don't think it's super urgent. I would have hoped a policy like this would be based on semver. I'll look at extracting something into a common action helper across all the repos, so it might take a little while. Then I need to port it into each of the branches and do a new release on each branch.
Activity
chore(ci): exclude encodeurl@2.0.2 from the site template trust policy (
UlisesGascon commentedon Nov 12, 2026
Having something like expressjs/body-parser#768 might help to cover this gap
blakeembrey commentedon Nov 12, 2026
That's unfortunate but I don't think it's super urgent. I would have hoped a policy like this would be based on semver. I'll look at extracting something into a common action helper across all the repos, so it might take a little while. Then I need to port it into each of the branches and do a new release on each branch.
blakeembrey commentedon Nov 12, 2026
Backported into both release branches and re-released, this should be fixed now.
chore(ci): remove the encodeurl@2.0.2 exclude from the site template …