CVE-2025-10954: Github.com/nyaruka/phonenumbers Github.com/nyaruka/phonenumbers Vulnerable To Improper Validation Vulnerability
MODERATECVE-2025-10954 is a MODERATE (CVSS 5.3) github.com/nyaruka/phonenumbers vulnerable to improper validation vulnerability (CWE-1286: Improper Validation of Syntactic Correctness of Input) affecting Github.com/nyaruka/phonenumbers libraries in the Go ecosystem. The issue involves github.com/nyaruka/phonenumbers vulnerable to improper validation of syntactic correctness of input. Remediation is available by upgrading affected packages to version 1.2.2.
CVE-2025-10954 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-2025-10954
To remediate this vulnerability, upgrade all affected Github.com/nyaruka/phonenumbers 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/nyaruka/phonenumbers to 1.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/nyaruka/phonenumbers
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-10954, inspect your project dependencies for Github.com/nyaruka/phonenumbers:
inspect dependencies for github.com/nyaruka/phonenumbers
Analyze the terminal output to locate any version of Github.com/nyaruka/phonenumbers in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.2), 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-1286: Improper Validation of Syntactic Correctness of Input, where the product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax. In Github.com/nyaruka/phonenumbers, 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-2025-10954 Affected Github.com/nyaruka/phonenumbers Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/nyaruka/phonenumbers
|
Go |
< 1.2.2
|
1.2.2
|
References
Frequently Asked Questions
What is CVE-2025-10954?
Which Github.com/nyaruka/phonenumbers versions are affected?
What version fixes CVE-2025-10954?
Is github.com/nyaruka/phonenumbers affected?
What is the CVSS score of CVE-2025-10954?
What CWE is associated with CVE-2025-10954?
How can I check Go dependencies for CVE-2025-10954?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fmjh-f678-cv3x",
"modified" : "2025-09-29T16:29:27Z",
"published" : "2025-09-27T06:30:52Z",
"aliases" : [ "CVE-2025-10954" ],
"summary" : "github.com/nyaruka/phonenumbers Vulnerable to Improper Validation of Syntactic Correctness of Input",
"details" : "Versions of the package github.com/nyaruka/phonenumbers before 1.2.2 are vulnerable to Improper Validation of Syntactic Correctness of Input in the phonenumbers.Parse() function. An attacker can cause a panic by providing crafted input causing a \"runtime error: slice bounds out of range\".",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/nyaruka/phonenumbers"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-10954"
}, {
"type" : "WEB",
"url" : "https://github.com/nyaruka/phonenumbers/issues/148"
}, {
"type" : "WEB",
"url" : "https://github.com/nyaruka/phonenumbers/commit/0479e35488e8a002a261cdb515ef8a7f80ca37fe"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nyaruka/phonenumbers"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMNYARUKAPHONENUMBERS-6084070"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1286" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-29T16:29:27Z",
"nvd_published_at" : "2025-09-27T05:15:29Z"
}
}