NIFI-16138 - Resolve nifi-frontend transitive dependency security advisories via npm overrides#11464
Merged
Merged
Conversation
…fast-uri, dompurify, immutable, axios, and others.
Contributor
|
Reviewing... |
This was referenced Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NIFI-16138
Summary
Resolves 26 of 32 open npm security advisories in
nifi-frontendby adding and tighteningoverridesentries inpackage.json. No direct dependency versions are modified and noproduction code changes are made. The browser-shipped artifact is unaffected.
All 2 critical and all 23 high advisories are cleared. The 6 remaining advisories are
moderate severity and are confined to dev-only build tooling; they are deferred because
their fixes require major-version bumps that carry unknown compatibility risk with the
current Angular/Nx build toolchain.
This PR supersedes the following open Dependabot PRs, which can be closed:
Bump axios from 1.16.0 to 1.18.1 in /nifi-frontend/src/main/frontend #11447 (axios), Bump adm-zip and @nx/angular in /nifi-frontend/src/main/frontend #11444 (adm-zip / @nx/angular), Bump websocket-driver from 0.7.4 to 0.7.5 in /nifi-frontend/src/main/frontend #11438 (websocket-driver)
Vulnerability Counts
Changes
All changes are
overridesentries innifi-frontend/src/main/frontend/package.json.The
package-lock.jsonis regenerated to reflect resolved transitive versions. No otherfiles are modified.
Updated existing overrides (floor was too permissive)
undici>=7.24.0>=7.28.0js-yaml>=4.2.0>=4.3.0New overrides added
tar>=7.5.19websocket-driver>=0.7.5adm-zip>=0.6.0axios>=1.18.0fast-uri>=3.1.4http-proxy-middleware>=3.0.7 <4immutable>=5.1.8piscina>=5.2.0shell-quote>=1.8.5svgo>=3.3.4vite^7.3.5hono>=4.12.27body-parser>=2.3.0dompurify>=3.4.12Cascade resolutions
Several high advisories were cleared indirectly rather than by a direct override:
adm-zipandundicioverrides resolved the entire@module-federation/*cluster(
@module-federation/dts-plugin,cli,manifest,rspack,enhanced,node) andconsequently cleared the
@nx/module-federation,@nx/rspack, and@nx/angularHIGHadvisories.
http-proxy-middleware,piscina, andviteoverrides cleared the@angular/buildHIGH advisory and partially cleared
@angular-devkit/build-angular.brace-expansionself-resolved to 5.0.8 (outside all advisory ranges) as a side effectof dependency tree re-resolution; no explicit override was needed.
Remaining Vulnerabilities
Six moderate advisories are intentionally deferred:
webpack-dev-server cluster (GHSA-f5vj-f2hx-8m93, GHSA-m28w-2pqf-7qgj): No 5.x fix
exists. Remediation requires upgrading to webpack-dev-server 6.x, which is a major version
boundary and depends on an Angular build toolchain upgrade.
@hono/node-server cluster (GHSA-frvp-7c67-39w9):
@angular/clipulls in@modelcontextprotocol/sdk, which requires@hono/node-server@^1(vulnerable below 2.0.5).The fix requires a 1.x→2.x major bump whose compatibility with the current
@modelcontextprotocol/sdkversion is untested.Both clusters are dev/build-tooling only and do not affect any artifact shipped to the browser.
Verification
nx run-many -t lintexits 0 across all 6 projects innifi-frontendwith these overridesapplied.