Software Engineering

Node.js 24.23.0 LTS adds Buffer.stringLength, HTTP header validators and perf_hooks histogram diff

Key Takeaway

Node.js 24.23.0 'Krypton' LTS lands several semver-minor APIs — Buffer.stringLength(), Buffer.isLatin1, http.isValidHeaderName/Value, perf_hooks histogram.diff()/snapshot() — alongside a large Web Crypto and test_runner overhaul.

Summary

Node.js 24.23.0, codenamed 'Krypton' and published as an LTS release on 2026-11-30 by Antoine du Hamel, bundles a set of semver-minor additions to core modules. The buffer module gains Buffer.stringLength() and isLatin1, the http module exposes isValidHeaderName() and isValidHeaderValue(), and perf_hooks adds histogram.diff() and histogram.snapshot() with hardened CBOR import validation. The process module graduates process.ref/unref out of experimental status and now returns an unregister function from finalization registration.

The release also reworks internals: the test runner switches from async_hooks to AsyncLocalStorage and adds a --test-coverage-include-all flag, while the crypto layer receives a broad set of Web Crypto changes covering key locking removal, Argon2 derivation without worker threads, KMAC/cSHAKE backend usage and FIPS state handling. Build and tooling fixes touch Python 3.15 support, clang PGO on macOS/Linux, macOS runners and Xcode, and child_process permission-flag propagation. Alpine Linux is promoted to Tier 2 support in the documentation.

What changes in Node.js 24.23.0 LTS

  • Buffer APIs: Buffer.stringLength() and Buffer.isLatin1 are added as semver-minor additions, alongside fixes for negative indexing on large buffers and an odd UTF-16LE indexOf start offset.
  • HTTP validation: http.isValidHeaderName() and isValidHeaderValue() expose header validation directly to user code, with a matching benchmark added for the header validator.
  • perf_hooks histograms: histogram.diff() and histogram.snapshot() are new, and histogram CBOR import validation is hardened to reject malformed input.
  • Crypto internals: Web Crypto work removes key export, KEM, verify-setup and RSA-OAEP locking, derives Argon2 without worker threads, uses backend cSHAKE/KMAC, checks PBKDF2 iteration limits and reports actual RSA modulus lengths.
  • test_runner and process: the test runner moves to AsyncLocalStorage instead of async_hooks and gains --test-coverage-include-all; process.ref/unref graduate from experimental and finalization registration returns an unregister function.

Why it matters

LTS consumers on Node.js 24 can adopt the new Buffer, HTTP and perf_hooks APIs without waiting for the next major line, which matters for libraries that validate headers or measure latency histograms in production. The crypto locking removals and Argon2 changes reduce contention in Web Crypto-heavy services, while the test runner's move to AsyncLocalStorage and the new coverage flag simplify CI configuration. Promoting Alpine Linux to Tier 2 gives musl-based container builds a clearer support commitment from the project.

What to do

  • Update to Node.js version 24.23.0 (LTS).

Original reference: nodejs.org →