Node.js question due Brotli bug and eMudhra desaster

I have searched the forum for similar issues

on

This category is for general issues(=something is broken) regarding YunoHost, NOT apps.

on

This form is written in English but feel free to write in French if you’re more comfortable!

on

What type of hardware are you using

Old laptop or computer

What YunoHost version are you running

12.1.41.2

How are you able to access your server

SSH

Describe your issue

Some apps use their own installation of Node.js.

I have hidden those apps behind SSO or installed them on a private domain at the moment until there is an update for Node.js.Because it is probably possible that an unpatched version of Node.js could open a compromised website and thereby take control of the server?

Here is what i found on my YunoHost installation:

mongo-express
/opt/node_n/n/versions/node/20.20.2/bin/node -v
v20.20.2

linkwarden
/opt/node_n/n/versions/node/22.23.2/bin/node -v
v22.23.2

sync-in
/opt/node_n/n/versions/node/22.23.3/bin/node -v
v22.23.3

wikijs
/opt/node_n/n/versions/node/24.21.0/bin/node -v
v24.21.0

code-server
/opt/yunohost/code-server/lib/node -v
v24.21.0

All of them need to be patched to

  • 22.23.4
  • 24.22.1
  • 26.12.1

and Node.js v20 is EOL of mongo-express.. All EOL versions will stay unpatched and vulnerable.

Is hiding those apps behind SSO secure enough? Or should they be better disabled meanwhile?

I also found EOL versions of Node.js here:

/opt/node_n/n/versions/node/16.20.2/bin/node -v
v16.20.2

/usr/bin/node -v
v18.20.4

dpkg --list|grep nodejs
ii nodejs 18.20.4+dfsg-1~deb12u3

yunohost tools update
INFO Die Liste der verfügbaren Pakete wird aktualisiert…
INFO Aktualisierung des App-Katalogs…
SUCCESS Der App-Katalog wurde aktualisiert!
INFO Nichts zu tun. Alles ist bereits auf dem neusten Stand.
apps:
important_yunohost_upgrade: False
last_apps_catalog_update: 0
last_apt_update: 1
pending_migrations:
system:

Share relevant logs or error messages

no logs.

According to my tests on peertube and uptime-kuma, it’s possible to update Node.js by forcing app update with yunohost app upgrade <app> --force.

OK thank you, all those apps were updated right now.

But there are some more installations of nodejs on the server:

/opt/node_n/n/versions/node/16.20.2/bin/node
/opt/node_n/n/versions/node/22.23.2/bin/node
/usr/bin/node

dpkg --list|grep nodejs
ii nodejs 18.20.4+dfsg-1~deb12u3

Those installations seems to be not in use but i am not 100% shure and all of them are vulnerable.

Can those old version be deleted on the YunoHost 12.1.41.2 server?