PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet
Vulnerability DatabaseGHSA-56x4-j7p9-fcf9

GHSA-56x4-j7p9-fcf9: 
JavaScript vulnerability analysis and mitigation

Overview

A command injection vulnerability was discovered in moment-timezone affecting versions 0.1.0 through 0.5.34. The vulnerability exists in the build tasks of the tzdata pipeline, where unsanitized user input could lead to arbitrary command execution when building custom versions of moment-timezone with grunt (GitHub Advisory).

Technical details

The vulnerability stems from three main components in the build pipeline: data-download.js, data-zdump.js, and data-zic.js. These scripts use Node.js's exec function without proper input sanitization, allowing command injection through version parameters and file paths. The vulnerability is tracked as GHSA-56x4-j7p9-fcf9 and is rated as Low severity. The issue occurs when using grunt commands like 'grunt data:2014d' where the version parameter can be manipulated to include malicious commands (GitHub Advisory).

Impact

The vulnerability allows attackers to execute arbitrary commands on the machine running the grunt task with the same privileges as the grunt task itself. This only affects users who build custom versions of moment-timezone with grunt and allow third parties to specify which particular version to build (GitHub Advisory).

Exploitability

Exploitation requires the ability to influence the version parameter passed to grunt tasks. For example, an attacker could inject commands through the version parameter like 'grunt data-download:2014d ; echo flag>/tmp/foo #' to execute arbitrary commands. The vulnerability is also exploitable through malicious filenames in the temporary directory used during the build process (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.5.35. The fix involves switching from exec to execFile in Node.js, which prevents arbitrary bash fragments from being executed. The patch is applicable with minor tweaks to all affected versions (GitHub Commit).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-5cjr-rc2p-f66fHIGH8.8
  • JavaScript logoJavaScript
  • ssh-mcp
NoYesOct 23, 2026
GHSA-5www-2x9c-mgr6HIGH8.8
  • JavaScript logoJavaScript
  • @pineforge/codegen-pyodide
NoYesOct 23, 2026
CVE-2026-58497HIGH8.6
  • JavaScript logoJavaScript
  • @zenalexa/unicli
NoYesOct 23, 2026
CVE-2026-115477HIGH7.1
  • JavaScript logoJavaScript
  • obsidian-tc
NoYesOct 23, 2026
GHSA-2g9m-gh52-f39vHIGHN/A
  • JavaScript logoJavaScript
  • koa-static-resolver
NoYesOct 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management