GHSA-v78c-4p63-2j6c: Moment timezone Cleartext Transmission Of Sensitive Information Vulnerability
MODERATEGHSA-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
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.
npm install moment-timezone@0.5.35
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
GHSA-v78c-4p63-2j6c Affected Moment timezone Versions
1 component(s)| 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?
Which Moment timezone versions are affected?
What version fixes GHSA-v78c-4p63-2j6c?
Is moment-timezone affected?
What CWE is associated with GHSA-v78c-4p63-2j6c?
How can I check npm dependencies for GHSA-v78c-4p63-2j6c?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}