← Back to Pull requests

fix: require Node.js 22.23.4, 24.22.1 or 26.12.1 for the eMudhra intermediate CA compromise #451

Closed
unknown closed this pull request without merging on Oct 26, 2026 20:21 UTC
View on GitHub
unknown unknown commented on Oct 25, 2026 17:26 UTC
Author

What & why

Fixes #450

Require the Node.js releases with the updated CA store for the eMudhra intermediate CA compromise ("ca-cert (eMudhra Intermediate CA Compromise) on 26.x, 24.x, 22.x" in the October 2026 security releases). Same range as webdriverio/webdriverio#16211:

"engines": { "node": ">=22.23.4 <23 || >=24.22.1 <25 || >=26.12.1" }

| Place | Change |
|---|---|
| engines.node in backend, service, selenium-devtools, nightwatch-devtools | >=22.19.0 → the range above; minor changeset |
| selenium-devtools-py require_node() | One floor per line (NODE_LINE_FLOORS) instead of one minimum: refuses a release below its line's floor and the odd lines 23 and 25, accepts a line newer than 26. minor fragment in changes/ |
| ci.yml (3 jobs), release.yml | check-latest: true on the .nvmrc setup: a bare 24 took the runner cache (24.21.0) in webdriverio/webdriverio#16211 |
| README, selenium-devtools-py README, CONTRIBUTING (said ≥ 20) | New floors |

require_node() before and after (probe with a mocked node --version):

| Node | 20.20.2 | 22.22.3 | 22.23.4 | 23.99.0 | 24.20.0 | 24.22.1 | 25.9.0 | 26.11.1 | 26.12.1 | 27.0.0 |
|---|---|---|---|---|---|---|---|---|---|---|
| Before | refused | accepted | accepted | accepted | accepted | accepted | accepted | accepted | accepted | accepted |
| After | refused | refused | accepted | refused | refused | accepted | refused | refused | accepted | accepted |

How I tested

| Command | Node 22.23.4 | Node 24.22.1 |
|---|---|---|
| pnpm install --frozen-lockfile (pnpm 10.26.1) | ok, no engine warning | ok, no engine warning |
| pnpm build | ok | ok |
| pnpm test | 2819 passed, 3 skipped | 2819 passed, 3 skipped |
| pnpm lint | ok | ok |

Python 3.14 (CI uses 3.10 and 3.13): PYTHONPATH=src python -m unittest discover -s tests → 765 tests; test_node_runtime 16 passed. One failure, test_screencast … test_finalize_encodes_and_delivers_frame, fails the same way with the main source on this Mac, so it is not from this change. scripts/changes.py check --base origin/main → "src/ changed and a change fragment is present". pnpm changeset status → minor for the 4 packages.

Type of change

  • Bugfix (non-breaking change which fixes an issue)

  • New feature (non-breaking change which adds functionality)

  • Polish (an improvement to an existing feature)

  • Breaking change (existing behavior changes for users)

  • Documentation

  • Internal (build, CI, dependencies, tooling)
  • Packages touched

  • shared (types and contracts)

  • core (framework-agnostic capture/reporting)

  • elements (published element/snapshot API — @wdio/elements)

  • service (WebdriverIO adapter)

  • nightwatch-devtools (Nightwatch adapter)

  • selenium-devtools (Selenium adapter)

  • selenium-devtools-py (Selenium Python adapter)

  • backend (server)

  • app (UI)

  • script (page-injected runtime)

  • trace (Trace mode)
  • Notes for reviewers

  • Why not in core: only package.json metadata changes in the adapters; the one runtime check is the Python adapter's, because a Python user has no engines to read.

  • The Python check is now stricter than the pinned backend (BACKEND_NPM_VERSION = "2.0.0", engines >=22.19.0) until the next backend release and its pin bump.

  • @wdio/devtools-app, @wdio/elements and @wdio/devtools-script have no engines; adding one is a new constraint, so it is not part of this PR.

  • engines only warns, except with Yarn 1 or npm --engine-strict. WebdriverIO shipped the same range as a minor version.
  • Screenshots / recordings

    Not a UI change.

    Diff: 473 lines (+354 / -119) across 5 files Reviewer: plum117 Review duration: 1614m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 473 lines diff across 5 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.369
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #451"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.7% (MEDIUM) · Higher = larger blast radius
    45.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.1% · Safe to merge
    18.1%