tag:github.com,2008:https://github.com/binwiederhier/ntfy/releases Release notes from ntfy 2026-11-24T03:58:36Z tag:github.com,2008:Repository/420503947/v2.38.2 2026-11-24T13:23:35Z v2.38.2 <p>This is a security release. It upgrades the SMTP server library used for e-mail publishing, which fixes a memory exhaustion attack, and closes two holes in topic reservations, where a user could reserve topics covered by an admin's wildcard access entry, or reserve topics at all on a tier without reservations. It also stops clients behind proxies like HAProxy from spoofing their IP address to get around rate limits. Upgrading is recommended if you enable e-mail publishing, reservations, or run ntfy behind a proxy.</p> <p><strong>Security:</strong></p> <ul> <li>E-mail publishing: upgrade the SMTP server library (<a href="https://github.com/emersion/go-smtp">go-smtp</a>) from v0.17.0 to v0.26.0, which fixes unbounded memory allocation when a client sends a command between two <code>BDAT</code> chunks (<a href="https://pkg.go.dev/vuln/GO-2026-7029" rel="nofollow">GO-2026-7029</a>); incoming mail now has to use CRLF line endings, as required by the SMTP standard</li> <li>Reservations: wildcard access entries with an underscore (e.g. <code>mytopic_*</code>) now block reservations of topics they cover, so users can no longer reserve a topic inside such a namespace and become its owner (thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DogukanK/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DogukanK">@DogukanK</a> for reporting)</li> <li>Reservations: users on a tier with a reservation limit of 0 can no longer reserve topics (the limit was treated as unlimited) (thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DogukanK/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DogukanK">@DogukanK</a> for reporting)</li> <li>Rate limiting: read all <code>X-Forwarded-For</code> (or configured proxy header) lines, not just the first, so clients behind proxies like HAProxy can no longer spoof their IP address to bypass the per-IP rate and login limits (thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/immanuel-lam/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/immanuel-lam">@immanuel-lam</a> for reporting)</li> </ul> <p><strong>Bug fixes + maintenance:</strong></p> <ul> <li>Web app: the config hash is now the same on all nodes of a cluster, so the web app no longer asks for a refresh when a version check lands on another node, and it no longer covers the database and S3 URLs (which can contain credentials)</li> <li>Firebase: log the HTTP status, <code>Retry-After</code> header and response body of failed sends, to help diagnose quota errors (<a href="https://github.com/binwiederhier/ntfy/pull/2222" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2222/hovercard">#2222</a>)</li> <li>E-mail publishing: line breaks in messages published by e-mail no longer contain a carriage return (<code>\r</code>) from the mail's CRLF line endings</li> <li>Update Go and web app dependencies</li> </ul> github-actions[bot] tag:github.com,2008:Repository/420503947/v2.38.1 2026-11-16T11:38:39Z v2.38.1 <p>This is a security release. It hardens message templating against a set of denial-of-service attacks, where a crafted template could crash the server, exhaust its memory or outrun the execution deadline in a single request. It also stops slow S3 attachment uploads and unresponsive web push endpoints from tying up memory, connections and goroutines, and applies the web push subscription limit per IP prefix. <strong>Upgrading is strongly recommended</strong>.</p> <p><strong>Security:</strong></p> <ul> <li>Message templating: values are now checked before they are printed or JSON-encoded, so a template can no longer crash the server by printing a value that references itself, or build a huge string by printing a list of many references to one value</li> <li>Message templating: <code>printf</code> only accepts plain directives (no explicit argument indexes or <code>%p</code>) and no lists or dicts as arguments, and the <code>html</code>, <code>js</code> and <code>urlquery</code> functions are no longer allowed</li> <li>Message templating: the execution deadline is now also enforced inside a single template action, so a long pipeline or deeply nested function calls can no longer outrun it</li> <li>Message templating: the <code>regexMatch</code>, <code>regexFind</code>, <code>regexFindAll</code>, <code>regexReplaceAll</code>, <code>regexReplaceAllLiteral</code> and <code>regexSplit</code> functions (and their <code>must</code> variants) now reject patterns longer than 1024 bytes or that compile to more than 5000 instructions, so a template can no longer make the server compile and run a huge regular expression</li> <li>Message templating: limit the result size of the <code>cat</code>, <code>toPrettyJSON</code>, <code>concat</code> and <code>keys</code> functions, and the list size of <code>uniq</code>, <code>without</code> and <code>has</code>, so a small template can no longer build a huge string or list in a single call</li> <li>Message templating: apply the iteration limit of <code>until</code>, <code>untilStep</code> and <code>seq</code> to decreasing sequences too, so a negative step can no longer build an unbounded list</li> <li>Attachments: buffer S3 uploads of unknown size in small chunks as data arrives, instead of allocating a full 5 MB part up front (and a second one for multipart uploads), so that slow or stalled uploads no longer pin 5-10 MB of memory each</li> <li>Web push: use a timeout for deliveries and always close the push service response, so slow or unresponsive push endpoints can no longer leak connections and goroutines; a timeout or network error no longer removes the subscription</li> <li>Web push: count the subscription limit per IP prefix (the same IPv6 /64 or configured prefix as all other limits) instead of per full IP address, so rotating addresses within one prefix no longer bypasses it</li> </ul> <p><strong>Bug fixes + maintenance:</strong></p> <ul> <li>Stripe billing: when an abandoned checkout expires (<code>incomplete_expired</code>) after the user paid for another subscription, the webhook no longer replaces the paying subscription with the expired one (<a href="https://github.com/binwiederhier/ntfy/pull/2199" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2199/hovercard">#2199</a>)</li> <li>Message templating: errors in an inline message template (<code>X-Message</code> with <code>X-Template: yes</code>) now name the message parameter instead of the priority parameter</li> </ul> github-actions[bot] tag:github.com,2008:Repository/420503947/v2.38.0 2026-11-14T08:03:26Z v2.38.0 <p>This release shares every visitor's rate limits across the nodes of a cluster: a client spread over several nodes is now limited once instead of once per node, and a node that restarts or crashes takes the limits over from its peers instead of forgetting them. It also fixes a denial-of-service bug in message templating, where a crafted template could build an oversized string and crash the server, and builds ntfy with Go 1.27.4 (security fixes).</p> <p><strong>Features:</strong></p> <ul> <li>Cluster: the nodes share every visitor's rate limits (requests, failed logins, signups and password resets, topic creation, e-mails, attachment bandwidth, Firebase pauses) over the mesh every second, so a client spread over several nodes gets its limits once, not once per node; a node that restarts or crashes takes the limits over from its peers before it serves (<a href="https://github.com/binwiederhier/ntfy/pull/2182" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2182/hovercard">#2182</a>)</li> </ul> <p><strong>Bug fixes + maintenance:</strong></p> <ul> <li>Message templating: the <code>replace</code>, <code>regexReplaceAll</code> and <code>join</code> functions now cap the size of the string they build, so a template can no longer amplify small inputs into a multi-gigabyte string and crash the server with an out-of-memory error (thanks to Robert Flosbach of Neodyme for the responsible disclosure)</li> <li>WebSocket subscribers that a node closes while draining are no longer counted and logged as internal server errors (HTTP 500, ntfy error 50001); on ntfy.sh, each node's drain counted ~18k of them and tripped the 5xx alert, although clients never saw an error (<a href="https://github.com/binwiederhier/ntfy/pull/2171" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2171/hovercard">#2171</a>)</li> </ul> <p><strong>Security:</strong></p> <ul> <li>Build with Go 1.27.4, which includes security fixes to cgo, the go command, the compiler, the linker and <code>net/http</code></li> </ul> github-actions[bot] tag:github.com,2008:Repository/420503947/v2.37.2 2026-11-04T01:45:20Z v2.37.2 <h2>Changelog</h2> <ul> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/binwiederhier/ntfy/commit/05109571fd0931affb6f92b17bbfd62c4d2ea68a/hovercard" href="https://github.com/binwiederhier/ntfy/commit/05109571fd0931affb6f92b17bbfd62c4d2ea68a"><tt>0510957</tt></a> Merge pull request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6194256944" data-permission-text="Title is private" data-url="https://github.com/binwiederhier/ntfy/issues/2169" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2169/hovercard" href="https://github.com/binwiederhier/ntfy/pull/2169">#2169</a> from binwiederhier/release-2380</li> </ul> github-actions[bot] tag:github.com,2008:Repository/420503947/v2.37.1 2026-11-02T18:46:15Z v2.37.1 <p>This release fixes a database slowdown in v2.37.0 when using <code>visitor-subscriber-rate-limiting</code> with a user database: the subscriber activity of UnifiedPush topics was written far too often.</p> <p><strong>Bug fixes + maintenance:</strong></p> <ul> <li>With <code>visitor-subscriber-rate-limiting</code> and a user database, write a UnifiedPush topic's subscriber activity every one to two hours instead of every 5 minutes, spread over time, and not at all when a poll or reconnect only repeats the same subscriber; on ntfy.sh, v2.37.0's writes of ~45k topics every 5 minutes, all due in the same minute, slowed down the database (<a href="https://github.com/binwiederhier/ntfy/pull/2151" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2151/hovercard">#2151</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/420503947/v2.37.0 2026-11-02T13:45:53Z v2.37.0 <p>This release makes UnifiedPush work across several servers: the subscriber who pays for a topic's pushes is shared through the database, and app servers are told with <code>410 Gone</code> when a subscription has been abandoned for 4 days. It also adds <code>Retry-After</code> and the draft <code>RateLimit</code> headers to rate limit responses, and frees the memory of one-off visitors sooner.</p> <p><strong>Features:</strong></p> <ul> <li>With <code>visitor-subscriber-rate-limiting</code>, the subscriber of a UnifiedPush topic (who pays for its pushes) is kept in the user database and shared by all servers, so a push to any server is billed to the subscriber instead of answered with 507 (<a href="https://github.com/binwiederhier/ntfy/pull/2136" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2136/hovercard">#2136</a>; see <a href="https://docs.ntfy.sh/config/#subscriber-based-rate-limiting" rel="nofollow">subscriber-based rate limiting</a>)</li> <li>Send a <code>Retry-After</code> header with HTTP 429 responses that are caused by a rate limit with a known wait, e.g. the request, e-mail or daily message limits (<a href="https://github.com/binwiederhier/ntfy/pull/2142" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2142/hovercard">#2142</a>; see <a href="https://docs.ntfy.sh/config/#rate-limiting" rel="nofollow">rate limiting</a>)</li> <li>Send the IETF draft <code>RateLimit-Policy</code> and <code>RateLimit</code> headers with publish responses (and with every 429 caused by a limit with a quota), for the request and daily message limits (<a href="https://github.com/binwiederhier/ntfy/pull/2143" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2143/hovercard">#2143</a>; see <a href="https://docs.ntfy.sh/config/#rate-limiting" rel="nofollow">rate limiting</a>)</li> <li>New metric <code>ntfy_topics_unifiedpush_total</code>: the UnifiedPush topics whose subscriber state a server keeps in memory (<a href="https://github.com/binwiederhier/ntfy/pull/2136" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2136/hovercard">#2136</a>)</li> </ul> <p><strong>Behavior changes:</strong></p> <ul> <li>With <code>visitor-subscriber-rate-limiting</code>, a UnifiedPush push to a topic that has had no subscriber (subscribe, poll or open stream) for 4 days is answered with <code>410</code> (error code 41002) instead of <code>507</code>, so app servers like Mastodon remove the expired subscription (<a href="https://github.com/binwiederhier/ntfy/issues/664" data-hovercard-type="issue" data-hovercard-url="/binwiederhier/ntfy/issues/664/hovercard">#664</a>, <a href="https://github.com/binwiederhier/ntfy/pull/2136" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2136/hovercard">#2136</a>); a Matrix push to such a topic gets its pushkey rejected (before: after 12 hours without a subscriber on the server that got the push)</li> <li>With <code>visitor-subscriber-rate-limiting</code>, UnifiedPush messages are counted against the subscriber's account only while it has a tier, and against the subscriber's IP address otherwise (also after the account lost its tier or was deleted); a tier change applies to the next message (<a href="https://github.com/binwiederhier/ntfy/pull/2136" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2136/hovercard">#2136</a>)</li> <li>Ban feed: weights may be fractional (down to <code>0.001</code>), auth failures (<code>42909</code>) now weigh 2 instead of 10, and a UnifiedPush push without a subscriber (<code>50701</code>) or to an abandoned topic (<code>41002</code>) weighs 0.05, so app servers pushing to many offline phones are not banned for it (<a href="https://github.com/binwiederhier/ntfy/pull/2147" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2147/hovercard">#2147</a>)</li> <li>The rate limit state of a visitor is forgotten about a minute after it has fully recovered (all buckets refilled) instead of after a day without use, which frees the memory of one-off visitors such as floods of new IPs. The <code>visitors</code> stat and the <code>ntfy_visitors_total</code> metric therefore count the visitors of roughly the last minute, not of the last day (<a href="https://github.com/binwiederhier/ntfy/pull/2126" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2126/hovercard">#2126</a>)</li> <li>Topics without subscribers are dropped from memory after 6 hours without use instead of 16; a publish to such a topic recreates it (and counts against <code>visitor-topic-creation-limit-burst</code>) (<a href="https://github.com/binwiederhier/ntfy/pull/2136" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2136/hovercard">#2136</a>)</li> </ul> <p><strong>Bug fixes + maintenance:</strong></p> <ul> <li>With PostgreSQL and several servers, daily usage a server counted in the last seconds of a visitor's 24-hour period is no longer added to the next period (a double count); it is dropped instead (<a href="https://github.com/binwiederhier/ntfy/pull/2136" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2136/hovercard">#2136</a>)</li> <li>Cluster: a forwarded message for a topic without subscribers on the receiving node now counts as wasted (<code>ntfy_cluster_messages_wasted_total</code>) and no longer keeps that idle topic in memory (<a href="https://github.com/binwiederhier/ntfy/pull/2140" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2140/hovercard">#2140</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/420503947/v2.36.0 2026-10-31T18:16:30Z v2.36.0 <p>This release keeps the daily limits across restarts and, with PostgreSQL, shares them between servers, so a visitor gets one daily allowance in total. Each visitor's day now starts at its own time instead of midnight UTC. It also adds an experimental local admin socket.</p> <p><strong>Features:</strong></p> <ul> <li>Daily limits (messages, e-mails, phone calls) are stored in the user database, so they survive restarts; with PostgreSQL, all servers share them. Each visitor's day starts at its own time instead of midnight UTC, and the account page and <code>/v1/account</code> (<code>stats.reset_at</code>) show when it resets (<a href="https://github.com/binwiederhier/ntfy/pull/2131" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2131/hovercard">#2131</a>, see <a href="https://docs.ntfy.sh/config/#message-limits" rel="nofollow">message limits</a>)</li> <li>Experimental local admin socket (<code>experimental-listen-admin-unix</code>, off by default) that serves the admin API without credentials to whoever can open it; the shipped systemd unit sets <code>RuntimeDirectory=ntfy</code> for it (see <a href="https://docs.ntfy.sh/config/#admin-socket" rel="nofollow">admin socket</a>)</li> <li>Export <code>ntfy_db_up</code> per PostgreSQL pool, and health-check the primary like the replicas (<a href="https://github.com/binwiederhier/ntfy/pull/2133" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2133/hovercard">#2133</a>)</li> </ul> <p><strong>Upgrade notes:</strong></p> <ul> <li>Everyone's daily counts start over at the upgrade: the <code>stats_*</code> columns of the user table are zeroed and no longer used</li> <li>Servers that share a PostgreSQL database must keep their clocks in sync (NTP)</li> <li>Visitors without a tier have a daily e-mail limit again (24h / <code>visitor-email-limit-replenish</code>)</li> <li>The whole server config is checked again when <code>base-url</code> or a <code>message-size-limit</code> above 4K is set, so an invalid config that used to start now fails at startup (<a href="https://github.com/binwiederhier/ntfy/pull/1969" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/1969/hovercard">#1969</a>, thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikejgray/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikejgray">@mikejgray</a> for the contribution)</li> </ul> <p><strong>Bug fixes + maintenance:</strong></p> <ul> <li>Web app: Messages replayed by a poll or a reconnect no longer bring back deleted notifications, lose their read state or notify again (<a href="https://github.com/binwiederhier/ntfy/issues/2098" data-hovercard-type="issue" data-hovercard-url="/binwiederhier/ntfy/issues/2098/hovercard">#2098</a>, <a href="https://github.com/binwiederhier/ntfy/issues/2090" data-hovercard-type="issue" data-hovercard-url="/binwiederhier/ntfy/issues/2090/hovercard">#2090</a>, thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mattford63/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mattford63">@mattford63</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/arminus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/arminus">@arminus</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tobykaspar79/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tobykaspar79">@tobykaspar79</a> for reporting)</li> <li>CLI: <code>ntfy pub --wait-pid</code> now waits for processes owned by other users instead of failing with "not running" (<a href="https://github.com/binwiederhier/ntfy/pull/1710" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/1710/hovercard">#1710</a>, thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bekoeppel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bekoeppel">@bekoeppel</a> for the contribution)</li> <li>Admin API (internal): manage other users' tokens, tiers and password reset links, return 4xx instead of 500 for invalid input, and remove a deleted user's web push subscriptions</li> </ul> github-actions[bot] tag:github.com,2008:Repository/420503947/v2.35.0 2026-10-30T20:31:52Z v2.35.0 <p>This release keeps what a user already spent when their tier changes, and makes a tier's daily email limit a hard cap. It also fixes intermittent 403s under concurrent requests from the same IP, and the Matrix push gateway storing messages under a protected topic on SQLite.</p> <p><strong>Security:</strong></p> <ul> <li>Reject Matrix push gateway requests whose push key does not name a valid topic. Publishing strips NUL bytes and invalid UTF-8 from the topic after authorization, so an anonymous push key like <code>/sec%00ret</code> was authorized against an unmatched topic and then stored under the protected topic <code>secret</code> (SQLite only; on PostgreSQL the request was denied; thanks to <a href="https://github.com/the-arma-of-owl">Efe Çam</a> for reporting)</li> </ul> <p><strong>Features:</strong></p> <ul> <li>A tier change (an upgrade, a downgrade, or a tier edited in place) applies on the user's next request and keeps what was already spent; before, it refilled the request, email and attachment bandwidth limits (<a href="https://github.com/binwiederhier/ntfy/pull/2104" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2104/hovercard">#2104</a>, <a href="https://github.com/binwiederhier/ntfy/pull/2105" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2105/hovercard">#2105</a>)</li> <li>A tier's daily email limit is a hard cap; before, the tier's email burst came on top of it, so a user could send more emails a day than the tier allows</li> </ul> <p><strong>Bug fixes + maintenance:</strong></p> <ul> <li>Fix intermittent 403s and panics in the account handlers under concurrent requests from the same IP: a login or logout could change the user under another request, so a request with valid credentials was treated as anonymous, or the other way around. Every request now gets its own visitor (<a href="https://github.com/binwiederhier/ntfy/issues/1051" data-hovercard-type="issue" data-hovercard-url="/binwiederhier/ntfy/issues/1051/hovercard">#1051</a>, <a href="https://github.com/binwiederhier/ntfy/issues/2113" data-hovercard-type="issue" data-hovercard-url="/binwiederhier/ntfy/issues/2113/hovercard">#2113</a>, <a href="https://github.com/binwiederhier/ntfy/pull/2118" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2118/hovercard">#2118</a>, thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ivanetinajero/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ivanetinajero">@ivanetinajero</a> for reporting)</li> <li>A tier with a daily email limit of zero sends no emails; before, it could still send the server's email burst (<code>visitor-email-limit-burst</code>)</li> <li>An attachment upload rejected at a size limit is no longer charged to the attachment bandwidth limit for the part that went over</li> <li>Rate limits live in one shared limit service, keyed by <code>ip:&lt;prefix&gt;</code> or <code>user:&lt;id&gt;</code>, instead of in each visitor, which uses less memory per visitor and takes a global lock off the request path</li> <li>Accept terabyte units (e.g. <code>1T</code>) in size settings such as attachment and tier limits, matching how sizes are displayed (<a href="https://github.com/binwiederhier/ntfy/pull/2078" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/2078/hovercard">#2078</a>, thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cangen185-sudo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cangen185-sudo">@cangen185-sudo</a> for the contribution)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/420503947/v2.34.0 2026-10-24T19:26:17Z v2.34.0 <p>This release prepares the experimental cluster to run behind load balancers: nodes drain on shutdown instead of dropping all of their clients at once, ntfy can listen on several addresses, and access changes reach every node. It also fixes a revoked or deleted user keeping some of their subscriptions, on every server.</p> <p><strong>Features:</strong></p> <ul> <li>Allow several comma-separated addresses in <code>listen-http</code>, so a load balancer can hold more than ~63k connections to one ntfy node</li> <li>Cluster nodes drain on shutdown: an active node withdraws (stops being ready), then turns read-only and closes its subscriber connections gradually (<code>experimental-cluster-drain-delay</code>, <code>experimental-cluster-drain-duration</code>), so its clients move to the other nodes without a reconnect storm (experimental, see <a href="https://docs.ntfy.sh/config/#draining-on-shutdown" rel="nofollow">draining on shutdown</a>)</li> </ul> <p><strong>Security:</strong></p> <ul> <li>End all of a user's subscriptions when their access to a topic is reset or the user is deleted: only the first one was ended, so the others kept receiving the topic's messages (<a href="https://github.com/binwiederhier/ntfy/pull/1845" data-hovercard-type="pull_request" data-hovercard-url="/binwiederhier/ntfy/pull/1845/hovercard">#1845</a>, thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gigioneggiando/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gigioneggiando">@gigioneggiando</a> for reporting)</li> <li>In an experimental cluster, tell the other nodes when access changes (e.g. a reservation or a revoked permission), so they reload their access cache and disconnect subscribers who lost access; the access cache reload also catches changes made elsewhere, e.g. by the <code>ntfy access</code> CLI, and now runs every 67 seconds instead of 87</li> </ul> <p><strong>Bug fixes + maintenance:</strong></p> <ul> <li>Fix a deadlock when ending subscriptions (reserving a topic with live subscribers, revoking access, deleting a user) while debug logging or <code>log-level-overrides</code> is on: the subscriptions' topic stayed locked for good</li> <li>Fix a data race when <code>log-level-overrides</code> changes (e.g. on a config reload with SIGHUP) while the server logs</li> </ul> github-actions[bot] tag:github.com,2008:Repository/420503947/v2.33.1 2026-10-23T02:39:28Z v2.33.1 <p>This release builds ntfy with Go 1.27.3 (security fixes, including rejecting the compromised eMudhra intermediate CAs), and adds monitoring for the experimental cluster: each node's view of its peers, per-peer and database connection pool metrics.</p> <p><em>The v2.33.0 release had an issue that made it crash on older CPU architectures. The v2.33.1 release fixes that (see <a href="https://github.com/binwiederhier/ntfy/issues/2092" data-hovercard-type="issue" data-hovercard-url="/binwiederhier/ntfy/issues/2092/hovercard">#2092</a>).</em></p> <p><strong>Features:</strong></p> <ul> <li>Show each cluster node's view of its peers with <code>ntfy cluster status</code>, <code>/v1/cluster/status</code> on the cluster listener, and per-peer metrics, so a link that only works in one direction is visible (experimental clustering, see <a href="https://docs.ntfy.sh/config/#cluster-status" rel="nofollow">cluster status</a>)</li> <li>Export PostgreSQL connection pool metrics (<code>ntfy_db_pool_*</code>: connections in use, and queries that waited for a free connection, per pool), to size <code>pool_max_conns</code> (see <a href="https://docs.ntfy.sh/config/#postgresql" rel="nofollow">PostgreSQL</a>)</li> </ul> <p><strong>Security:</strong></p> <ul> <li>Build with Go 1.27.3, which includes the security fixes of Go 1.27.2 (<code>crypto/tls</code>, <code>net/http</code>, <code>html/template</code> and others) and 1.27.3 (<code>crypto/x509</code>: certificate chains through the compromised eMudhra intermediate CAs are rejected)</li> <li>Reject phone number verification unless Twilio confirms the code as approved, instead of accepting any successful response</li> <li>Ignore duplicate topics in a subscription and limit a subscription to 150 topics, so a single request cannot replay the same topic's cache over and over</li> </ul> <p><strong>Bug fixes + maintenance:</strong></p> <ul> <li>Count published messages from every cluster node: each node adds its own publishes to the stored total instead of the leader overwriting it with its own count (experimental clustering)</li> <li>Fix "Illegal instruction" crash of the amd64 binaries on CPUs without x86-64-v3 (AVX2/BMI2), by building releases on Ubuntu 24.04 again (<a href="https://github.com/binwiederhier/ntfy/issues/2092" data-hovercard-type="issue" data-hovercard-url="/binwiederhier/ntfy/issues/2092/hovercard">#2092</a>, thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/frank-bg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/frank-bg">@frank-bg</a> for reporting)</li> </ul> github-actions[bot]