Vulnerabilities in pkg:npm/pomelo

PACKAGE
Advisory Identifier: GHSA-4x6v-rwh4-55jw
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/pomelo

1 Known Advisory Record(s)

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

CVE Identifier CVE-2019-18954
GHSA Identifier GHSA-4x6v-rwh4-55jw
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product Pomelo
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

pomelo fixed: 2.2.7
npm install pomelo@2.2.7
Verify Direct and Transitive Dependencies

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

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.

CVE-2019-18954 Affected Pomelo Versions

1 component(s)
Fixed Versions:
2.2.7
Product / Package Ecosystem Affected Versions Fixed Version
pomelo
npm
< 2.2.7
2.2.7

References

Frequently Asked Questions

What is CVE-2019-18954?
CVE-2019-18954 is a security vulnerability in Pomelo involving Pomelo allows external control of critical state data under CWE-668: Exposure of Resource to Wrong Sphere.
Which Pomelo versions are affected?
Affected versions include releases prior to 2.2.7 across affected packages: pomelo.
What version fixes CVE-2019-18954?
Upgrading to 2.2.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pomelo affected?
Yes, pomelo is affected in releases prior to 2.2.7. Upgrade your dependency to 2.2.7 or later.
What is the CVSS score of CVE-2019-18954?
CVE-2019-18954 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2019-18954?
CVE-2019-18954 is classified under CWE-668: Exposure of Resource to Wrong Sphere (The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.).
How can I check npm dependencies for CVE-2019-18954?
Run the dependency tree command: 'npm ls pomelo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}