Hugo 0.163.3
Bjorn Lee Peterson and the Hugo team have shipped version 0.163.3, a patch release that landed on June 18, 2026. While not a headline-grabbing feature release, this update addresses several important quality-of-life issues in Hugo's markup rendering and asset pipeline.
What Changed
Code block security fix. The highlight rendering pipeline now properly escapes the lang attribute in default code block output. This fixes a potential cross-site scripting vector when user-supplied content includes crafted language tags. The issue was reported by community member @k0ngj1 and patched by @bep.
Non-ASCII whitespace preservation. The page parser now correctly preserves non-ASCII whitespace characters after elements like the summary divider. This matters for multilingual sites where typographic spaces (non-breaking spaces, thin spaces, etc.) appear in content — these are no longer silently stripped during parsing.
Why It Matters
Babel/PostCSS config variants. Hugo's resource pipeline now supports configuration variants for Babel and PostCSS. This is a developer experience win for sites that need different transpilation or post-processing settings across environments — development versus production, for instance, or different styling for different sections of a site. The change supports Hugo issue references #15039, #15040, and #15043, suggesting this was a multi-pronged community request.
Page/section name collision fix. A regression introduced in a previous release caused naming collisions between pages and sections in certain directory structures. When a content directory contained both a section index and a page with a similar name, Hugo could confuse the two, leading to incorrect routing or missing pages. This has been resolved by @jmooring in commit f0133466.
What's Next
Hugo 0.163.3 is the latest stable release in the v0.163 track. The team continues to iterate on AVIF image handling, which was the marquee feature of v0.162.0. Users can expect further refinements to image processing and continued performance improvements in upcoming releases.
To upgrade, run brew upgrade hugo on macOS, grab the latest binary from GitHub Releases, or use your package manager of choice.