i18n is a lightweight translation module for Node.js and Express.js with dynamic JSON storage.
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 r
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- Mashpie
- Product
- i18n-node
- CVSS v3.1
- 7.0 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
- Fix
- available
- Weakness
- CWE-22
- Exposure class
- Developer platform
- NVD status
- Received
Why it ranks 35 (Notable)
- CVSS v3.1 7.0 high
- Product class: developer platform
- Fix available
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.