Crystal 1.22.3
Crystal 1.22.3, published November 13, 2026, is a security-driven patch release. Eight of its eleven changes carry a security or correctness marker, and every one of them sits in the standard library rather than the compiler. There are no new language features, no deprecations, and no shard ecosystem impact beyond the usual version pin.
What Changed
The HTTP client and server stack received the heaviest attention. Four separate fixes harden request parsing: HTTP headers now reject control whitespace before a field value (PR #17903), the close token in the Connection header is enforced so the connection actually closes (PR #17904), HTTP::ChunkedContent validates its chunk line (PR #17898), and the content-length header is validated (PR #17902). All four are credited to @ysbaddaden and address the class of request-smuggling and framing ambiguity bugs that have hit every HTTP implementation at some point.
IO::Delimited no longer mismatches after a fragmented delimiter is split across reads (PR #17916), which matters for servers reading delimited bodies over slow or chunked connections. On the networking side, getaddrinfo now validates that the requested service is in range (PR #17848), closing a gap in argument validation before it reaches the resolver.
Why It Matters
Crystal's standard library ships its own HTTP stack, so applications built on HTTP::Server or HTTP::Client inherit these fixes directly. Frameworks such as Kemal and Lucky will pick them up with a routine version bump. The fixes are concentrated in request parsing rather than in TLS or crypto, which suggests the maintainers are working through a systematic audit of protocol handling. That is good news, and it also means another patch in this series is plausible.
Two additional hardening changes round out the release. Bcrypt now rejects malformed hashes instead of accepting them (PR #17677), and the IO-based JSON lexer rejects NUL bytes (PR #17897). Neither is exploitable in the obvious way, but both remove inputs that should never have parsed.
The Regression Fix
One change repairs a regression rather than a vulnerability. Enum.parse? restores its maximum bytesize buffer limit (PR #17836), so parsing very large enumerable input no longer risks runaway memory. If you upgraded to 1.22.0 through 1.22.2 and saw memory growth in code that converts large collections with Enum.parse?, this is the fix you were waiting for.
Platform Notes
On Windows, File.symlink now discovers the target file type (PR #17742), so symlinks to directories behave correctly instead of being treated as file links. Process::INITIAL_PWD now ignores access-denied errors when resolving the initial working directory (PR #17748), which removes a startup failure on locked-down filesystems. Both are Windows-specific and invisible on Linux and macOS.
What's Next
Upgrade with your usual channel: brew upgrade crystal on macOS, the official archives for Linux, or the Chocolatey and Scoop packages on Windows. Because this is a patch release with binary-incompatible behavior only in error paths, existing compiled applications need a recompile but no source changes. The 1.23 development line remains in progress, with no date announced.