CVE-2026-54909: Github.com/pion/stun/v3 Denial of Service Vulnerability
MODERATECVE-2026-54909 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Github.com/pion/stun/v3 libraries in the Go ecosystem. The issue involves pion stun vulnerable to remote denial of service via panic while parsing a malformed xor-mapped-address attribute. Remediation is available by upgrading affected packages to version 3.1.5.
CVE-2026-54909 at a Glance
Security Impact
CVSS: 5.3
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:N/I:N/A:L).
How to Fix CVE-2026-54909
To remediate this vulnerability, upgrade all affected Github.com/pion/stun/v3 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 github.com/pion/stun/v3 to 3.1.5
Upgrade github.com/pion/stun/v2 to Latest secure release
Upgrade github.com/pion/stun to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/pion/stun/v3
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-54909, inspect your project dependencies for Github.com/pion/stun/v3:
inspect dependencies for github.com/pion/stun/v3
Analyze the terminal output to locate any version of Github.com/pion/stun/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.5), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/pion/stun/v3, 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-2026-54909 Affected Github.com/pion/stun/v3 Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pion/stun/v3
|
Go |
< 3.1.5
|
3.1.5
|
|
github.com/pion/stun/v2
|
Go |
≤ 2.0.0
|
|
|
github.com/pion/stun
|
Go |
≤ 1.23.1
|
|
References
Frequently Asked Questions
What is CVE-2026-54909?
Which Github.com/pion/stun/v3 versions are affected?
What version fixes CVE-2026-54909?
Is github.com/pion/stun/v3 affected?
Is github.com/pion/stun/v2 affected?
What is the CVSS score of CVE-2026-54909?
What CWE is associated with CVE-2026-54909?
How can I check Go dependencies for CVE-2026-54909?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-34rh-wp3j-6cxc",
"modified" : "2026-07-31T22:03:42Z",
"published" : "2026-07-31T22:03:42Z",
"aliases" : [ "CVE-2026-54909" ],
"summary" : "Pion STUN vulnerable to remote denial of service via panic while parsing a malformed XOR-MAPPED-ADDRESS attribute",
"details" : "### Impact\nRemote denial of service via panic while parsing a malformed XOR-MAPPED-ADDRESS attribute\n\n### Patches\nUpgrade to v3.1.5 or later. This version includes this patch https://github.com/pion/stun/pull/278 which fixes the issue.\n\n### Workarounds\nNo work around; please upgrade to v3.1.5 or a newer version.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pion/stun/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.1.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.1.4"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pion/stun/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pion/stun"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.23.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pion/stun/security/advisories/GHSA-34rh-wp3j-6cxc"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/stun/pull/278"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/stun/commit/fa9f074a33a8059c76c960b1fbee39f308002423"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pion/stun"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/stun/releases/tag/v3.1.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-31T22:03:42Z",
"nvd_published_at" : null
}
}