Vulnerabilities in pkg:golang/mellium.im/xmpp
PACKAGECVE-2024-46957 is a CRITICAL (CVSS 9.8) authentication bypass vulnerability (CWE-290: Authentication Bypass by Spoofing) affecting Mellium.im/xmpp libraries in the Go ecosystem. The issue involves mellium allows authentication bypass by spoofing. Remediation is available by upgrading affected packages to version 0.22.0.
pkg:golang/mellium.im/xmpp
Vulnerability advisories affecting package pkg:golang/mellium.im/xmpp. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-98hf-m87w-cq6h | CVE-2024-46957 | CRITICAL | Mellium allows Authentication Bypass by Spoofing |
| GHSA-h289-x5wc-xcv8 | CVE-2022-24968 | MODERATE | Improper Validation of Certificate with Host Mismatch in mellium.im/xmpp/websocket |
| GHSA-m658-p24x-p74r | - | MODERATE | Duplicate Advisory: TLS certificate validation error in mellium.im/xmpp |
CVE-2024-46957 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-46957
To remediate this vulnerability, upgrade all affected Mellium.im/xmpp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade mellium.im/xmpp to 0.22.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for mellium.im/xmpp
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-46957, inspect your project dependencies for Mellium.im/xmpp:
inspect dependencies for mellium.im/xmpp
Analyze the terminal output to locate any version of Mellium.im/xmpp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.22.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-290: Authentication Bypass by Spoofing, where this attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks. In Mellium.im/xmpp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-46957 Affected Mellium.im/xmpp Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mellium.im/xmpp
|
Go |
< 0.22.0
|
0.22.0
|
References
Frequently Asked Questions
What is CVE-2024-46957?
Which Mellium.im/xmpp versions are affected?
What version fixes CVE-2024-46957?
Is mellium.im/xmpp affected?
What is the CVSS score of CVE-2024-46957?
What CWE is associated with CVE-2024-46957?
How can I check Go dependencies for CVE-2024-46957?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-98hf-m87w-cq6h",
"modified" : "2024-09-25T18:27:09Z",
"published" : "2024-09-25T03:30:36Z",
"aliases" : [ "CVE-2024-46957" ],
"summary" : "Mellium allows Authentication Bypass by Spoofing",
"details" : "Mellium mellium.im/xmpp 0.0.1 through 0.21.4 allows response spoofing because the stanza type is not checked. This is fixed in 0.22.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "mellium.im/xmpp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.22.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-46957"
}, {
"type" : "PACKAGE",
"url" : "https://codeberg.org/mellium/xmpp"
}, {
"type" : "WEB",
"url" : "https://codeberg.org/mellium/xmpp/releases"
}, {
"type" : "WEB",
"url" : "https://codeberg.org/mellium/xmpp/releases/tag/v0.22.0"
}, {
"type" : "WEB",
"url" : "https://mellium.im/cve/cve-2024-46957"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-290" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-25T18:27:09Z",
"nvd_published_at" : "2024-09-25T01:15:44Z"
}
}