# CVE-2022-24968: Improper Validation of Certificate with Host Mismatch in mellium.im/xmpp/websocket

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-02)
- Published: 2022-02-11T18:16:54.000Z
- Modified: 2026-06-17T04:32:52.430Z
- Also known as: GHSA-h289-x5wc-xcv8, GHSA-m658-p24x-p74r, GO-2022-0370
- Weaknesses: CWE-295
- Assigned by: mitre

## Description

In Mellium mellium.im/xmpp through 0.21.0, an attacker capable of spoofing DNS TXT records can redirect a WebSocket connection request to a server under their control without causing TLS certificate verification to fail. This occurs because the wrong host name is selected during this verification.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mellium.im/xmpp (Go): from 0.18.0 before 0.21.1
- mellium xmpp: from 0.18.0 before 0.21.1

## Every score

- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://mellium.im/xmpp/> (product, vendor-advisory)
- <https://mellium.im/cve/cve-2022-24968/> (advisory, vendor-advisory)
- <https://github.com/mellium/xmpp/security/advisories/GHSA-h289-x5wc-xcv8> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24968> (advisory)
- <https://github.com/mellium/xmpp/pull/260> (fix, web)
- <https://github.com/mellium/xmpp/commit/0d92aa486da69b71f2f4a30e62aa722c711b98ac> (fix, web)
- <https://github.com/mellium/xmpp> (package)
- <https://mellium.im/cve/cve-2022-24968> (web)
- <https://mellium.im/issue/259> (report, web)
- <https://pkg.go.dev/vuln/GO-2022-0370> (web)
- <https://mellium.im/xmpp> (web)

## Sources

- CVE List: [CVE-2022-24968](https://www.cve.org/CVERecord?id=CVE-2022-24968), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-h289-x5wc-xcv8](https://github.com/advisories/GHSA-h289-x5wc-xcv8), CC-BY-4.0, modified 2024-05-20
- GitHub Advisory Database: [GHSA-m658-p24x-p74r](https://github.com/advisories/GHSA-m658-p24x-p74r), CC-BY-4.0, modified 2024-05-20
- Go Vulnerability Database: [GO-2022-0370](https://pkg.go.dev/vuln/GO-2022-0370), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-24968](https://nvd.nist.gov/vuln/detail/CVE-2022-24968), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24968 · Whole record: https://cve.day/CVE-2022-24968.json · Rebuilt by cve.day 2026-11-25T22:58:09.657Z
