Skip to content

fix(deps): patch vulnerable transitive dependencies on 2.1 - #3859

Merged
kthoms merged 1 commit into
release/2.1.xfrom
codex/security-2.1-patch
Oct 15, 2026
Merged

kthoms merged 1 commit into
release/2.1.xfrom
codex/security-2.1-patch

Conversation

@hauptmedia

Copy link
Copy Markdown
Collaborator

The 2.1.x vulnerability export includes vulnerable transitive dependencies even though their direct parents are current. This pins the patched HTTP/2 and Jakarta Mail artifacts, refreshes the affected npm transitive packages, and removes the old RequireJS copy pulled in by requirejs-angular-define.

Dependency Before After Advisory
httpcore5-h2 5.3.6 5.4.4 GHSA-v3jc-474w-2wm6
com.sun.mail:jakarta.mail 2.0.1 2.0.2 GHSA-9342-92gg-6v29
form-data 4.0.5 4.0.6 GHSA-hmw2-7cc7-3qxx
qs 6.14.2 6.16.1 GHSA-q8mj-m7cp-5q26, GHSA-x5fp-wj9c-mxmx, GHSA-4mjr-xmp4-gh2g
Nested requirejs 2.1.22 existing root 2.3.8 GHSA-x3m3-4wpv-5vgc

All upgrades stay within the same major version. HTTP/2 shares the existing version.httpcore5 property; qs is constrained to the 6.x line; the RequireJS override is scoped to its legacy dependent. Jakarta Mail remains provided as before. Angular/Angular Sanitize and WildFly/Undertow are intentionally unchanged.

These changes cover 7 of the export's 22 unique advisories (43 of 117 repeated project findings). The 15 remaining advisories concern Angular or Undertow. Regenerated SBOMs and a Dependency-Track rescan are still needed to confirm closure; the SBOM packaging/validity issues are tracked separately in #3852 and #3855. No findings are suppressed.

Validation:

  • Full 123-module Maven build with tests/frontend build skipped; separate production frontend build passed.
  • HTTP/SOAP connector reactor: 177 tests passed, 2 skipped (179 total). External task client: 28 tests passed. Mail unit tests: 24 passed; 14 Docker/Mailpit tests skipped because Docker is unavailable.
  • Resolved dependency trees confirm the patched versions in affected Maven modules.
  • Six temporary npm security regression checks fail against the old packages and pass against the new packages; legacy ngParse/ngDefine compatibility smoke passes with RequireJS 2.3.8.
  • Temporary in-memory SMTP regression confirms 2.0.2 rejects literal and Unicode-encoded CRLF injection before writing bytes, while 2.0.1 accepts both; ordinary commands unchanged.
  • Production npm audit drops from 7 to 3 affected package nodes (remaining Angular family); unrelated development-tool findings were not changed.
  • Changed package files pass Prettier. Repository lint retains 26 errors/1 warning in unchanged files; production build completes with 82 warnings.
  • WildFly distribution built successfully without a WildFly version change; ZIP contains HTTP/2 Core 5.4.4 and unchanged Undertow 2.3.20.Final.
  • Prescribed cleanup completed; unrelated Java rewrites excluded. Final dependency diff matches the tested patch; git diff --check passes.

Pin HTTP/2 Core 5.4.4 and Jakarta Mail 2.0.2, refresh form-data and qs,
and reuse the existing patched RequireJS for requirejs-angular-define.

Addresses seven advisories from the 2.1.x vulnerability export without
major dependency upgrades. Angular and WildFly remain unchanged.
@hauptmedia hauptmedia added dependencies Changes that update a dependency dependencies:npm Changed to NPM dependencies dependencies:maven Updates of Maven dependencies labels Oct 15, 2026
@github-actions github-actions Bot added scope:webapp Changes affecting the legacy webapps. scope:build Changes affecting the build, e.g. Maven configuration, shell scripts. labels Oct 15, 2026
@hauptmedia
hauptmedia marked this pull request as ready for review October 15, 2026 14:09
@sonarqubecloud

Copy link
Copy Markdown

@kthoms kthoms added this to the 2.1.6 milestone Oct 15, 2026
@kthoms

kthoms commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

As expected, dependencies for httpcore5 and jakarta.mail are upgraded.

Test successfull, LGTM.

18:18:19,663 [INFO] org.operaton.bpm:operaton-engine:jar:2.1.6-SNAPSHOT18:18:19,664 [INFO] +- org.apache.commons:commons-email2-jakarta:jar:2.0.0-M1:provided
18:18:19,664 [INFO] |  +- org.apache.commons:commons-email2-core:jar:2.0.0-M1:provided
18:18:19,664 [INFO] |  \- com.sun.mail:jakarta.mail:jar:2.0.2:provided
18:18:19,664 [INFO] |     \- com.sun.activation:jakarta.activation:jar:2.0.1:provided
18:18:20,578 [INFO] +- org.apache.httpcomponents.client5:httpclient5:jar:5.6.5:test
18:18:20,578 [INFO] |  +- org.apache.httpcomponents.core5:httpcore5:jar:5.4.4:test
18:18:20,578 [INFO] |  +- org.apache.httpcomponents.core5:httpcore5-h2:jar:5.4.4:test

dependencies-2.1.txt

@kthoms
kthoms merged commit 8fff7a3 into release/2.1.x Oct 15, 2026
15 checks passed
@kthoms
kthoms deleted the codex/security-2.1-patch branch October 15, 2026 16:21
kthoms added a commit that referenced this pull request Oct 15, 2026
Pin HTTP/2 Core 5.4.4 and Jakarta Mail 2.0.2, refresh form-data and qs,
and reuse the existing patched RequireJS for requirejs-angular-define.

Addresses seven advisories from the 2.1.x vulnerability export without
major dependency upgrades. Angular and WildFly remain unchanged.

cherry-picked from #8fff7a34216c871b711a08a913e62624029daec6

Co-authored-by: Julian Haupt <[email protected]>
@kthoms

kthoms commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Cherry-picked changes for httpcore5 and jakarta.mail for release 2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies:maven Updates of Maven dependencies dependencies:npm Changed to NPM dependencies dependencies Changes that update a dependency scope:build Changes affecting the build, e.g. Maven configuration, shell scripts. scope:webapp Changes affecting the legacy webapps.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants