Repository navigation
build(deps): bump @brightsec/node-libcurl to 5.2.0 - #836
Merged
Merged
Conversation
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.
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.
5.2.0 is the stable release of the same code as 5.2.0-2.
aborovsky
marked this pull request as ready for review
November 27, 2026 08:50
YarikMamykin
approved these changes
Nov 27, 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.
What
Bumps
@brightsec/node-libcurlfrom5.1.6to5.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 usesetMulti(sharedMulti)), deferred Multi cleanup when closed from a callback,READFUNCTIONvalidates 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 in5.1.7-1.On Windows,
npm installuses the prebuilt binary instead of building curl and its dependencies with vcpkg first (20-30 minutes per install, includingnpm i -g @brightsec/cli).Response headers with an empty value are delivered as
''.HttpRequestExecutortakes its headers from node-libcurl'sparseHeaders, which used to split on/:\s(.+)/, soexpires:reached bridges as a"expires: "key with anundefinedvalue. 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 fixesname:valuewithout 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 livehttps://qa.brokencrystals.com/api/goto?test_value_815(302 with an emptyLocation), all deliver''on5.2.0and lose the header on5.1.6. Repeated non-cookie fields (Link,Vary) still keep only the last value, as before.Verification
npm cidownloads the5.2.0prebuilt;Curl.getVersion()reportslibcurl/8.17.0 OpenSSL/3.5.9 ... brotli/1.2.1.HttpRequestExecutor.specand its latency guard), lint and build pass locally on macOS arm64.5.2.0-2, the same code as5.2.0) passed.