Skip to content

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

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

undx wants to merge 2 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.

undx and others added 2 commits November 16, 2026 16:43
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)

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

Comment on lines +58 to +61
"minimatch": {
".": "^11.0.8",
"brace-expansion": "^5.0.13"
},
Comment on lines +59 to +62
"minimatch": {
".": "^11.0.8",
"brace-expansion": "^5.0.13"
},
@sonar-rnd

sonar-rnd Bot commented Nov 16, 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