Skip to content

chore: bump curl-for-windows to nghttp2 1.71.0 - #120

Merged
ZxBing0066 merged 2 commits into
developfrom
ci/verify-nghttp2-1.71.0
Nov 18, 2026
Merged

ZxBing0066 merged 2 commits into
developfrom
ci/verify-nghttp2-1.71.0

Conversation

@ZxBing0066

@ZxBing0066 ZxBing0066 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Background

The vendored nghttp2 behind the Windows binaries is 1.47.0 (2021). Aikido reports five vulnerabilities for it (INS-4174, three high / two medium) plus AIKIDO-2026-10423 (INS-4179); all are fixed above 1.69.0.

Changes

  • deps/curl-for-windows: 8a4b21b5 → 200f5125 (bump nghttp2 to 1.71.0 curl-for-windows#4) — vendors nghttp2 1.71.0 and removes the unused c-ares tree.

  • scripts/retrieve-win-deps.js: drops cares/cares.gyp from the hard-coded gyp rewrite list. c-ares has been disabled since DNS lookups are not working with multiple system DNS servers  JCMais/node-libcurl#280 and the file no longer exists, so the script aborted with ENOENT:

    Error: ENOENT: no such file or directory, open 'deps\curl-for-windows\cares\cares.gyp'
    gyp: Call to 'node scripts/retrieve-win-deps.js' returned exit status 1 while in binding.gyp
    
  • Version 3.3.1 → 3.3.2 in package.json and the root lockfile fields, so the release needs one merge instead of two.

Compatibility

  • All 58 public nghttp2 symbols used by curl/lib/http2.c (curl 7.86.0) still exist in 1.71.0, so libcurl needs no change.
  • Behaviour change to watch: with NGHTTP2_VERSION_NUM >= 0x013200, curl switches to nghttp2_session_client_new2 and disables the RFC 9113 leading/trailing whitespace validation of HTTP field values.
  • nghttp2_time.c is new; the vendored config.h defines neither HAVE_WINDOWS_H nor HAVE_GETTICKCOUNT64, so Windows uses the portable time(NULL) fallback.

Verification

Windows builds of this pin compiled the 1.71.0-only sources (nghttp2_alpn.c, nghttp2_extpri.c, nghttp2_ratelim.c, nghttp2_time.c, sfparse.c) on x64 and arm64; the addon loaded and its tests passed for both nodejs and electron. The resulting binaries report:

libcurl/7.86.0-DEV OpenSSL/3.5.9 zlib/1.2.13 brotli/1.0.9 WinIDN libssh2/1.9.0_DEV nghttp2/1.71.0

Downstream E2E against that binary was exercised in Kong/insomnia#10789 (Windows @libcurl specs: HTTP/2, TLS/mTLS, IPv6 resolver — 3 passed).

Release

Merging this is followed by the v3.3.2 tag, which builds the 12 platform assets and publishes to npm through the existing OIDC publish workflow.

References

@ZxBing0066
ZxBing0066 force-pushed the ci/verify-nghttp2-1.71.0 branch from cb62a0e to ac64b99 Compare November 18, 2026 03:27
@ZxBing0066 ZxBing0066 changed the title [DNM] probe: nghttp2 1.71.0 on Windows build chore: bump curl-for-windows to nghttp2 1.71.0 Nov 18, 2026
@ZxBing0066
ZxBing0066 marked this pull request as ready for review November 18, 2026 03:27
### Background

The vendored nghttp2 behind the Windows binaries is 1.47.0 (2021). Aikido
reports five vulnerabilities for it (INS-4174) plus AIKIDO-2026-10423
(INS-4179), all fixed above 1.69.0.

### Changes

- `deps/curl-for-windows`: `8a4b21b5` → `200f5125`, which vendors nghttp2 1.71.0
  and drops the unused c-ares tree (Kong/curl-for-windows#4).
- `scripts/retrieve-win-deps.js`: drops `cares/cares.gyp` from the hard-coded
  gyp rewrite list. c-ares has been disabled since JCMais#280 and the file no longer
  exists, so the script aborted with `ENOENT` and gyp failed before
  configuration on Windows.

### Verification

Windows builds of the pinned commit compiled the 1.71.0-only sources
(`nghttp2_alpn.c`, `nghttp2_extpri.c`, `nghttp2_ratelim.c`, `nghttp2_time.c`,
`sfparse.c`) on x64 and arm64, the addon loaded, and its tests passed
(`nodejs` and `electron` jobs, both architectures).

The binaries in that build report
`libcurl/7.86.0-DEV OpenSSL/3.5.9 zlib/1.2.13 brotli/1.0.9 WinIDN libssh2/1.9.0_DEV nghttp2/1.71.0`.

References: INS-4174, INS-4179
@ZxBing0066
ZxBing0066 force-pushed the ci/verify-nghttp2-1.71.0 branch from ac64b99 to 54f1917 Compare November 18, 2026 03:28
Ships the nghttp2 1.71.0 bump. Version bump lives here so the release needs one
merge instead of two.
@ZxBing0066
ZxBing0066 enabled auto-merge (squash) November 18, 2026 03:57
@ZxBing0066
ZxBing0066 merged commit 32b7c5a into develop Nov 18, 2026
19 checks passed
@ZxBing0066
ZxBing0066 deleted the ci/verify-nghttp2-1.71.0 branch November 18, 2026 04:39
ZxBing0066 added a commit to Kong/insomnia that referenced this pull request Nov 18, 2026
### Background

The Windows binaries shipped in `@getinsomnia/node-libcurl` 3.3.0 link
nghttp2 1.47.0 (2021) and OpenSSL 3.0.7 (end-of-life). Aikido reports five
nghttp2 vulnerabilities plus AIKIDO-2026-10423 for that version, and the
OpenSSL 3.0 series stopped receiving fixes in September 2026. Version 3.3.2
ships nghttp2 1.71.0 and OpenSSL 3.5.9.

### Changes

- `@getinsomnia/node-libcurl` bumped from 3.3.0 to 3.3.2 in the root
  workspace, `packages/insomnia` and `packages/insomnia-data`; the
  `allowScripts` entry follows the version.
- Smoke server: new HTTP/2-only listener on port 4012 (`allowHTTP1: false`)
  that echoes the negotiated protocol, plus `http2.test.ts`, which asserts
  `200 OK` and `"httpVersion": "2.0"`.
- Specs whose behaviour depends on the native binding are tagged `@libcurl`
  (`http2`, `mtls`, `ipv6`) and run on Windows through a new `test-windows`
  job. It is a separate job rather than another `test` matrix axis, so the
  existing Linux shard check names stay `test (1, 6)` … `test (6, 6)`.
- Smoke server resolves `git-receive-pack` and `git-upload-pack` via
  `git --exec-path`; they are not on PATH on Windows, which broke every
  `git-*` spec there.

### Verification

- `npm ci` installs 3.3.2 and downloads
  `v3.3.2/node_libcurl-v3.3.2-electron-v43.2-<platform>.tar.gz`;
  `npm run type-check` passes.
- Windows E2E against the 1.71.0 binary: three `@libcurl` specs pass
  (`http2`, `ipv6`, `mtls`).
- Release assets for `win32-x64` (node and electron) contain nghttp2 1.71.0,
  no 1.47.0, and OpenSSL 3.5.9.
- `curl --http2` returns `httpVersion: 2.0` against the new endpoint while
  `curl --http1.1` is rejected, so the assertion cannot pass on a fallback.
- `git-*` specs pass locally with the `--exec-path` resolution.

### References

- INS-4174, INS-4179
- Kong/node-libcurl#120, Kong/curl-for-windows#4
ZxBing0066 added a commit to Kong/insomnia that referenced this pull request Nov 18, 2026
### Background

3.3.0 ships Windows binaries that link nghttp2 1.47.0 and the end-of-life OpenSSL 3.0.7. Aikido reports five nghttp2 vulnerabilities plus AIKIDO-2026-10423, and OpenSSL 3.0 stopped receiving fixes in September 2026. 3.3.2 ships nghttp2 1.71.0 and OpenSSL 3.5.9.

### Changes

- `@getinsomnia/node-libcurl` 3.3.0 → 3.3.2 in the root workspace, `packages/insomnia` and `packages/insomnia-data`; `allowScripts` follows.
- Smoke server: HTTP/2-only listener on 4012 (`allowHTTP1: false`) echoing the negotiated protocol; `http2.test.ts` asserts `200 OK` and `"httpVersion": "2.0"`.
- Binding-dependent specs tagged `@libcurl` (`http2`, `mtls`, `ipv6`) run on Windows in a new `test-windows` job; a separate job keeps the Linux shard check names `test (1, 6)` … `test (6, 6)` unchanged.
- Smoke server resolves `git-receive-pack` / `git-upload-pack` via `git --exec-path`; they are not on PATH on Windows, which broke `git-*` specs.

`npm ci` installs 3.3.2 and downloads the v3.3.2 asset, `type-check` passes, the three `@libcurl` specs pass on Windows, and the `win32-x64` assets contain nghttp2 1.71.0 and OpenSSL 3.5.9.

### References

- INS-4174, INS-4179
- Kong/node-libcurl#120, Kong/curl-for-windows#4
ZxBing0066 added a commit to Kong/insomnia that referenced this pull request Nov 18, 2026
### Background

3.3.0 ships Windows binaries that link nghttp2 1.47.0 and the end-of-life OpenSSL 3.0.7. Aikido reports five nghttp2 vulnerabilities plus AIKIDO-2026-10423, and OpenSSL 3.0 stopped receiving fixes in September 2026. 3.3.2 ships nghttp2 1.71.0 and OpenSSL 3.5.9.

### Changes

- `@getinsomnia/node-libcurl` 3.3.0 → 3.3.2 in the root workspace, `packages/insomnia` and `packages/insomnia-data`; `allowScripts` follows.
- Smoke server: HTTP/2-only listener on 4012 (`allowHTTP1: false`) echoing the negotiated protocol; `http2.test.ts` asserts `200 OK` and `"httpVersion": "2.0"`.
- Binding-dependent specs tagged `@libcurl` (`http2`, `mtls`, `ipv6`) run on Windows in a new `test-windows` job; a separate job keeps the Linux shard check names `test (1, 6)` … `test (6, 6)` unchanged.
- Smoke server resolves `git-receive-pack` / `git-upload-pack` via `git --exec-path`; they are not on PATH on Windows, which broke `git-*` specs.

`npm ci` installs 3.3.2 and downloads the v3.3.2 asset, `type-check` passes, the three `@libcurl` specs pass on Windows, and the `win32-x64` assets contain nghttp2 1.71.0 and OpenSSL 3.5.9.

### References

- INS-4174, INS-4179
- Kong/node-libcurl#120, Kong/curl-for-windows#4
ZxBing0066 added a commit to Kong/insomnia that referenced this pull request Nov 18, 2026
### Background

3.3.0 ships Windows binaries that link nghttp2 1.47.0 and the end-of-life OpenSSL 3.0.7. Aikido reports five nghttp2 vulnerabilities plus AIKIDO-2026-10423, and OpenSSL 3.0 stopped receiving fixes in September 2026. 3.3.2 ships nghttp2 1.71.0 and OpenSSL 3.5.9.

### Changes

- `@getinsomnia/node-libcurl` 3.3.0 → 3.3.2 in the root workspace, `packages/insomnia` and `packages/insomnia-data`; `allowScripts` follows.
- Smoke server: HTTP/2-only listener on 4012 (`allowHTTP1: false`) echoing the negotiated protocol; `http2.test.ts` asserts `200 OK` and `"httpVersion": "2.0"`.
- Binding-dependent specs tagged `@libcurl` (`http2`, `mtls`, `ipv6`) run on Windows in a new `test-windows` job; a separate job keeps the Linux shard check names `test (1, 6)` … `test (6, 6)` unchanged.
- Smoke server resolves `git-receive-pack` / `git-upload-pack` via `git --exec-path`; they are not on PATH on Windows, which broke `git-*` specs.

`npm ci` installs 3.3.2 and downloads the v3.3.2 asset, `type-check` passes, the three `@libcurl` specs pass on Windows, and the `win32-x64` assets contain nghttp2 1.71.0 and OpenSSL 3.5.9.

### References

- INS-4174, INS-4179
- Kong/node-libcurl#120, Kong/curl-for-windows#4
ZxBing0066 added a commit to Kong/insomnia that referenced this pull request Nov 18, 2026
### Background

3.3.0 ships Windows binaries that link nghttp2 1.47.0 and the end-of-life OpenSSL 3.0.7. Aikido reports five nghttp2 vulnerabilities plus AIKIDO-2026-10423, and OpenSSL 3.0 stopped receiving fixes in September 2026. 3.3.2 ships nghttp2 1.71.0 and OpenSSL 3.5.9.

### Changes

- `@getinsomnia/node-libcurl` 3.3.0 → 3.3.2 in the root workspace, `packages/insomnia` and `packages/insomnia-data`; `allowScripts` follows.
- Smoke server: HTTP/2-only listener on 4012 (`allowHTTP1: false`) echoing the negotiated protocol; `http2.test.ts` asserts `200 OK` and `"httpVersion": "2.0"`.
- Binding-dependent specs tagged `@libcurl` (`http2`, `mtls`, `ipv6`) run on Windows in a new `test-windows` job; a separate job keeps the Linux shard check names `test (1, 6)` … `test (6, 6)` unchanged.
- Smoke server resolves `git-receive-pack` / `git-upload-pack` via `git --exec-path`; they are not on PATH on Windows, which broke `git-*` specs.

`npm ci` installs 3.3.2 and downloads the v3.3.2 asset, `type-check` passes, the three `@libcurl` specs pass on Windows, and the `win32-x64` assets contain nghttp2 1.71.0 and OpenSSL 3.5.9.

### References

- INS-4174, INS-4179
- Kong/node-libcurl#120, Kong/curl-for-windows#4
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.

2 participants