Bug 2537795 - CVE-2026-17495 magicmirror: Moment: Path Traversal via crafted non-string input to locale function [fedora-all]
Summary: CVE-2026-17495 magicmirror: Moment: Path Traversal via crafted non-string inp...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: magicmirror
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact:
URL:
Whiteboard: {"flaws": ["1467a308-f25d-411b-84bc-6...
Depends On:
Blocks: CVE-2026-17495
TreeView+ depends on / blocked
 
Reported: 2026-09-22 09:22 UTC by Ganesh
Modified: 2026-09-22 09:22 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ganesh 2026-09-22 09:22:10 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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().


Note You need to log in before you can comment on or make changes to this bug.