Skip to content

pnpm_8, pnpm_9: mark insecure - #535905

Merged
dotlambda merged 2 commits into
NixOS:masterfrom
dotlambda:pnpm_9
Jun 27, 2026
Merged

dotlambda merged 2 commits into
NixOS:masterfrom
dotlambda:pnpm_9

Conversation

@dotlambda

Copy link
Copy Markdown
Member

see #535579

Things done

@dotlambda dotlambda added 1.severity: security Issues which raise a security issue, or PRs that fix one backport release-26.05 Backport PR automatically labels Jun 27, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested review from Scrumplex and gepbird June 27, 2026 05:20
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment labels Jun 27, 2026
@SuperSandro2000

Copy link
Copy Markdown
Member

On master just 2 packages depend on pnpm_8, maybe we should work on updating their lockfiles to remove version 8 completely.

For 9 the usage is not so small. It is even mentioned in the docs, so that should at least be updated.
We should probably use an override to mark the package insecure but to not break all the applications that are using it via vendoring as broken when backporting this.

@dotlambda

dotlambda commented Jun 27, 2026 •

Copy link
Copy Markdown
Member Author

We should probably use an override to mark the package insecure but to not break all the applications that are using it via vendoring as broken when backporting this.

I'll leave that to their maintainers who haven't reacted to #529285 or #529286 in 3 weeks.

EDIT: I also think this is a good opportunity for figuring out which packages aren't used or maintained anyway and drop them rather then keep wasting time fixing them every so often.

@gepbird

gepbird commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

I also think this is a good opportunity for figuring out which packages aren't used or maintained anyway and drop them rather then keep wasting time fixing them every so often.

Where we got no response from maintainers, I agree with this.

For maintained packages, how are we supposed to fix this?
Pnpm lockfiles are quite big, one of the bigger ones I've seen is 38k lines and 1.3M. Vendoring them (whether we include the new lock file or write it as a patch), would go against #327064.
I've checked some of these packages and usually upstreams just forget about keeping pnpm up to date (or their whole project in which case we may consider dropping them).

If we want to mark them as insecure the only other option right now I see is forking upstream projects.

We should probably use an override to mark the package insecure but to not break all the applications that are using it via vendoring as broken when backporting this.

I'm not sure if I understand it, do you mean that for each package depending on pnpm_8 and pnpm_9, we should override pnpm to remove meta.knownVulnerabilities from them? I'm not sure how it would work the other way around.

@dotlambda

Copy link
Copy Markdown
Member Author

I'm not sure if I understand it, do you mean that for each package depending on pnpm_8 and pnpm_9, we should override pnpm to remove meta.knownVulnerabilities from them?

I think that's an acceptable thing to do for packages that are actually still maintained.

@gepbird gepbird left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's an acceptable thing to do for packages that are actually still maintained.

That sounds reasonable.

When backporting this, how should we decide which packages are maintained and remove meta.knownVulnerabilities from them?
We could purely judge it whether people have made any comments or references about the package in the EOL issues.
But what I'd prefer for fewer stable breakages is delaying the backport for a few days or weeks, so people who actively use those package have time to submit patches.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 27, 2026
@dotlambda

Copy link
Copy Markdown
Member Author

But what I'd prefer for fewer stable breakages is delaying the backport for a few days

That's exactly what I'd suggest.

@dotlambda
dotlambda added this pull request to the merge queue Jun 27, 2026
Merged via the queue into NixOS:master with commit 3af24d1 Jun 27, 2026
31 of 35 checks passed
@dotlambda
dotlambda deleted the pnpm_9 branch June 27, 2026 19:30
@nixpkgs-ci

nixpkgs-ci Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-26.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jun 27, 2026
@vcunat

vcunat commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

Re: stable; see: #536106 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. backport release-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants