RepoJournal
Go

@golang

Go and the standard library - backend infrastructure at scale

Keep up with Go in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Go Infrastructure Full archive →

The Wire · Showcase

GO PATCHES TEMPLATE INJECTION FLAW, HTTP/2 GOROUTINE LEAK

By RepoJournal · Filed · About Go

Go shipped a security fix for html/template that blocks JavaScript regexp injection attacks, while simultaneously addressing a goroutine accumulation bug in HTTP/2 transports that could exhaust memory on long-lived connections.

The template injection fix [1] prevents attackers from closing unescaped forward slashes early, a pathological input that previously allowed arbitrary content injection. This tracks the invariant first hinted at in related work [3]. Separately, Brad Fitzpatrick landed a critical fix [2] that lets HTTP/2 Transport request-write goroutines exit immediately after sending the request, rather than parking until stream end. For clients with many concurrent long-lived response streams like event subscriptions or long polls, that fix eliminates a parked goroutine and its stack per stream. The golang/text team also patched a buffer overflow in the PRECIS Nickname profile [4], which was writing interior spaces without checking destination capacity first, now properly returning ErrShortDst on overflow. Across both repos, 4 commits landed overnight addressing memory efficiency and injection hardening.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] html/template: fix JavaScript regexp tracking golang/go
  2. [2] net/http/internal/http2: let Transport's request-write goroutine exit early golang/go
  3. [3] encoding/json/v2: modify documentation golang/go
  4. [4] secure/precis: fix short destination buffer handling in Nickname profile golang/text

Quick answers

What shipped in Go on August 6, 2026?
Go shipped a security fix for html/template that blocks JavaScript regexp injection attacks, while simultaneously addressing a goroutine accumulation bug in HTTP/2 transports that could exhaust memory on long-lived connections. In total, 4 commits landed.
Who contributed to Go on August 6, 2026?
4 developers shipped this update, including Neal Patel, Brad Fitzpatrick, Jonathan Amsterdam, and Ian Alexander.
What were the notable Go updates?
html/template: fix JavaScript regexp tracking, net/http/internal/http2: let Transport's request-write goroutine exit early, and encoding/json/v2: modify documentation.

More from @golang

Daily updates, in your inbox

Follow Go

Keep up with Go in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?