Back to list

moment vulnerable to Path Traversal via crafted non-string locale name — GHSA-4P3W-J4W9-5JQW

GitHub · GitHub · GHSA-4P3W-J4W9-5JQW

ID
GHSA-4P3W-J4W9-5JQW
Date
Source
GitHub
Vendor
GitHub
Threat
medium
CVSS
5.9
EPSS
0.00357

Summary

### Impact moment before 2.31.0 is vulnerable to path traversal in `moment.locale()`. When an application passes a non-string, attacker-influenced value to `moment.locale()`, a specially crafted object can bypass the locale name validation and cause moment to load a file from an attacker-controlled path. This is a further bypass of the validation added in 2.29.2 for…

Timeline

Published by source
2026-09-29

Risk context

  • Reported severity or threat level: medium.
  • Reported CVSS score: 5.9 out of 10.
  • Reported EPSS value: 0.00357.
  • Review exposure for the affected product or family: npm: moment.

Product

npm: moment

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Evidence and provenance

Canonical advisory ID
GHSA-4P3W-J4W9-5JQW
Source
GitHub
Vendor
GitHub
Published by source
2026-09-29
Last source activity
2026-09-29
Additional identifiers
CVE-2026-17495
Curated by
hlukh.ch

Related advisories and connections

These advisories are connected by shared CVE, product, vendor, source, or time signals.