Skip to content

fix(QTDI-3718): npm security updates - #1336

Open
undx wants to merge 6 commits into
masterfrom
ouf/QTDI-3718_npm_cve
Open

undx wants to merge 6 commits into
masterfrom
ouf/QTDI-3718_npm_cve

Conversation

@undx

@undx undx commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Requirements

Why this PR is needed?

Fixes open Dependabot npm alerts:

What does this PR adds?

  • documentation: override isomorphic-git ^1.38.10 (resolves 1.44.15).
  • component-starter-server / component-tools-webapp: override minimatch ^11.0.8 with a scoped brace-expansion ^5.0.13 (minimatch 11 needs brace-expansion 5; the global ^2 override breaks the build).
  • package.json / package-lock.json regenerated by mvn package.
  • repository-knowledge.md: documents the npm CVE handling procedure (template edit, mvn package, npm audit, ^ pinning, Zephyr test cycle).

Validation:

  • mvn package -pl component-tools-webapp,component-starter-server → BUILD SUCCESS (tests pass)
  • npm audit in the frontends: minimatch no longer reported; only the unfixable deepmerge remains. Documentation: 0 vulnerabilities.
  • Full Antora docs build not run.

Copilot AI 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.

🟡 Changes recommended

Two critical findings remain because the global minimatch override removes required older versions and may break build and lint tooling.

2 open issues
3 files not reviewed
  • component-starter-server/src/main/frontend/package-lock.json: Generated file
  • component-tools-webapp/src/main/frontend/package-lock.json: Generated file
  • documentation/src/main/frontend/package-lock.json: Generated file
What changed in this PR

Updates frontend npm dependency overrides and lockfiles to address reported isomorphic-git and minimatch security alerts across the documentation, component tools webapp, and component starter server modules, and documents the remediation workflow.

Changes:

  • Overrides documentation’s isomorphic-git dependency and resolves it to a secure 1.x release.
  • Updates minimatch to 11.0.8 with a scoped brace-expansion 5.0.13 override in the webapp and starter-server frontends.
  • Regenerates frontend lockfiles and documents the npm CVE handling and validation procedure.
File Description
repository-knowledge.md Documents the npm CVE remediation, dependency pinning, validation, and testing workflow.
documentation/​src/​main/​frontend/​package-template.json Adds the secure isomorphic-git dependency override for documentation builds.
documentation/​src/​main/​frontend/​package-lock.json Locks isomorphic-git and its updated transitive dependency tree.
component-tools-webapp/​src/​main/​frontend/​package.json Contains the generated webapp dependency overrides for minimatch and brace-expansion.
component-tools-webapp/​src/​main/​frontend/​package-template.json Defines the webapp minimatch 11 and scoped brace-expansion 5 overrides for Maven regeneration.
component-tools-webapp/​src/​main/​frontend/​package-lock.json Locks the webapp’s updated minimatch dependency graph.
component-starter-server/​src/​main/​frontend/​package.json Contains the generated starter-server dependency overrides for minimatch and brace-expansion.
component-starter-server/​src/​main/​frontend/​package-template.json Defines the starter-server minimatch 11 and scoped brace-expansion 5 overrides for Maven regeneration.
component-starter-server/​src/​main/​frontend/​package-lock.json Locks the starter-server’s updated minimatch dependency graph.

Review effort: Lite

Copilot AI lite review requested due to automatic review settings November 25, 2026 09:35

Copilot AI 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.

🟡 Changes recommended

Critical dependency overrides force incompatible minimatch major versions onto frontend tooling, and an undocumented i18next major upgrade lacks compatibility validation.

3 open issues
3 files not reviewed
  • component-starter-server/src/main/frontend/package-lock.json: Generated file
  • component-tools-webapp/src/main/frontend/package-lock.json: Generated file
  • documentation/src/main/frontend/package-lock.json: Generated file

Review effort: Lite

Copilot AI lite review requested due to automatic review settings November 25, 2026 09:39

Copilot AI 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.

🟡 Changes recommended

Critical dependency overrides leave i18next outside supported peer ranges and collapse minimatch resolution across incompatible major versions, risking clean-install conflicts and broken consumers.

4 open issues
1 previously missed issue

In code that hasn't changed since last review

High severity Keep i18next within Talend consumers’ supported peer range

component-starter-server/​src/​main/​frontend/​package-template.json:51

This override upgrades the installed i18next to 26.x, but the same lockfile records @talend/design-system and @talend/react-components peer ranges of ^23.16.8. That leaves the frontend outside the supported peer contract and can make a clean npm install fail with an ERESOLVE peer conflict. Please keep the direct/overridden i18next version within the consumers' supported 23.x range, or upgrade those consumers to versions that support 26.x, then regenerate the lockfile.

3 files not reviewed
  • component-starter-server/src/main/frontend/package-lock.json: Generated file
  • component-tools-webapp/src/main/frontend/package-lock.json: Generated file
  • documentation/src/main/frontend/package-lock.json: Generated file

Review effort: Lite

undx and others added 4 commits November 25, 2026 10:44
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit 5cd3f44)
…894)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CVE-2026-63402)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@undx
undx force-pushed the ouf/QTDI-3718_npm_cve branch from 7bd08ac to 48067c9 Compare November 25, 2026 09:45
Copilot AI lite review requested due to automatic review settings November 25, 2026 09:45

Copilot AI 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.

🔵 Needs a closer look

The combination of major Node, i18next, and isomorphic-git upgrades without a full Antora build or runtime UI regression check leaves compatibility in supported workflows unvalidated.

No open issues 🎉

4 resolved since last review
3 files not reviewed
  • component-starter-server/src/main/frontend/package-lock.json: Generated file
  • component-tools-webapp/src/main/frontend/package-lock.json: Generated file
  • documentation/src/main/frontend/package-lock.json: Generated file

Review effort: Lite

undx and others added 2 commits December 2, 2026 09:50
…e to ^3.0.11 (CVE-2026-139994, CVE-2026-140103)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonar-rnd

sonar-rnd Bot commented Dec 2, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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