Skip to content

build(deps): bump @brightsec/node-libcurl to 5.2.0 - #836

Merged
aborovsky merged 4 commits into
nextfrom
chore/node-libcurl-5.2.0
Nov 27, 2026
Merged

aborovsky merged 4 commits into
nextfrom
chore/node-libcurl-5.2.0

Conversation

@aborovsky

@aborovsky aborovsky commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What

Bumps @brightsec/node-libcurl from 5.1.6 to 5.2.0, the fork's stable release. It contains upstream node-libcurl 5.2.0 (BrightSec/node-libcurl#51) and the Windows install fix (BrightSec/node-libcurl#52).

What it brings to the repeater:

  • Upstream 5.2.0 fixes: Curl#close() cancels transfers on the owning Multi (we use setMulti(sharedMulti)), deferred Multi cleanup when closed from a callback, READFUNCTION validates the returned byte count, seeks beyond 4 GiB, callback error retention, Brotli 1.2.1 (CVE fix).

  • The fork's OpenSSL error queue fix (Node TLS sockets no longer die after a failed SSLENGINE), which so far was only in 5.1.7-1.

  • On Windows, npm install uses the prebuilt binary instead of building curl and its dependencies with vcpkg first (20-30 minutes per install, including npm i -g @brightsec/cli).

  • Response headers with an empty value are delivered as ''. HttpRequestExecutor takes its headers from node-libcurl's parseHeaders, which used to split on /:\s(.+)/, so expires: reached bridges as a "expires: " key with an undefined value. Bridges then dropped it, or a cross-pod forward failed with a 502. Upstream 5.2.0 splits on the first : and trims the value. This also fixes name:value without a space and padded values, and supersedes fix(repeater): deliver empty response header values as empty strings #835. Regression tests are in test(repeater): cover empty response header values #838.

    Checked against real libcurl: an HTTP/1.1 and an HTTP/2 TLS target with empty expires/cache-control/pragma, and the live https://qa.brokencrystals.com/api/goto?test_value_815 (302 with an empty Location), all deliver '' on 5.2.0 and lose the header on 5.1.6. Repeated non-cookie fields (Link, Vary) still keep only the last value, as before.

Verification

  • npm ci downloads the 5.2.0 prebuilt; Curl.getVersion() reports libcurl/8.17.0 OpenSSL/3.5.9 ... brotli/1.2.1.
  • Unit tests (including the real-libcurl HttpRequestExecutor.spec and its latency guard), lint and build pass locally on macOS arm64.
  • e2e from this branch: 45878073685 and 45915144995 (with 5.2.0-2, the same code as 5.2.0) passed.

The fork now includes upstream node-libcurl 5.2.0 (Multi/Easy lifetime and
transfer ownership fixes, READFUNCTION/SEEKFUNCTION hardening, Brotli 1.2.1)
and the OpenSSL error queue fix that so far was only in 5.1.7-1.
@aborovsky aborovsky changed the title build(deps): bump @brightsec/node-libcurl to 5.2.0-0 build(deps): bump @brightsec/node-libcurl to 5.2.0-1 Nov 26, 2026
@aborovsky aborovsky self-assigned this Nov 26, 2026
@aborovsky aborovsky added the dependencies Pull requests that update a dependency file label Nov 26, 2026
5.2.0-2 installs the prebuilt binary on Windows without first building
curl and its dependencies with vcpkg, which took 20-30 minutes per install.
@aborovsky aborovsky changed the title build(deps): bump @brightsec/node-libcurl to 5.2.0-1 build(deps): bump @brightsec/node-libcurl to 5.2.0-2 Nov 27, 2026
5.2.0 is the stable release of the same code as 5.2.0-2.
@aborovsky aborovsky changed the title build(deps): bump @brightsec/node-libcurl to 5.2.0-2 build(deps): bump @brightsec/node-libcurl to 5.2.0 Nov 27, 2026
@aborovsky
aborovsky marked this pull request as ready for review November 27, 2026 08:50
@aborovsky
aborovsky merged commit 56468a4 into next Nov 27, 2026
11 checks passed
@aborovsky
aborovsky deleted the chore/node-libcurl-5.2.0 branch November 27, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants