Skip to content

Bump Node.js to 22.23.4 in 4.10.6 - #9674

Merged
Desvelao merged 2 commits into
4.10.6from
fix/1757-node-22.23.4
Nov 27, 2026
Merged

Desvelao merged 2 commits into
4.10.6from
fix/1757-node-22.23.4

Conversation

@yenienserrano

@yenienserrano yenienserrano commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Description

Backport of #9592 to 4.10.6. Aligns the plugins with the Node.js 22.23.4 bump of wazuh-dashboard 4.10.6.

  • .nvmrc: 18.19.0 → 22.23.4.
  • eslint-plugin-filenames-simple from ^0.8.0 to ^0.9.0 in plugins/main, plugins/wazuh-core and plugins/wazuh-check-updates (yarn.lock of each plugin updated). Version 0.8.0 declares an engines range that excludes Node.js 22, so yarn fails to install the dependencies.
  • CHANGELOG.md: entry under 4.10.6.

Differences with #9592:

No runtime code changes.

Companion PR: wazuh/wazuh-dashboard#1776.

Issues Resolved

Related to wazuh/wazuh-dashboard#1757

Evidence

Node.js 22.23.4, wazuh-dashboard on the companion branch fix/1757-node-22.23.4.

yarn install --frozen-lockfile with Node.js 22.23.4 finishes without the engines error:

main exit=0
wazuh-core exit=0
wazuh-check-updates exit=0

yarn test:jest:

Plugin Result
plugins/wazuh-core 10/10 suites, 292/292 tests pass
plugins/wazuh-check-updates 32/32 tests pass; 3 suites fail to load
plugins/main 1131 pass, 8 fail, 47 skipped; 5 suites fail to load

None of the failures come from this change:

  • The 8 failing tests are all DateFormatter (server/lib/generate-alerts/helpers/date-formatter.test.js). They depend on the local timezone (run on UTC-3). With TZ=UTC they pass: Tests: 59 passed, 59 total.
  • The suites that fail to load stop with Cannot find module '@hapi/hoek/assert' from '../../node_modules/@hapi/validate/lib/index.js'. Same error with Node.js 18.19.0. It comes from the @hapi/inert 7.1.2 bump in the platform (wazuh/wazuh-dashboard#12967), which added the @hapi/hoek mapping only to the platform Jest config.

Packages

Packages from https://github.com/wazuh/wazuh-dashboard/actions/runs/44369361923 (RPM) and https://github.com/wazuh/wazuh-dashboard/actions/runs/44369354715 (DEB), tested in x86_64 containers with systemd (AlmaLinux 9 for the RPM, Ubuntu 22.04 for the DEB) on top of a Wazuh 4.10.5 all-in-one installed with wazuh-install.sh -a.

Check RPM wazuh-dashboard-4.10.6-0.x86_64 DEB wazuh-dashboard 4.10.6-0 amd64
Upgrade from 4.10.5 (dnf localinstall / apt-get install) ✅ ✅
/usr/share/wazuh-dashboard/node/bin/node --version v18.19.0 → v22.23.4 v18.19.0 → v22.23.4
Node.js flags include --max-semi-space-size=64 ✅ ✅
opensearch_dashboards.yml, opensearch_dashboards.keystore, wazuh.yml unchanged (md5) ✅ ✅
Keystore created by 4.10.5 loads (opensearch.username, opensearch.password) ✅ ✅
Session cookie created on 4.10.5 still valid ✅ ✅
Wazuh API token created on 4.10.5 (/api/request → GET /agents) 200 200
Saved objects created on 4.10.5 (dashboard, saved query) ✅ ✅
Advanced settings changed on 4.10.5 (dateFormat:dow, timepicker:timeDefaults) ✅ ✅
/api/status overall green green
Downgrade to 4.10.5 and upgrade again ✅ ✅

Every app was loaded with headless Chrome (49 pages): all the Wazuh apps (Overview, Configuration Assessment, Malware Detection, FIM, Threat Hunting, Vulnerability Detection, MITRE ATT&CK, PCI DSS, GDPR, HIPAA, NIST 800-53, TSC, Docker, AWS, Google Cloud, GitHub, Office 365, Endpoints, Groups, Rules, Decoders, CDB lists, Status, Cluster, Statistics, Logs, Settings, Dev Tools, Ruleset Test, Security, Sample Data, Reporting, Server APIs, App Settings, About) and the platform ones (Discover, Dashboards and the dashboard created on 4.10.5, Visualize, Console, Index patterns, Saved objects, Advanced settings, Security users and roles, Alerting, Notifications, Reporting, Index Management). The check looks for danger toasts and callouts, error prompts, "app not found", uncaught JS exceptions and HTTP 5xx responses.

  • 4.10.5 (baseline, RPM): 49/49 clean.
  • 4.10.6: 49/49 clean on the second run (RPM).
  • The first load of the Overview right after the upgrade threw TypeError: Cannot read properties of undefined (reading 'id') at WzMenu.loadIndexPatternsList once on the RPM and once on the DEB. The page rendered normally. It did not happen again in 8 more loads, including first loads after a restart on both 4.10.5 and 4.10.6. This frontend code is the same as in 4.10.5 (list[0].id when the index pattern list comes back empty), so it looks like an existing race on the first load and not a Node.js regression.

Test

  1. Run nvm use in the repository (Node.js 22.23.4) and install the dependencies of plugins/main, plugins/wazuh-core and plugins/wazuh-check-updates with yarn. The install must finish without the eslint-plugin-filenames-simple engines error.
  2. Run yarn test:jest in each plugin, with TZ=UTC.

Check List

  • All tests pass
    • yarn test:jest (failures listed above happen without this change too)
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

🤖 Generated with Claude Code

yenienserrano and others added 2 commits November 18, 2026 15:11
Align with the Node.js version used by wazuh-dashboard 4.14.11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
(cherry picked from commit 736fffc)
…s 22

eslint-plugin-filenames-simple 0.8.0 declares engines.node
"^14.17.0 || ^16.0.0 || ^18.0.0", so yarn install fails on Node.js
22.23.4. 0.9.0 declares ">=14.17.0" and is the version 5.0.0 uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
(cherry picked from commit 3c8d888)
@yenienserrano

yenienserrano commented Nov 18, 2026 •

Copy link
Copy Markdown
Member Author

Package builds launched with (4.x) Build Wazuh dashboard package with plugins (on demand) from fix/1757-node-22.23.4:

Package Run Result Package
DEB amd64 https://github.com/wazuh/wazuh-dashboard/actions/runs/44369354715 ✅ success wazuh-dashboard_4.10.6-0_amd64_1a12154.deb
RPM x86_64 https://github.com/wazuh/wazuh-dashboard/actions/runs/44369361923 ✅ success wazuh-dashboard_4.10.6-0_x86_64_1a12154.rpm

Both builds download and bundle node-v22.23.4-linux-x64.tar.gz.

Inputs: reference_wazuh_plugins=fix/1757-node-22.23.4 (#9674), reference_security_plugins=4.10.6, revision=0, is_stage=false, checksum=false.

@yenienserrano

yenienserrano commented Nov 18, 2026 •

Copy link
Copy Markdown
Member Author

Screenshots from the package test described in the PR description (RPM, AlmaLinux 9 x86_64, on top of a Wazuh 4.10.5 all-in-one), taken by the headless Chrome check of every app. The 4.10.6 column is after upgrading the dashboard from 4.10.5; the dashboard row is the one created on 4.10.5 before the upgrade.

Screenshots: 4.10.5 (Node.js 18.19.0) vs 4.10.6 (Node.js 22.23.4)
Screen 4.10.5 · Node.js 18.19.0 4.10.6 · Node.js 22.23.4
Overview 4.10.5 Overview 4.10.6 Overview
Threat Hunting 4.10.5 Threat Hunting 4.10.6 Threat Hunting
Vulnerability Detection 4.10.5 Vulnerability Detection 4.10.6 Vulnerability Detection
Endpoints 4.10.5 Endpoints 4.10.6 Endpoints
Rules 4.10.5 Rules 4.10.6 Rules
Server status 4.10.5 Server status 4.10.6 Server status
Discover 4.10.5 Discover 4.10.6 Discover
Dashboard created on 4.10.5 4.10.5 Dashboard created on 4.10.5 4.10.6 Dashboard created on 4.10.5
Dev Tools console 4.10.5 Dev Tools console 4.10.6 Dev Tools console
Security, internal users 4.10.5 Security, internal users 4.10.6 Security, internal users
Alerting 4.10.5 Alerting 4.10.6 Alerting
App Settings 4.10.5 App Settings 4.10.6 App Settings

@Ripdiegozz Ripdiegozz 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.

Approve: the plugins install on Node.js 22.23.4, and the package built with this branch upgrades fine from 4.10.5. Checks in wazuh/wazuh-dashboard#1776 (comment)

@Desvelao
Desvelao merged commit 98008f4 into 4.10.6 Nov 27, 2026
2 checks passed
@Desvelao
Desvelao deleted the fix/1757-node-22.23.4 branch November 27, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backport the Node.js 22.23.4 upgrade to 4.10.6

3 participants