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

Published Dec 3, 2026
·
Updated

i18n 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.

Affected Software

1 affected component
npm/i18n<0.15.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.15.4

Event History

Dec 3, 2026
CVE Published
via MITRE·06:01 PM
Data Sourced
via MITRE·06:01 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are actually exposed to this issue?

Applications are exposed if they use i18n.__ with an object-form locale or i18n.__n with a locale value that can be controlled by an attacker. Applications that use only middleware or setLocale are not affected, because those paths limit locales to the configured set.

2

What could an attacker do with control of the locale value?

Depending on application behavior and configuration, an attacker may read a named key from a valid JSON file, expose a catalog that was previously loaded through getCatalog, create an attacker-named JSON file when updateFiles is enabled, or trigger a narrow denial of service by renaming a path after a failed read.

3

What should be done if an immediate upgrade is not possible?

Do not forward untrusted locale values into the object-form i18n.__ or i18n.__n APIs. Restrict locale input to the configured locale set and avoid enabling updateFiles where it is not required.

4

How can I determine whether my deployment is affected?

Review calls to i18n.__({ phrase, locale }) and i18n.__n({ ..., locale }) for locale values derived from requests or other untrusted input. Versions prior to 0.15.4 are affected when those APIs receive unsanitized locale values.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203