Skip to content

EDM-6483: Collective CVE remediation (November 2026) - #890

Draft
amir-yogev-gh wants to merge 1 commit into
flightctl:mainfrom
amir-yogev-gh:cve-fix/EDM-6483
Draft

amir-yogev-gh wants to merge 1 commit into
flightctl:mainfrom
amir-yogev-gh:cve-fix/EDM-6483

Conversation

@amir-yogev-gh

Copy link
Copy Markdown
Collaborator

Collective CVE Remediation (November 2026)

Summary

Bundles compatible dependency security updates for main, including React 17 → 18.3.1, React Router 5-compat/6 → 7.18.5, i18next 21 → 25.6.2, react-i18next 11 → 16.5.8, react-redux 7.2.2 → 9.2.0, OpenShift Console dynamic plugin SDK 4.19 → 4.23.0, Vitest 3 → 5.1.0, and Go module updates in proxy/ (golang.org/x/{crypto,net,sys,text}). Reduces npm audit findings from 36 to 22.

Vulnerabilities Addressed

CVE ID Severity Package Old Version New Version
CVE-2026-118764 Moderate (CVSS 5.9) minimatch (transitive) 10.2.5 / 10.2.6 11.0.9 (override)

Resolved npm advisories: @openshift-console/dynamic-plugin-sdk, @vitest/mocker, ajv, body-parser, fast-uri, glob, i18next-cli, minimatch, qs, react-router, react-router-dom, react-router-dom-v5-compat, rimraf, serialize-javascript.

Related Jira tickets: EDM-6491, EDM-6492, EDM-6493, EDM-6494, EDM-6495, EDM-6496, EDM-6497, EDM-6498.

Strategy Justification — CVE-2026-118764 (minimatch)

# Strategy Result Details
1 Direct update N/A minimatch is a transitive dependency
2 Transitive update Skipped Introducer updates alone do not guarantee minimatch >= 11.0.1
3 Override/pin Success Top-level npm override minimatch: 11.0.9; lockfile resolves all copies to 11.0.9

Downstream Verification

Item Status Evidence
Build scope verified 4 Containerfile UI build stages (packaging/images/{el9,el10}/Containerfile{,.ocp}); npm ci + npm run build/build:ocp; final images ship only apps/standalone/dist
Fixed release verified minimatch 11.0.9 published on npm; GHSA-g3hv-75wg-m249 confirms >= 11.0.1 fixed
Runtime verified engines node: 20 or >=22; Red Hat ubi9/ubi10 nodejs-22-minimal builder images satisfy requirements

Validation

  • Candidate: local worktree /tmp/flightctl-cve/main (commit on branch cve-fix/EDM-6483)
  • Dependencies: minimatch resolves to 11.0.9; no copy in vulnerable range 7.0.0–11.0.0
  • CVE resolution: npm audit no longer reports minimatch (GHSA-g3hv-75wg-m249)
  • Tests: PASS — typecheck + 13 test files, 166 tests
  • Lint/build: npm run lint and npm run build pass

Rollback

git revert <commit-sha>

@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true


type Api = 'flightctl' | 'imagebuilder' | 'alerts' | 'catalog' | 'vulnerability';

const getCSRFToken = (): string => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: This change would need to be well tested in the OCP console.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs testing, but the equivalent should be ts import { getCSRFToken } from '@openshift-console/dynamic-plugin-sdk-internal';

} from 'react-router-dom-v5-compat';
import { getUser } from '@openshift-console/dynamic-plugin-sdk/lib/app/core/reducers';
} from 'react-router-dom';
import { getUser } from '@openshift-console/dynamic-plugin-sdk/lib/app/core/reducers/coreSelectors';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: same, we must ensure user information functionality remains the same.

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.

2 participants