Vulnerabilities in pkg:npm/pomelo
PACKAGECVE-2019-18954 is a MODERATE (CVSS 5.3) pomelo allows external control of vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Pomelo libraries in the npm ecosystem. The issue involves pomelo allows external control of critical state data. Remediation is available by upgrading affected packages to version 2.2.7.
pkg:npm/pomelo
Vulnerability advisories affecting package pkg:npm/pomelo. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-4x6v-rwh4-55jw | CVE-2019-18954 | MODERATE | Pomelo allows external control of critical state data |
CVE-2019-18954 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-2019-18954
To remediate this vulnerability, upgrade all affected Pomelo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install pomelo@2.2.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls pomelo
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-18954, inspect your project dependencies using npm:
npm ls pomelo
Analyze the terminal output to locate any version of Pomelo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.7), your application is affected.
Note: The npm ls pomelo command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Pomelo, 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-2019-18954 Affected Pomelo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pomelo
|
npm |
< 2.2.7
|
2.2.7
|
References
Frequently Asked Questions
What is CVE-2019-18954?
Which Pomelo versions are affected?
What version fixes CVE-2019-18954?
Is pomelo affected?
What is the CVSS score of CVE-2019-18954?
What CWE is associated with CVE-2019-18954?
How can I check npm dependencies for CVE-2019-18954?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4x6v-rwh4-55jw",
"modified" : "2023-09-08T19:57:36Z",
"published" : "2019-12-02T18:16:34Z",
"aliases" : [ "CVE-2019-18954" ],
"summary" : "Pomelo allows external control of critical state data",
"details" : "Pomelo v2.2.5 allows external control of critical state data. A malicious user input can corrupt arbitrary methods and attributes in `template/game-server/app/servers/connector/handler/entryHandler.js` because certain internal attributes can be overwritten via a conflicting name. Hence, a malicious attacker can manipulate internal attributes by adding additional attributes to user input.",
"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" : "npm",
"name" : "pomelo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-18954"
}, {
"type" : "WEB",
"url" : "https://github.com/NetEase/pomelo/issues/1149"
}, {
"type" : "WEB",
"url" : "https://github.com/cl0udz/vulnerabilities/tree/master/pomelo-critical-state-manipulation"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-668" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-12-02T01:20:21Z",
"nvd_published_at" : null
}
}