
The ntfy project shipped server version 2.38.1 on November 16, and it is a security release through and through. The headline fix hardens message templating against a set of denial-of-service attacks in which a single crafted template could crash the server, exhaust its memory, or outrun the execution deadline in one request. The GitHub release, tagged the same day, says it plainly: Upgrading is strongly recommended. Independent tracking by Freedom.Tech confirms the release date and the security framing.
ntfy is the HTTP pub-sub notification service a lot of homelabs quietly depend on: one POST from a backup script, an Uptime Kuma check, or a Home Assistant automation becomes a push notification on your phone. That ubiquity is why this release matters — the alerting box is usually reachable from everything else on the network, and the vulnerable surface is templates, which the release notes describe as usable by any publisher.
The templating engine turns small expressions into message text, and several of its functions could be coaxed into doing unbounded work. Version 2.38.1 puts six separate constraints around that, per the official release notes:
printf now accepts only plain directives — no explicit argument indexes or %p — and no longer takes lists or dicts as arguments, while the html, js, and urlquery functions are disallowed entirely.regexMatch, regexFind, regexReplaceAll, and friends, plus their must variants) rejects patterns longer than 1024 bytes or compiling to more than 5000 instructions.cat, concat, and toPrettyJSON, and list sizes for uniq, without, and has.until, untilStep, and seq now covers decreasing sequences, closing an unbounded-list trick with a negative step.Two resource-exhaustion fixes outside templating come along for the ride. S3 attachment uploads of unknown size are now buffered in small chunks as data arrives instead of allocating a full 5 MB part up front, so slow or stalled uploads stop pinning 5–10 MB of memory each. Web push deliveries get a timeout with the push-service response always closed, so unresponsive endpoints stop leaking connections and goroutines — and a timeout no longer deletes the subscription. The web push subscription limit is now counted per IP prefix rather than per full address, so rotating addresses inside one IPv6 /64 no longer bypasses it. A Stripe billing fix stops an expired abandoned checkout from replacing a subscription the user actually paid for.
Version 2.38.1 lands right on top of 2.38.0, tagged November 14, which fixed its own templating denial-of-service: replace, regexReplaceAll, and join could amplify small inputs into a multi-gigabyte string and crash the server with an out-of-memory error. That flaw was responsibly disclosed by Robert Flosbach of Neodyme, and Freedom.Tech's rundown of 2.38.0 covers it alongside the release's other headline — cluster nodes now share every visitor's rate limits over the mesh every second, so a client spread across nodes is limited once instead of once per node, and a restarted node inherits limits from its peers. Both releases also build on Go 1.27.4, which carries its own security fixes.
The pattern is worth naming: the templating engine keeps yielding new amplification tricks, and the maintainer is answering each one with hard caps. If you held off on 2.38.0, 2.38.1 covers both rounds.
If you self-host ntfy and anyone or anything beyond your full trust boundary can publish to it, treat this as a patch-now update. The release notes recommend upgrading specifically for servers that allow message templates, which they describe as available to any publisher — and a homelab ntfy instance typically accepts publishes from every script, container, and automation on the network. No CVE identifiers were published with either release, and neither the notes nor the trackers mention in-the-wild exploitation, so this reads as proactive hardening rather than incident response — but a remotely crashable notification server is exactly the kind of thing you fix before it matters.
Upgrading is routine. The Docker tags v2.38.1 and latest were both refreshed on November 16, so a compose pull and recreate picks it up, and the GitHub release carries deb, rpm, and tar.gz builds from ARMv6 up through 64-bit alongside Windows and macOS archives. Check the running version afterward against v2.38.1 — and while you are there, confirm your topics that should be private actually require auth, since a template-capable publisher was the whole attack surface here.
Log in to comment.