Skip to content

chore(deps): bump github.com/eclipse/paho.mqtt.golang from 1.5.1 to 1.5.2 - #22

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/github.com/eclipse/paho.mqtt.golang-1.5.2
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/github.com/eclipse/paho.mqtt.golang-1.5.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 27, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/eclipse/paho.mqtt.golang from 1.5.1 to 1.5.2.

Release notes

Sourced from github.com/eclipse/paho.mqtt.golang's releases.

v1.5.2

This is a minor release incorporating changes since Sep 2025. v1.5.2 fixes a reconnect race and a case where a QoS 0 publish token could wait indefinitely. It also adds per-client logging and an optional size limit for incoming packets.

Thanks to all contributors!

Upgrade notes

Most users should not need to take any action (other than ensuring the use of a recent version of Go, i.e. 1.25+). If you use some of the more advanced features then the following may be needed:

  • Go 1.25.0 or later is required, up from Go 1.24.0 in v1.5.1.
  • Potentially breaking change. mqtt.Client now includes DeleteRoute(topic string). Applications using the client returned by mqtt.NewClient need no changes for this addition. Custom implementations and mocks may need to add the method. DeleteRoute removes a local message handler (without sending an UNSUBSCRIBE to the broker)
  • For users of the packets package, Write now leaves FixedHeader.RemainingLength untouched (changing this led to race conditions). Reading a packet still populates the field from the wire.

Logging and packet handling

  • ClientOptions.SetLogger accepts a per-client *slog.Logger. Logging remains silent by default. If the application configures package-level loggers, they continue to receive output. Both constructing ClientOptions directly and calling SetLogger(nil) are safe.
  • ClientOptions.SetMaxIncomingPacketSize limits the MQTT Remaining Length the client will accept from a broker. The client rejects oversized packets before allocating the body. The default of 0 leaves this limit disabled.
  • Packet validation now rejects malformed lengths, truncated fields, invalid MQTT UTF-8 strings, and SUBACK responses with invalid return codes or a result count that differs from the number of requested subscriptions.

Reliability fixes

  • Fixed a race when resending stored packets after reconnect. If a QoS 0 publish is dropped while the connection is unavailable, its token now completes so callers can stop waiting.
  • A ConnectTimeout of zero now disables the connection timeout as intended.
  • Local topic filters beginning with # or + now exclude $-prefixed topics such as $SYS.
  • FileStore checks its directory when it opens and fails immediately if it cannot write, read, or remove files there. If an individual stored message later cannot be opened, the store skips it and attempts to archive it.

What's Changed

... (truncated)

Commits
  • 2ac2b28 Handle nil loggers in NewClient
  • 9c5b38b Handle nil loggers in NewClient
  • 307a748 Validate MQTT UTF-8 string fields on encode and decode
  • b622346 Fix comment to reference MQTT 3.1.3 spec
  • c3f7470 fix(packets): keep UTF-8 validation errors out of connection handling
  • 7369050 fix(client): reject invalid UTF-8 before packets reach the persistence store
  • 07a7663 fix(packets): validate MQTT UTF-8 string fields on encode and decode
  • f99b08d Reject packet bodies whose length does not match the type
  • c2650f1 fix(packets): verify the body is consumed in the packet reader, not in each p...
  • fa212c8 Reject packet bodies whose length does not match the type
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/eclipse/paho.mqtt.golang](https://github.com/eclipse/paho.mqtt.golang) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/eclipse/paho.mqtt.golang/releases)
- [Commits](eclipse-paho/paho.mqtt.golang@v1.5.1...v1.5.2)

---
updated-dependencies:
- dependency-name: github.com/eclipse/paho.mqtt.golang
  dependency-version: 1.5.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants