Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 334D6D3EE92 for ; Thu, 22 Jan 2026 16:52:51 +0000 (UTC) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.41830.1769100762786874700 for ; Thu, 22 Jan 2026 08:52:43 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=YNb2fHK4; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.50, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-47ee4539adfso12648375e9.3 for ; Thu, 22 Jan 2026 08:52:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1769100761; x=1769705561; darn=lists.openembedded.org; h=mime-version:user-agent:references:in-reply-to:date:cc:to:from :subject:message-id:from:to:cc:subject:date:message-id:reply-to; bh=FXazJqkHlnXeFT66i56/rsq3qXNqDSnKD9Dnwk+yhMU=; b=YNb2fHK4Ea7mKGK9echGR2gxLWTi/CBM/q+8qtKrji5y7lDiE3eLed1H2Yx4v5Y9tA D7ADPsbhLf08y3iTRwR7r1JtgTYO/FLBhBg4OO2RY1Y0pq8B/q6XpABNIhspzoHBowIS Y9vq05k1WCB5BVWttweU2YICs1aslwoYAyBZg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769100761; x=1769705561; h=mime-version:user-agent:references:in-reply-to:date:cc:to:from :subject:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=FXazJqkHlnXeFT66i56/rsq3qXNqDSnKD9Dnwk+yhMU=; b=U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5b1f17b1804b1-4804c9d116emr3813135e9.34.1769100761133; Thu, 22 Jan 2026 08:52:41 -0800 (PST) Received: from ?IPv6:2001:8b0:aba:5f3c:8ce7:5a61:b9e8:a245? ([2001:8b0:aba:5f3c:8ce7:5a61:b9e8:a245]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48047028928sm120882535e9.2.2026.01.22.08.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jan 2026 08:52:40 -0800 (PST) Message-ID: <95d5cdea6bc5458c5a72842e81a62c14e35a0563.camel@linuxfoundation.org> Subject: Re: [bitbake-devel] [PATCH v3] fetch2/npm/npmsw: Disable npm and npmsw fetchers due to security concerns From: Richard Purdie To: Stefan Herbrechtsmeier Cc: bitbake-devel@lists.openembedded.org, rybczynska@gmail.com Date: Thu, 22 Jan 2026 16:52:39 +0000 In-Reply-To: <3f3a900e-f2fb-4596-9274-d2129799e498@weidmueller.com> References: <20260122080922.1695912-1-richard.purdie@linuxfoundation.org> <3f3a900e-f2fb-4596-9274-d2129799e498@weidmueller.com> Content-Type: multipart/alternative; boundary="=-3sArPqAJovR6LfwnnZdJ" User-Agent: Evolution 3.56.0-1ubuntu0.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 22 Jan 2026 16:52:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/18852 --=-3sArPqAJovR6LfwnnZdJ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2026-01-22 at 15:53 +0100, Stefan Herbrechtsmeier wrote: > =20 > Am 22.01.2026 um 14:01 schrieb Marta Rybczynska via > lists.openembedded.org: > > On Thu, Jan 22, 2026 at 9:09=E2=80=AFAM Richard Purdie via > > lists.openembedded.org > > wrote: > > =20 > > > diff --git a/lib/bb/fetch2/npmsw.py b/lib/bb/fetch2/npmsw.py > > > index 2f9599ee9e2..322c7b331e5 100644 > > > --- a/lib/bb/fetch2/npmsw.py > > > +++ b/lib/bb/fetch2/npmsw.py > > > @@ -64,6 +64,10 @@ class NpmShrinkWrap(FetchMethod): > > > =C2=A0 =C2=A0 =C2=A0def supports(self, ud, d): > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"""Check if a given url can be fetc= hed with npmsw""" > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return ud.type in ["npmsw"] > > >=20 > > =20 > > =20 > > =20 > =20 > You forgot to remove or comment out this line. Thanks, I will send a new version and retest. Cheers, Richard --=-3sArPqAJovR6LfwnnZdJ Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Thu, 2026-01-22 at 15:53 +0100, Stefan Herbrechtsmeier wrot= e:

Am 22.01.2026 um 14:01 sc= hrieb Marta Rybczynska via lists.openembedded.org:

On Thu, Jan 22, 2026 at 9:= 09=E2=80=AFAM Richard Purdie via lists.openembedded.org <richard.purdie=3Dlinuxfoundation.org@lists.openemb= edded.org> wrote:

diff --git a/lib/bb/fetch2/npmsw.p= y b/lib/bb/fetch2/npmsw.py
index 2f9599ee9e2..322c7b331e5 100644
--= - a/lib/bb/fetch2/npmsw.py
+++ b/lib/bb/fetch2/npmsw.py
@@ -64,6 +6= 4,10 @@ class NpmShrinkWrap(FetchMethod):
     def suppo= rts(self, ud, d):
         """Check if a given= url can be fetched with npmsw"""
         ret= urn ud.type in ["npmsw"]

You forgot to remove or comment out this lin= e.


Thanks, I will send a new versio= n and retest.

Cheers,

Ric= hard

--=-3sArPqAJovR6LfwnnZdJ--