Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. moment-timezone
  4. ›
  5. GMS-2022-3781

GMS-2022-3781: Cleartext Transmission of Sensitive Information in moment-timezone

August 30, 2022

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.

References

  • github.com/advisories/GHSA-v78c-4p63-2j6c
  • github.com/moment/moment-timezone/commit/7915ac567ab19700e44ad6b5d8ef0b85e48a9e75
  • github.com/moment/moment-timezone/security/advisories/GHSA-v78c-4p63-2j6c

Code Behaviors & Features

Detect and mitigate GMS-2022-3781 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.1.0 before 0.5.35

Fixed versions

  • 0.5.35

Solution

Upgrade to version 0.5.35 or above.

Source file

npm/moment-timezone/GMS-2022-3781.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:39 +0000.