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
latest versions of undici-types@6 have been published without provenance, after it was published with provenance before. This loss of provenance is causing an error when using pnpms new trustPolicy no-downgrade option.
ERR_PNPM_TRUST_DOWNGRADE High-risk trust downgrade for "undici-types@6.21.0" (possible package takeover)
This error happened while installing the dependencies of @types/node@22.19.0
(happened when running pnpm dedupe)
sidenote: undici@6.22.0 exists, but no matching undici-types version.
Maintaining this level of automation requires a significant amount of work that a few trusted individuals must do. Considering that we release very few versions of v6, the chances are that the automation will be broken by the time we need it, or it will not be particularly trustworthy.
The fact that pnpm shipped this change publicly and started pushing for it is their choice. This was not a requirement when the last release of v6 was made.
If so how/why were you able to publish 6.13.0–6.19.2 with provenance? What is the difference? All you should do is just to publish the same content as 6.21.0 following the workflow in 6.13.0–6.19.2 or 7.1.0+.
Activity
metcoder95 commentedon Nov 13, 2025
v6 is not longer under active maintenance, please consider to move to v7.
cc: @mcollina
dominikg commentedon Nov 13, 2025
it's a dependency of
@types/node@22so moving to 7 isn't an option i think.Also would like to understand how undici v6 isn't actively maintained if its still used by node22 and the last release was a month ago.
pnpm 10.22 added an option to ignore loss of provenance for specific versions so it can be worked around by users now.
I hope you still look into how this occured and restore provenance in future releases. If the signature isn't reliable, then it loses it's value.
mcollina commentedon Nov 13, 2025
v6 is in maintenance.
Maintaining this level of automation requires a significant amount of work that a few trusted individuals must do. Considering that we release very few versions of v6, the chances are that the automation will be broken by the time we need it, or it will not be particularly trustworthy.
The fact that pnpm shipped this change publicly and started pushing for it is their choice. This was not a requirement when the last release of v6 was made.
tats-u commentedon Dec 5, 2025
If so how/why were you able to publish 6.13.0–6.19.2 with provenance? What is the difference? All you should do is just to publish the same content as 6.21.0 following the workflow in 6.13.0–6.19.2 or 7.1.0+.
chore: mark undici-types@6.21.0 as trusted
mcollina commentedon Jan 25, 2026
The reason is that the automation got broken by npm, and I had to redo it in the v6 line.
karlhorky commentedon Jan 26, 2026
Nice, looks like
undici-types@6.23.0has provenance again 👍