Skip to content
Fencer Vulns
medium 5.9

CVE-2026-17495 json

moment vulnerable to Path Traversal via crafted non-string locale name

published 2026-09-15 55 d ago modified 2026-09-30 40 d ago also EUVD-2026-78277 , GHSA-4p3w-j4w9-5jqw

cvss
5.9
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 44%
public exploits
0
none known

Summary

moment is a JavaScript date library for parsing, validating, manipulating, and formatting dates. In versions 2.29.2 through 2.30.1, a specially crafted non-string object passed to moment.locale() can bypass the locale-name path-traversal guard. The guard assumes the input is a string, so an object whose match() method satisfies the check while its toString() returns a traversal path reaches an internal require() call with attacker-controlled path segments. This is an incomplete fix for CVE-2022-24785 and primarily affects npm (server-side) users that pass user-provided input directly to moment.locale(). The issue is fixed in moment 2.31.0, and users should upgrade to 2.31.0 or later. As a workaround, validate that any user-supplied input is a string before passing it to moment.locale().

Patch / fix

  • npm moment 2.31.0
  • moment moment 2.31.0
  • node-moment Debian 14 2.31.0+ds1-1

debian advisories DEBIAN-CVE-2026-17495

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-17495 updated cvss 5.9

moment: Moment: Path Traversal via crafted non-string input to locale function

  • Red Hat Multicluster Engine for Kubernetes multicluster-engine/console-mce-rhel9
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8, openshift-pipelines/pipelines-hub-ui-rhel9
    affected: workaround, no fix available “Fix deferred”
  • Red Hat OpenShift Service Mesh 3 openshift-service-mesh/kiali-rhel9, openshift-service-mesh/kiali-ossmc-rhel9, openshift-service-mesh/kiali-rhel9-operator, openshift-service-mesh/kiali-operator-bundle
    affected: workaround, no fix available, no fix planned “Out of support scope”
  • Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel8 Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-rhel9, rhacm2/volsync-rhel9, rhacm2/volsync-operator-bundle
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat AMQ Broker 7 amq-broker-bin.zip 7.14.1.CR3, amq-broker-maven-repository.zip 7.14.1.CR3
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Ansible Automation Platform 2 automation-hub 4.9.8-2.el8ap, python-galaxy-ng 4.9.5-1.el9ap, python3x-galaxy-ng 4.9.5-1.el8ap, python3.11-galaxy-ng 4.9.5-2.el9ap, python3.12-galaxy-ng 4.9.8-2.el8ap
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat build of Apache Camel for Spring Boot 4 rhaf-camel-spring-boot-maven-repository.zip 4.18.1.CS4, rhaf-camel-for-springboot-maven-repository.zip 3.5.16.CS2 Red Hat build of Apicurio Registry 3 apicurio/apicurio-registry-ui-rhel8, apicurio/apicurio-registry-ui-rhel9, apicurio/apicurio-registry-gitops-sync-rhel9 Red Hat Build of Podman Desktop rh-podman-desktop, rh-podman-desktop.git
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Ceph Storage 4 ceph, librbd1, librgw2, rbd-nbd, ceph-mds, ceph-mgr, +28 more
    affected: workaround, no fix planned “Out of support scope”
show 10 more
  • Red Hat Ceph Storage 9 rhceph/alloy-rhel10 Red Hat Enterprise Linux 7 rhsm-gtk, python-syspurpose, subscription-manager, subscription-manager-gui, subscription-manager-rhsm, subscription-manager-cockpit, +5 more Red Hat Enterprise Linux 8 grafana, grafana-pcp, grafana-loki, grafana-mssql, grafana-mysql, grafana-selinux, +12 more Red Hat Enterprise Linux 9 grafana, sgx-mpa, tdx-qgs, sgx-libs, sgx-pccs, rhsm-icons, +9 more Red Hat Enterprise Linux 10 grafana 12.4.3-2.el10, linux-sgx 2.26-7.el10, grafana-pcp 6.1.0-1.el10, subscription-manager-cockpit 7-1.el10
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Fuse 7 moment 2.26.0
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Hardened Images prometheus3.5 3.5.5-0.8.hum1
    affected: workaround, no fix planned “Will not fix”
  • Red Hat JBoss Enterprise Application Platform 7 jboss-eap-patch.zip 7.4.23, jboss-eap-maven-repository.zip 7.4.23, jboss-eap-runtime-maven-repository.zip 7.4.24, jboss-eap-full-maven-repository.zip 7.4.22.GA-CR1, jboss-eap-incremental-maven-repository.zip 7.4.23
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat JBoss Enterprise Application Platform 8 jboss-eap-runtime-maven-repository.zip 7.4.24, jboss-eap.1-runtime-maven-repository.zip 8.1.0 Red Hat JBoss Enterprise Application Platform Expansion Pack jboss-eap-runtime-maven-repository.zip 7.4.24, jboss-eap.1-runtime-maven-repository.zip 8.1.0 Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-rhel9, rhoai/odh-feature-server-rhel9 Red Hat Openshift Data Foundation 4 odf4/mcg-core-rhel9 Red Hat OpenShift GitOps microshift-gitops 1.19.2-36.el9, openshift-gitops-1/argocd-rhel8, openshift-gitops-1/argocd-rhel9, openshift-gitops-argocd-cli 1.19.2-36.el9
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Quay 3 quay/quay-rhel8, quay/quay-rhel9
    affected: workaround, no fix available, no fix planned “Out of support scope”
  • Red Hat Satellite 6 satellite/iop-remediations-rhel9, nodejs-patternfly 3.59.5-1.el9sat, satellite/iop-host-inventory-frontend-rhel9
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Single Sign-On 7 rh-sso-server-dist.zip 7.6.12
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Trusted Artifact Signer rhtas/rekor-search-ui-rhel9
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Discovery 2 discovery/discovery-ui-rhel9 Red Hat Enterprise Linux 8 cockpit, cockpit-ws, cockpit-pcp, cockpit-bridge, cockpit-podman, cockpit-system, +5 more Red Hat Hardened Images grafana13.1 13.1.3-0.8.hum1, grafana13.2 13.2.1-0.3.hum1, grafana12.4 12.4.10-0.2.hum1, prometheus3.13 3.13.3-0.1.hum1, opentelemetry-collector 0.160.0-0.1.hum1, opentelemetry-collector-k8s 0.160.0-0.1.hum1, +1 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
54 d ago

Exploit prediction

0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHub 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
npm moment
>=2.29.2, <2.31.0
2.31.0

Affected products

  • moment moment

Classification

Weakness
  • CWE-27 Path Traversal: 'dir/../../filename'

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.