HIGH 8.7
CVE-2026-95846
Moquette publishes Last-Will messages without enforcing write authorization
Description
Moquette is a lightweight Java MQTT broker. Prior to 0.18.1, PostOffice.publishWill publishes a client's Last-Will message without applying the canWrite authorization and reserved-topic checks used for a normal PUBLISH. A client can configure a Will for a topic that the client is not permitted to write and cause the broker to publish the unauthorized message when the client disconnects unexpectedly. This issue allows unauthorized message injection into restricted topics. This issue is fixed in version 0.18.1.
Affected Maven artifacts (0)
No Maven artifact is known to be affected.
References
| Advisory | CVE record CVE-2026-95846 | github.com |
| Advisory | moquette-io/moquette advisory GHSA-5f42-97gr-vfhq | github.com |
| Advisory | NVD CVE-2026-95846 | nvd.nist.gov |
| Fix | moquette-io/moquette commit f5a323f | github.com |
| Web | moquette-io/moquette release v0.18.1 | github.com |
