Skip to content

pnpm_10_29_2: mark insecure - #535889

Merged
Scrumplex merged 1 commit into
NixOS:masterfrom
dotlambda:pnpm_10_29_2
Jun 27, 2026
Merged

Scrumplex merged 1 commit into
NixOS:masterfrom
dotlambda:pnpm_10_29_2

Conversation

@dotlambda

Copy link
Copy Markdown
Member

fixes #535580

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 03:03
@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

@Scrumplex Scrumplex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes LGTM

@Scrumplex
Scrumplex added this pull request to the merge queue Jun 27, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 27, 2026
Merged via the queue into NixOS:master with commit 36a7519 Jun 27, 2026
31 checks passed
@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
@dotlambda
dotlambda deleted the pnpm_10_29_2 branch June 27, 2026 03:44
@SuperSandro2000

Copy link
Copy Markdown
Member

@Scrumplex

Copy link
Copy Markdown
Member

And what is with all those packages?github.com/search?q=repo%3ANixOS%2Fnixpkgs+pnpm_10_29_2&type=code

See #535580 (comment)

@SuperSandro2000

SuperSandro2000 commented Jun 27, 2026 •

Copy link
Copy Markdown
Member

Why do we need to keep breaking on purpose each others configs and force other maintainers and contributers to leave everything and upgrade things in an absolute hurry?

@SuperSandro2000

Copy link
Copy Markdown
Member

WTF, That issue is 18 hours old!!! That is no timeframe to react to anything. I now need to leave everything and fix stuff and hack something together to not potentially flooded by user complains in the next days.

@Scrumplex

Scrumplex commented Jun 27, 2026 •

Copy link
Copy Markdown
Member

Well the actual CVEs have been around for a month. We just didn't take care of them soon enough in the security tracker.

Either way, I don't think an older issue would have helped here, as the only way people notice these things is by breaking glass.

If pnpm was exclusively used within nixpkgs, I'd also be more lenient on marking packages as insecure. But it is often used in dev shells as well, so it's definitely a good idea to mark it as insecure this way.

@SuperSandro2000

Copy link
Copy Markdown
Member

Many people just don't update for a good while if their config does not evaluate. So if some electron app they are using is marked insecure because of a dependency being marked insecure they just sit on an old version for a while until the maintainer does something.
Also what am I supposed to do if there is no new release for the application? Bump electron-builder manually?

@dotlambda

Copy link
Copy Markdown
Member Author

Also what am I supposed to do if there is no new release for the application? Bump electron-builder manually?

fetchpatch the commit which updates electron-builder
But actually, I think it's fine if packages that depend on pnpm at build time override its vulnerabilities.

@gepbird

gepbird commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

I don't think that build time dependency CVEs should be taken this seriously to break many packages, are end users actually affected?

@azahi

azahi commented Jun 28, 2026

Copy link
Copy Markdown
Member

I don't think that build time dependency CVEs should be taken this seriously to break many packages, are end users actually affected?

Is there a way to determine which package is a build time dependency, and which isn't for this type of builder? I know that the Python builder can technically do that (at least it has a specific attribute for that), not sure if this is applicable to all builders.

Comment thread pkgs/development/tools/pnpm/default.nix Resolved
@jaredmontoya

jaredmontoya commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

At the same time as this package was marked insecure, some lsp servers started depending on it too:
nix-tree output before update:

rs8pq0b8lxk64gpz5hh8cpkv942zb2wx-pnpm-10.34.0                                                                                                                                                                                                                                                     
NAR Size: 16.53 MiB | Closure Size: 240.82 MiB | Added Size: 16.53 MiB                                                                                                                                                                                                                            
Signatures: cache.nixos.org-1                                                                                                                                                                                                                                                                     
Immediate Parents (2): session-desktop-1.18.0, libsession-util-nodejs-0.6.17   
  • system: "x86_64-linux"
  • host os: Linux 6.18.36, NixOS, 26.11 (Zokor), 26.11.20260626.e73de5b
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.34.7
  • nixpkgs: /nix/store/kfs4nfy1705ksbn0gv15ls921cc90h2z-source

nix-tree output on output derivation built with updated flake inputs (refuses to evaluate without

        nixpkgs.config.permittedInsecurePackages = [
          "pnpm-10.34.0"
        ];

):

q2633ak8j9apznwmwhb530zjq2xv69k1-pnpm-10.34.4.drv                                                                                                                                                                                                                                                 
NAR Size: 2.72 KiB | Closure Size: 3.58 MiB | Added Size: 6.25 KiB                                                                                                                                                                                                                                
Signatures: ✗                                                                                                                                                                                                                                                                                     
Immediate Parents (6): tailwindcss-language-server-0.14.29.drv, bash-language-server-5.6.0.drv, bash-language-server-pnpm-deps.drv, svelte-language-server-pnpm-deps.drv, tailwindcss-language-server-pnpm-deps.drv, svelte-language-server-0.18.0.drv (session-desktop gone because broken now)

@gepbird

gepbird commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

@jaredmontoya thanks for letting us know which packages are important to you :)

tailwindcss-language-server is fixed and it has reached 26.11, updating your nixpkgs will fix the insecurity warning: https://nixpk.gs/pr-tracker.html?pr=536291

The rest of the packages you mentioned were not affected by this breakage, they are on pnpm_10 (that is not marked is insecure) and not pnpm_10_29_2:

  • bash-language-server
  • svelte-language-server
  • session-desktop

@jaredmontoya

jaredmontoya commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

@gepbird It seems that pnpm 10.34.0 is also marked as insecure, that's why in my nixpkgs.config.permittedInsecurePackages example I specifically have pnpm-10.34.0, because that is what is refusing to evaluate:

error: Refusing to evaluate package 'pnpm-10.34.0' in /nix/store/w8w3fia26p35xays42lixahnzigsl8dv-source/pkgs/development/tools/pnpm/generic.nix:164 because it is marked as insecure

       Known issues:
        - CVE-2026-55487
        - CVE-2026-55698
        - CVE-2026-55180
        - CVE-2026-55697

       You can install it anyway by allowing this package, using the
       following methods:

       a) To temporarily allow all insecure packages, you can use an environment
          variable for a single invocation of the nix tools:

            $ export NIXPKGS_ALLOW_INSECURE=1

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       b) for `nixos-rebuild` you can add ‘pnpm-10.34.0’ to
          `nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
          like so:

            {
              nixpkgs.config.permittedInsecurePackages = [
                "pnpm-10.34.0"
              ];
            }

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
          ‘pnpm-10.34.0’ to `permittedInsecurePackages` in
          ~/.config/nixpkgs/config.nix, like so:

            {
              permittedInsecurePackages = [
                "pnpm-10.34.0"
              ];
            }

@gepbird

gepbird commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

@gepbird It seems that pnpm 10.34.0 is also marked as insecure, that's why in my nixpkgs.config.permittedInsecurePackages example I specifically have pnpm-10.34.0, because that is what is refusing to evaluate:

error: Refusing to evaluate package 'pnpm-10.34.0' in /nix/store/w8w3fia26p35xays42lixahnzigsl8dv-source/pkgs/development/tools/pnpm/generic.nix:164 because it is marked as insecure

       Known issues:
        - CVE-2026-55487
        - CVE-2026-55698
        - CVE-2026-55180
        - CVE-2026-55697

       You can install it anyway by allowing this package, using the
       following methods:

       a) To temporarily allow all insecure packages, you can use an environment
          variable for a single invocation of the nix tools:

            $ export NIXPKGS_ALLOW_INSECURE=1

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       b) for `nixos-rebuild` you can add ‘pnpm-10.34.0’ to
          `nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
          like so:

            {
              nixpkgs.config.permittedInsecurePackages = [
                "pnpm-10.34.0"
              ];
            }

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
          ‘pnpm-10.34.0’ to `permittedInsecurePackages` in
          ~/.config/nixpkgs/config.nix, like so:

            {
              permittedInsecurePackages = [
                "pnpm-10.34.0"
              ];
            }

The pnpm_10_34_0 warning must be coming from either sharkey or vue-language-server, which one are you using? (or both?). The package maintainer needs to fix it, please open an issue for it (or just ping the maintainers for the package here).

@jaredmontoya

jaredmontoya commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

@gepbird It was vue-language-server. I guess it is being worked on in #537169

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.

pnpm_10_29_2: security issues < 10.33.4

6 participants