• Meron35@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    6 hours ago

    As someone completely unfamiliar with the JavaScript mess, are these security issues specific to npm the actual repository or npm the package manager?

    If it’s the latter, does using something else like yarn or bun instead help?

    • delcaran@feddit.it
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 hours ago

      It’s not, it’s a problem of every package manager that do not use sources and checksums, like rust and python. Take a look at this article that does a better job then me at explaining the situation.

      • anyhow2503@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        The good news is that there already is a gold standard for supply chain security: the Go programming language.

        Lmfao

    • [object Object]@lemmy.ca
      link
      fedilink
      English
      arrow-up
      7
      ·
      4 hours ago

      I think npm allows installation scripts which do make this worse, as a package can run arbitrary command at install time.

      • anyhow2503@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        Npm has gotten a few config options that prevent this behaviour. We can only hope that they will become the default eventually.