Skip to content

Backport 4.14.x: Update to Node 22 - #1575

Merged
nscuro merged 2 commits into
DependencyTrack:4.14.xfrom
ColorfulRhino:backport-node22-update
Jun 5, 2026
Merged

nscuro merged 2 commits into
DependencyTrack:4.14.xfrom
ColorfulRhino:backport-node22-update

Conversation

@ColorfulRhino

Copy link
Copy Markdown
Contributor

Description

Update NodeJS to Node 22 and drop the dev dependency @cyclonedx/cyclonedx-npm.

Addressed Issue

Backport #1556 and #1561 to 4.14.x

Additional Details

n/a

Checklist

nscuro and others added 2 commits June 5, 2026 11:52
Signed-off-by: ColorfulRhino <[email protected]>
This SBOM generator was superseded by "@cyclonedx/webpack-plugin",
but was never removed.

This also removes the transitive dependency "libxmljs2" which before
did no longer compile from source with Node >=22, breaking reproducable
builds from source (e.g. nixpkgs).

Signed-off-by: ColorfulRhino <[email protected]>
@owasp-dt-bot

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@ColorfulRhino

ColorfulRhino commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Would appreciate a new release for the 4.14.x version soon if possible, since this would unblock the Dependency-Track package in nixpkg :)
Thanks!

@nscuro

nscuro commented Jun 5, 2026

Copy link
Copy Markdown
Member

Were you able to verify that this change indeed unblocks your Nix issue?

@ColorfulRhino

ColorfulRhino commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Yes. With this applied, the package builds without errors on nixpkgs.

Without this, this is the error after removing the currently pinned Node 20, which was pinned due to the build error before, but now that Node 20 is EOL needs to be bumped in order to not be marked insecure: NixOS/nixpkgs#515284 (comment)

The package for nixpkgs now builds fine with Node 22, Node 24 and even Node 26.

As you can see, the build error stems from the transitive dependency libxmljs2, which is removed in this PR as you can see in the package-lock.json. It was a module that @cyclonedx/cyclonedx-npm depended on.

@nscuro nscuro added this to the 4.14.3 milestone Jun 5, 2026
@nscuro
nscuro merged commit 2b55e97 into DependencyTrack:4.14.x Jun 5, 2026
6 checks passed
@ColorfulRhino ColorfulRhino mentioned this pull request Jun 8, 2026
24 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants