Skip to content

Bump dependencies to latest versions for CVEs#540

Open
BewareMyPower wants to merge 24 commits intoapache:mainfrom
BewareMyPower:bewaremypower/upgrade-dependencies
Open

Bump dependencies to latest versions for CVEs#540
BewareMyPower wants to merge 24 commits intoapache:mainfrom
BewareMyPower:bewaremypower/upgrade-dependencies

Conversation

@BewareMyPower
Copy link
Contributor

@BewareMyPower BewareMyPower commented Mar 2, 2026

Motivation

The current dependency versions are a bit out-of-date, some have CVEs:

Some are not maintained, e.g. protobuf 3.x reached the end of support since Mar 2024: https://protobuf.dev/support/version-support/#cpp

Modifications

  • Bump all dependencies to latest versions of vcpkg.
  • Remove the patch on libcurl specially for macOS. Accordingly, fix the curl_global_init failure due to the static variable initialization might happen before the Apple framework is loaded.
  • Fix the issue that vcpkg cache never works (because there is a newline in key)
  • Add vcpkg cache for non-Windows workflows
  • Fix the fat static library build scripts for latest dependencies

Breaking Change

Now the libpulsarwithdeps.a on macOS requires linking to the CoreFoundation and SystemConfiguration Apple frameworks. Before this change, this extra dependencies were excluded by applying a patch to disable IPv6 when building libcurl. However, the latest protobuf introduces the abseil dependency, which requires the Apple framework again.

It's common for low level libraries to depend on Apple frameworks, which cannot be packaged together with static libraries. For downstream applications like pulsar-client-node, we should add these links to the link options.

@BewareMyPower BewareMyPower self-assigned this Mar 2, 2026
@BewareMyPower BewareMyPower marked this pull request as draft March 2, 2026 05:45
@BewareMyPower BewareMyPower marked this pull request as ready for review March 2, 2026 06:08
@BewareMyPower BewareMyPower marked this pull request as draft March 2, 2026 07:24
@BewareMyPower BewareMyPower marked this pull request as ready for review March 2, 2026 11:21
BewareMyPower and others added 3 commits March 2, 2026 20:23
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@BewareMyPower BewareMyPower marked this pull request as draft March 2, 2026 14:34
@BewareMyPower BewareMyPower added this to the 4.2.0 milestone Mar 3, 2026
@BewareMyPower BewareMyPower reopened this Mar 3, 2026
@BewareMyPower BewareMyPower marked this pull request as ready for review March 3, 2026 11:04
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.

1 participant