GHSA-v78c-4p63-2j6c: Moment timezone Cleartext Transmission Of Sensitive Information Vulnerability

MODERATE
CWE-319
Published
Advisory Summary

GHSA-v78c-4p63-2j6c is a MODERATE cleartext transmission of sensitive information vulnerability (CWE-319: Cleartext Transmission of Sensitive Information) affecting Moment timezone libraries in the npm ecosystem. The issue involves cleartext transmission of sensitive information in moment-timezone. Remediation is available by upgrading affected packages to version 0.5.35.

GHSA-v78c-4p63-2j6c at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-v78c-4p63-2j6c
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-319: Cleartext Transmission of Sensitive Information
Affected Product Moment timezone
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-v78c-4p63-2j6c

To remediate this vulnerability, upgrade all affected Moment timezone dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

moment-timezone fixed: 0.5.35
npm install moment-timezone@0.5.35
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 moment-timezone

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-v78c-4p63-2j6c, inspect your project dependencies using npm:

npm ls moment-timezone

Analyze the terminal output to locate any version of Moment timezone in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.35), your application is affected.

Note: The npm ls moment-timezone 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-319: Cleartext Transmission of Sensitive Information, where the product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. In Moment timezone, 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

### Impact * if Alice uses `grunt data` (or `grunt release`) to prepare a custom-build, moment-timezone with the latest tzdata from IANA's website * and Mallory intercepts the request to IANA's unencrypted ftp server, Mallory can serve data which might exploit further stages of the moment-timezone tzdata pipeline, or potentially produce a tainted version of moment-timezone (practicality of such attacks is not proved) ### Patches Problem has been patched in version 0.5.35, patch should be applicable with minor modifications to all affected versions. The patch includes changing the FTP endpoint with an HTTPS endpoint. ### Workarounds Specify the exact version of tzdata (like `2014d`, full command being `grunt data:2014d`, then run the rest of the release tasks by hand), or just apply the patch before issuing the grunt command.

GHSA-v78c-4p63-2j6c Affected Moment timezone Versions

1 component(s)
Fixed Versions:
0.5.35
Product / Package Ecosystem Affected Versions Fixed Version
moment-timezone
npm
≥ 0.1.0
< 0.5.35
0.5.35

References

Frequently Asked Questions

What is GHSA-v78c-4p63-2j6c?
GHSA-v78c-4p63-2j6c is a security vulnerability in Moment timezone involving Cleartext Transmission of Sensitive Information in moment-timezone under CWE-319: Cleartext Transmission of Sensitive Information.
Which Moment timezone versions are affected?
Affected versions include releases prior to 0.5.35 across affected packages: moment-timezone.
What version fixes GHSA-v78c-4p63-2j6c?
Upgrading to 0.5.35 (or the latest patched release for your respective branch) resolves the vulnerability.
Is moment-timezone affected?
Yes, moment-timezone is affected in releases prior to 0.5.35. Upgrade your dependency to 0.5.35 or later.
What CWE is associated with GHSA-v78c-4p63-2j6c?
GHSA-v78c-4p63-2j6c is classified under CWE-319: Cleartext Transmission of Sensitive Information (The product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors.).
How can I check npm dependencies for GHSA-v78c-4p63-2j6c?
Run the dependency tree command: 'npm ls moment-timezone'. 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-v78c-4p63-2j6c",
  "modified" : "2022-08-30T20:28:43Z",
  "published" : "2022-08-30T20:28:43Z",
  "aliases" : [ ],
  "summary" : "Cleartext Transmission of Sensitive Information in moment-timezone",
  "details" : "### Impact\n\n* if Alice uses `grunt data` (or `grunt release`) to prepare a custom-build, moment-timezone with the latest tzdata from IANA's website\n* and Mallory intercepts the request to IANA's unencrypted ftp server, Mallory can serve data which might exploit further stages of the moment-timezone tzdata pipeline, or potentially produce a tainted version of moment-timezone (practicality of such attacks is not proved)\n\n### Patches\nProblem has been patched in version 0.5.35, patch should be applicable with minor modifications to all affected versions. The patch includes changing the FTP endpoint with an HTTPS endpoint.\n\n### Workarounds\nSpecify the exact version of tzdata (like `2014d`, full command being `grunt data:2014d`, then run the rest of the release tasks by hand), or just apply the patch before issuing the grunt command.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "moment-timezone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.1.0"
      }, {
        "fixed" : "0.5.35"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/moment/moment-timezone/security/advisories/GHSA-v78c-4p63-2j6c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moment/moment-timezone/commit/7915ac567ab19700e44ad6b5d8ef0b85e48a9e75"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/moment/moment-timezone"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-319" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-08-30T20:28:43Z",
    "nvd_published_at" : null
  }
}