Skip to content

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

Merged
amir-yogev-gh merged 1 commit into
flightctl:release-1.4from
amir-yogev-gh:cve-fix/EDM-6483-release-1.4
Nov 19, 2026
Merged

amir-yogev-gh merged 1 commit into
flightctl:release-1.4from
amir-yogev-gh:cve-fix/EDM-6483-release-1.4

Conversation

@amir-yogev-gh

Copy link
Copy Markdown
Collaborator

Collective CVE Remediation (November 2026)

Summary

Bundles compatible dependency security updates for release-1.4, including React Router 6.30.3 → 6.30.6, i18next-http-backend 2 → 4.0.10, Vitest 3 → 5.1.0, scoped npm overrides (minimatch under @typescript-eslint/typescript-estree and nodemon, @remix-run/router, cheerio, fast-uri), TypeScript type-cast cleanups required by the updated toolchain, and Go module updates in proxy/ (golang.org/x/{crypto,net,sys,text}). Reduces npm audit findings from 42 to 28.

Vulnerabilities Addressed

CVE ID Severity Package Old Version New Version
CVE-2026-118764 Moderate (CVSS 5.9) minimatch (transitive) 10.2.5 11.0.9 (scoped overrides)

Resolved npm advisories: @humanfs/node, @remix-run/router, @vitest/mocker, ajv, body-parser, colord, fast-uri, glob, i18next-http-backend, minimatch, postcss-selector-parser, qs, 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 Scoped npm overrides: @typescript-eslint/typescript-estree → minimatch 11.0.9 and nodemon → minimatch 11.0.9

Downstream Verification

Item Status Evidence
Build scope verified 4 Containerfile UI build stages; 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: commit f757a354 on branch cve-fix/EDM-6483-release-1.4
  • Dependencies: minimatch resolves to 11.0.9; no copy in vulnerable range
  • CVE resolution: npm audit no longer reports minimatch
  • Tests: PASS — typecheck + 9 test files, 137 tests

Rollback

git revert <commit-sha>

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 1

  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

Failed Failed checks: 4 inconclusive

Check name Status Explanation Resolution
Container-Privileges Inconclusive Summary: The check cannot be settled. The local checkout holds the PR as one root commit (ba567d6, no parent). It contains the whole repository tree, so the PR's own changes cannot be separated from e… 1. Supply the PR base commit (the release-1.4 tip before commit f757a354 / the PR head) so the patch can be diffed. The local HEAD is a single root commit with no parent. 2. Re-run this check on the diff limited to packaging/, apps/ocp-plug…
No-Sensitive-Data-In-Logs Inconclusive Summary: I could not isolate the PR's changes, so I cannot confirm that the PR adds no sensitive logging. - Diff unavailable: The checkout has one root commit (ba567d6, "EDM-6483: Collective… To complete this check: 1. Fetch the release-1.4 base into the checkout, or supply the PR patch against release-1.4. 2. Re-run the diff from merge-base(release-1.4, cve-fix/EDM-6483-release-1.4) to the PR head. 3. Inspect added or mod…
Resource-Leaks Inconclusive Summary: I could not establish which Go files this PR changed, so I cannot evaluate the resource-leaks check against the PR's changes. Evidence gathered: - The primary PR is flightctl/flightct… To finish this check, make the PR diff available and re-run it: 1. Fetch the release-1.4 base and PR head with full history (for example git fetch --unshallow origin release-1.4 cve-fix/EDM-6483-release-1.4). 2. Run `git diff --name-onl…
Generated-Files-Not-Hand-Edited Inconclusive Summary: The check cannot be decided. The PR diff against its base branch (release-1.4) cannot be established in this sandbox. Evidence gathered: - The checked-out HEAD is ba567d6, titled "EDM-6483: C… Obtain the true PR base and patch. Fetch origin/release-1.4 (or the merge base of PR #893 at commit f757a354) and run: git diff ...f757a354 -- libs/types/models libs/types/alpha/models libs/types/imagebuilder/models libs/i18n/locales/…
Passed Passed checks: 6 passed

Check name Status Explanation
No-Hardcoded-Secrets Passed Summary: No hardcoded secrets found in the PR commit (ba567d6, branch cve-fix/EDM-6483-release-1.4). The check does not apply a failure condition to these hits. Scope and method: - Primary…
No-Weak-Crypto Passed Summary: No flagged weak cryptography, custom crypto, or non-constant-time secret comparison was found in the PR head tree. The check passes. Evidence and limits: - The local checkout holds on…
No-Injection-Vectors Passed Summary: No injection vector matching the check criteria was found. The check passes. Evidence basis: The repository holds one root commit, ba567d6 ("EDM-6483: Collective CVE remediation"), …
Unchecked-Errors Passed Summary: The check does not apply to this PR's changes. It covers Go error handling in proxy/, and this PR changes no Go source files there. Evidence: - The local checkout is a single shallo…
Ai-Attribution Passed The ai-attribution check applies only when AI tools were used, as mentioned in the PR or its commits. Neither source mentions AI tool use. - PR description (PR #893, flightctl/flightctl-ui): No mentio…
I18n-Compliance Passed Summary: No i18n-compliance failure condition is introduced by this PR's .tsx changes. Scope and method. The local checkout holds a single root commit (ba567d6) with no parent. I fetched t…
Full details: No-Hardcoded-Secrets

Explanation

Summary: No hardcoded secrets found in the PR commit (ba567d6, branch cve-fix/EDM-6483-release-1.4). The check does not apply a failure condition to these hits. Scope and method: - Primary PR: flightctl/flightctl-ui #893, author amir-yogev-gh (verified via the provider record). - The commit ba567d6 is a root commit with no parent. git show --stat lists 1159 files as inserted. The base diff is therefore unavailable. I did not treat the whole tree as PR-introduced. I scanned the whole committed tree and checked the files the PR describes: package.json, vitest.config.ts, tsconfig.json, packaging/images/el{9,10}/Containerfile, and proxy/go.mod and proxy/go.sum. Checks performed: - Credential-named assignments (api_key, secret, token, password, private_key) with string literals, excluding lockfiles, test specs, and Cypress code. Hits were only i18n label strings (libs/i18n/locales/en/translation.json) and enum values (TokenRequest.ts, deviceSpec.ts). - Known credential formats (AWS AKIA…, GitHub ghp_/github_pat_, Slack xox…, Stripe sk_live_, JWT eyJhbGciOi…, PEM private-key headers). No matches. - URLs with embedded user:pass@ credentials. No matches. - Base64-like literals of 40+ characters in JSON, YAML, TOML, env, INI and Containerfile files. Hits were only 40-character commit SHA pins in GitHub workflow uses: lines and long package names in apps/ocp-plugin/package.json. Commit SHAs are not secrets. - Secret-related keywords in the PR-described config files. Only "private": true in package.json. - Go proxy/ string literals assigned to secret-named variables. No matches. Non-blocking observations: - libs/ui-components/src/components/Repository/CreateRepository/utils.ociPatches.test.ts (lines 395, 401) and libs/ui-components/src/components/AuthProvider/CreateAuthProvider/patches.test.ts (line 12) assign placeholder values such as password: '***REDACTED_SECRET_ASSIGNMENT***', password: '***REDACTED_SECRET_ASSIGNMENT***' and clientSecret: '***REDACTED_SECRET_ASSIGNMENT***'. These are unit-test fixtures, not live credentials. They do not match the failure condition as real hardcoded secrets. Limitation: The base revision is not available, so the scan covers the full committed tree rather than a PR-only diff. The result is still PASS, because no secret was found in the tree.

Full details: No-Weak-Crypto

Explanation

Summary: No flagged weak cryptography, custom crypto, or non-constant-time secret comparison was found in the PR head tree. The check passes. Evidence and limits: - The local checkout holds only one commit, ba567d6 (EDM-6483). The release-1.4 base is not available, so a base-to-head diff could not be built. The check does not define FAIL for a missing diff. Because the tree has no matches, the verdict holds even if the whole tree were treated as introduced by this PR. - A search of apps, proxy, and libs (excluding node_modules) for MD5, SHA-1, DES, 3DES, RC4, Blowfish, ECB, createHash, createCipher, CryptoJS, node-forge, timingSafe, and ConstantTimeCompare returned no matches. - Go crypto imports in proxy/ are crypto/tls, crypto/x509, crypto/rand, and crypto/sha256. crypto/sha256 is used for PKCE code challenges. crypto/rand generates state and verifier values (proxy/auth/common.go, generateState and generateCodeVerifier). - OAuth state validation does not compare a secret with == or !=. The state is embedded in the cookie name (stateCookiePrefix + state), so no direct string comparison of secrets was found. The only == on a state-like value in non-test Go code is an empty-string check (state == ""). - The PR description lists only dependency bumps, scoped npm overrides, TypeScript type-cast cleanups, and Go module updates. None of these changes adds or alters cipher, hash, or comparison code. I found no custom cryptographic code. Residual risk (not a failure): The search covered named algorithms and common library calls. It did not cover every possible inline comparison in TypeScript. Transitive dependencies changed by the bumps are outside the scope of this check.

Full details: No-Injection-Vectors

Explanation

Summary: No injection vector matching the check criteria was found. The check passes. Evidence basis: The repository holds one root commit, ba567d6 ("EDM-6483: Collective CVE remediation"), with no parent. A base-to-PR diff is therefore unavailable. The result does not rely on a diff. It relies on a scan of the full tree at ba567d6. The PR's changed code is part of that tree, so an absent sink in the tree proves the PR does not add one. Scan results: - dangerouslySetInnerHTML, .innerHTML =, and insertAdjacentHTML: no matches. - eval(, new Function(, string-argument setTimeout/setInterval, and child_process: no matches in JS/TS. - Go exec.Command, os/exec, syscall.Exec, and os.StartProcess under proxy/: no matches. - Python os.system, yaml.load(, subprocess., and eval(: no matches. The tree has no Python source files that match. - exec( hits are RegExp.exec calls, not code execution. They appear in libs/types/scripts/fix-device-system-info.js:34, libs/ui-components/src/utils/deviceLogCommandHandler.ts:100, and libs/ui-components/src/utils/devices.ts:9. - yaml.load( hits are JavaScript js-yaml calls, not Python yaml.load. The root package.json pins js-yaml to 4.3.2. In js-yaml v4, load uses the safe default schema and does not execute code. The check's SafeLoader rule applies to Python, so these calls do not match it. PR-described changes: The PR updates dependencies, adds npm overrides for minimatch (package.json:61-72), updates golang.org/x/* modules in proxy/go.mod:50-54, and changes TypeScript type casts. None of these adds a sink from the criteria. The scan covers these files too. Limitation: The scan covers the static patterns named in the check. It does not check data-flow from untrusted input into sinks. It also does not check the js-yaml version history. No sink from the named list is present in the tree at ba567d6, so the check passes.

Full details: Unchecked-Errors

Explanation

Summary: The check does not apply to this PR's changes. It covers Go error handling in proxy/, and this PR changes no Go source files there. Evidence: - The local checkout is a single shallow commit (ba567d6), so I fetched origin/release-1.4 (FETCH_HEAD 7f8573b) and diffed the PR head against that base. - git diff --name-status FETCH_HEAD HEAD -- proxy/ lists only two files: proxy/go.mod (M) and proxy/go.sum (M). The diff stat is 15 insertions and 15 deletions across these two files. - The golang.org/x/{crypto,net,sys,text} version bumps are in go.mod. This matches the PR description, which lists Go module updates as the only proxy/ change. - No .go file changed, so no error return was added, removed, or altered by this PR. Pre-existing blank-identifier discards: A repository-wide search found existing _ = and , _ := discards in proxy/bridge/terminal.go, proxy/bridge/handler.go, proxy/bridge/app_terminal.go, and proxy/auth/auth.go and redirect.go. Some have no justifying comment. These lines are unchanged by the PR. Under the decision contract, pre-existing behavior that the PR does not activate or worsen cannot cause a FAIL. They are out of scope for this verdict. Verdict: PASS. No changed Go code in proxy/ introduces an unjustified blank-identifier discard or a swallowed error.

Full details: Ai-Attribution

Explanation

The ai-attribution check applies only when AI tools were used, as mentioned in the PR or its commits. Neither source mentions AI tool use. - PR description (PR #893, flightctl/flightctl-ui): No mention of an AI tool. It has no Assisted-by, Generated-by, Made-with, or Co-Authored-By text. - Checkout (HEAD ba567d6): The commit message reads "EDM-6483: Collective CVE remediation (November 2026)". It has no trailers. Author is Amir Yogev. A search of the branch range (release-1.4..HEAD) for AI tool names and attribution trailers found no matches. - Candidate commit f757a354, named in the PR description, is not in the checkout. Its message was not inspected. Because no AI tool use is mentioned, the attribution requirement does not apply. No Co-Authored-By line naming an AI tool was found. The result is limited to the visible commit and the PR description. If f757a354 or other PR commits name an AI tool, this verdict would change.

Full details: I18n-Compliance

Explanation

Summary: No i18n-compliance failure condition is introduced by this PR's .tsx changes. Scope and method. The local checkout holds a single root commit (ba567d6) with no parent. I fetched the provider-reported base release-1.4 (7f8573b) and diffed it against HEAD, restricted to *.tsx. The diff lists 10 modified .tsx files and no added or deleted ones. Evidence from the diff. Every hunk is a type-cast cleanup or a small type-only edit: - AppContext.tsx (ocp-plugin): removes a @ts-expect-error comment. - CatalogItemDetails.tsx: displayName now falls back to '' instead of a cast. This adds no user-visible literal text. - DeviceToolbarFilters.tsx, EnrollmentRequestList.tsx, CreateResourceSyncsForm.tsx, ResourceSyncImportStatus.tsx, EntitySecurityOverviewCard.tsx, ActionsDropdownList.tsx, YamlEditor.tsx, UploadField.tsx: removes as casts only. Checks against the criteria. - No added JSX text, attribute label, or string literal with alphabetic words is left outside t(). - No t() call is added or changed. No t() call uses a variable key. - The one string touched in UploadField.tsx (t('Content loaded from: {{ filename }}', ...)) already uses t() and is unchanged. Limits. The PR head commit f757a354 is not in the local repository. The checked HEAD (ba567d6) has the PR title and author, so I reviewed it as the PR state. Unchanged .tsx files were not in scope because the PR does not touch them.

Full details: Container-Privileges

Explanation

Summary: The check cannot be settled. The local checkout holds the PR as one root commit (ba567d6, no parent). It contains the whole repository tree, so the PR's own changes cannot be separated from existing files. Evidence gathered: - The PR description lists dependency updates, npm overrides, TypeScript cast cleanups, and Go module updates in proxy/. It does not list any change to Containerfiles, Dockerfiles, or Kubernetes/OpenShift manifests. Containerfiles appear only as verification scope. - Searches for privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, allowPrivilegeEscalation, runAsUser, runAsNonRoot, and securityContext in packaging/, apps/ocp-plugin/, and .github/ found no matches for the privilege keys. - The apps/ocp-plugin/*.yaml files define an OAuthClient template and service-account token Secrets. They contain none of the flagged privilege fields. - Containerfiles contain root user directives: packaging/images/el9/Containerfile (lines 2 and 18), plus the matching .ocp and el10 files (USER root / USER 0). The proxy-build stage uses root for dnf installroot work. The final ubi-micro stage sets no USER directive. This matches "running as root without justification" in form. The tree does not show whether the PR added or changed these lines, so PR causality is not established. Why not PASS: Missing diff evidence cannot establish PASS. The PR-introduced lines in packaging/ and manifests are not verifiable here. Why not FAIL: No PR-introduced privileged setting is shown. The root directives are pre-existing in the tree, and nothing shows the PR activates or worsens them. Tone note: Thorough and direct. Security impact of the root directives, if the PR is shown to introduce them: the final image would run as UID 0 inside the container, which raises the blast radius of a proxy compromise.

Resolution

  1. Supply the PR base commit (the release-1.4 tip before commit f757a354 / the PR head) so the patch can be diffed. The local HEAD is a single root commit with no parent. 2. Re-run this check on the diff limited to packaging/, apps/ocp-plugin/, .github/, and any .yaml/.yml manifests. 3. If the PR does not touch those paths, the check PASSes on the PR-scoped diff. 4. If the PR does touch Containerfiles, confirm the final-stage user. Either add a non-root USER directive, or record the justification for root in the Containerfile.
Full details: No-Sensitive-Data-In-Logs

Explanation

Summary: I could not isolate the PR's changes, so I cannot confirm that the PR adds no sensitive logging. - Diff unavailable: The checkout has one root commit (ba567d6, "EDM-6483: Collective CVE remediation (November 2026)") with no parent. The release-1.4 base is not present, so the merge-base is empty. Every file appears as added, and the tree cannot be separated into PR changes and pre-existing code. - Described scope: The PR description covers dependency updates (React Router, i18next-http-backend, Vitest, npm overrides), TypeScript type-cast cleanups, and Go module updates in proxy/. None of these describe a logging change. - Log-pattern search (current tree): A search of apps and libs for console.* calls that include token, password, secret, API key, session, email, or credential names returned no hits. A search of proxy/*.go returned three log calls, all in the terminal/app-console code: log.Infof in proxy/bridge/terminal.go (lines 269 and 345) and proxy/bridge/app_terminal.go (line 132). They log device IDs, app names, and session labels. I did not read the surrounding code, so I cannot say whether sessionLabel is a session identifier. These lines are in the current tree, and I could not show that the PR changed them. - Check criteria: The check fails only on logging that may expose sensitive data. It does not require FAIL when the diff is missing. Missing evidence cannot establish PASS. Limits: Linked-repository inspection was unavailable, so I could not compare against the release-1.4 base.

Resolution

To complete this check: 1. Fetch the release-1.4 base into the checkout, or supply the PR patch against release-1.4. 2. Re-run the diff from merge-base(release-1.4, cve-fix/EDM-6483-release-1.4) to the PR head. 3. Inspect added or modified log statements in that diff, including console.* in apps/ and libs/ and log.* calls in proxy/. 4. Confirm that sessionLabel in proxy/bridge/terminal.go does not carry a session ID or other sensitive value, if it is in the PR diff.

Full details: Resource-Leaks

Explanation

Summary: I could not establish which Go files this PR changed, so I cannot evaluate the resource-leaks check against the PR's changes. Evidence gathered: - The primary PR is flightctl/flightctl-ui #893, base release-1.4, head cve-fix/EDM-6483-release-1.4, author amir-yogev-gh. - The local checkout is shallow. Its HEAD (ba567d6, the PR commit) is a root commit with no parent. Every file therefore appears as added, so git show cannot separate changed files from unchanged ones. - The release-1.4 base is not present locally. origin/main (bc65fb2) is a different commit and is not the PR base. - Under those conditions, git diff origin/release-1.4...HEAD and git diff HEAD~1 HEAD both fail. - The PR description says the Go changes are module updates in proxy/ (golang.org/x/{crypto,net,sys,text}). The local proxy/go.mod shows these as indirect requires at crypto v0.57.0, net v0.60.0, sys v0.48.0 and text v0.42.0. This shows the current module state only. It does not show which lines changed. - The check asks about opened files, HTTP response bodies, network connections, and goroutines in proxy/ Go files. The repository tree has many such files (for example proxy/bridge/terminal.go, proxy/server/server.go, proxy/auth/*.go). Whether the PR modified any of them is unknown. Why not PASS: The description is contributor prose. It is not a diff. Missing evidence cannot establish PASS. The current tree is not PR-introduced code unless the diff shows it. Why not FAIL: The check defines no failure condition for a missing diff. I found no changed-code evidence of an unclosed file, body, connection, or unshut goroutine. Repository-wide context cannot cause a FAIL without PR causality. Scope note: Based on the description, the Go-side change looks limited to go.mod and go.sum. Those files do not open resources or start goroutines, so the check may be inapplicable. That conclusion needs the real diff.

Resolution

To finish this check, make the PR diff available and re-run it: 1. Fetch the release-1.4 base and PR head with full history (for example git fetch --unshallow origin release-1.4 cve-fix/EDM-6483-release-1.4). 2. Run git diff --name-only origin/release-1.4...HEAD -- proxy/ and confirm whether any *.go source file changed. 3. If no *.go source file changed (only go.mod/go.sum), the check is inapplicable and can PASS. 4. If any *.go source file changed, review each changed hunk for os.Open/os.Create/file handles, http response bodies, net.Dial/listeners, and go func launches. Each must have a defer Close() (or equivalent) or a shutdown mechanism (context, done channel, or WaitGroup).

Full details: Generated-Files-Not-Hand-Edited

Explanation

Summary: The check cannot be decided. The PR diff against its base branch (release-1.4) cannot be established in this sandbox. Evidence gathered: - The checked-out HEAD is ba567d6, titled "EDM-6483: Collective CVE remediation (November 2026)". It is a single root commit with no parent. No release-1.4 ref exists locally. The PR's own commit f757a354 is not present. - The only comparison ref is origin/main (bc65fb2). It is not the PR base, so diffs against it show branch divergence, not PR changes. - libs/types/** shows no diff against origin/main. The generated model files carry the header "generated using openapi-typescript-codegen -- do no edit". - libs/i18n/locales/en/translation.json differs from origin/main by 69 keys added and 79 removed. The libs/i18n/package.json script and i18next config also differ. These differences look like release-1.4 diverging from main. Nothing in the PR description says it touched these files. - Root package.json changes match the PR description: overrides, vitest, typescript-eslint, lint script. None of these edit a generated file. Assessment: The PR description lists dependency, override, type-cast and Go module changes. It does not list edits to generated files. However, the complete PR patch against release-1.4 is unavailable. Without it, I cannot confirm that no generated file was hand-edited. Missing evidence cannot establish PASS. The check does not define a FAIL condition for a missing diff.

Resolution

Obtain the true PR base and patch. Fetch origin/release-1.4 (or the merge base of PR #893 at commit f757a354) and run: git diff <base>...f757a354 -- libs/types/models libs/types/alpha/models libs/types/imagebuilder/models libs/i18n/locales/en/translation.json. Any hunk in these paths must be checked. Hand edits to libs/types/** must be replaced by output of npm run gen-types. Hand edits to translation.json must be replaced by output of npm run i18n. If the diff shows no hunks in these paths, this check passes.

@amir-yogev-gh
amir-yogev-gh force-pushed the cve-fix/EDM-6483-release-1.4 branch from 6082da1 to c0c1b73 Compare November 18, 2026 14:36
@amir-yogev-gh
amir-yogev-gh force-pushed the cve-fix/EDM-6483-release-1.4 branch from c0c1b73 to ba567d6 Compare November 18, 2026 14:39
@amir-yogev-gh amir-yogev-gh changed the title [release-1.4] EDM-6483: Collective CVE remediation (November 2026) EDM-6483: Collective CVE remediation (November 2026) Nov 19, 2026
@amir-yogev-gh
amir-yogev-gh marked this pull request as ready for review November 19, 2026 11:54
@amir-yogev-gh
amir-yogev-gh merged commit 2e76688 into flightctl:release-1.4 Nov 19, 2026
17 of 21 checks passed
@amir-yogev-gh
amir-yogev-gh deleted the cve-fix/EDM-6483-release-1.4 branch November 19, 2026 11:58
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