i18n: Path traversal via object-form locale in i18n (__, __n, getStorageFilePath)

Summary

CVECVE-2026-144324
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 18:17:27 UTC
Updated2026-12-03 18:17:27 UTC
Descriptioni18n is a lightweight translation module for Node.js and Express.js with dynamic JSON storage. Prior to 0.15.4, i18n.__({ phrase, locale }) and i18n.__n({ ..., locale }) pass an unsanitized locale to getStorageFilePath, whose path normalization does not reject traversal outside the configured locales directory. An application that forwards attacker-controlled locale values can read a named key from a valid JSON file, expose a previously loaded catalog through getCatalog, create an attacker-named JSON file when updateFiles is enabled, or cause a narrow denial of service by renaming a path after a failed read. Applications using only middleware or setLocale are not affected because that path restricts locales to the configured set. This issue is fixed in version 0.15.4.

Risk And Classification

Primary CVSS: v3.1 7 HIGH from [email protected]

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L

Problem Types: CWE-22 | CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary7HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
3.1CNADECLARED7HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Mashpie I18n-node affected < 0.15.4 Not specified

References

ReferenceSourceLinkTags
github.com/mashpie/i18n-node/commit/91c86d8b50e42e3124d1430f30f1bec79234... [email protected] github.com
github.com/mashpie/i18n-node/releases/tag/v0.15.4 [email protected] github.com
github.com/mashpie/i18n-node/security/advisories/GHSA-f8q4-qj8c-66wp [email protected] github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report