USN-9117-1: Moment.js vulnerability
Publication date
17 November 2026
Overview
Moment.js could be made to load arbitrary files if it received specially crafted input.
Releases
Packages
- node-moment - work with dates in JavaScript
Details
It was discovered that Moment.js did not properly validate locale names. If
an application passed an untrusted locale name to Moment.js, an attacker
could possibly use this issue to load arbitrary files from the file system.
It was discovered that Moment.js did not properly validate locale names. If
an application passed an untrusted locale name to Moment.js, an attacker
could possibly use this issue to load arbitrary files from the file system.
Update instructions
In general, a standard system update will make all the necessary changes.
Learn more about how to get the fixes.The problem can be corrected by updating your system to the following package versions:
| Ubuntu Release | Package Version | ||
|---|---|---|---|
| 16.04 LTS xenial | libjs-moment – 2.11.0+ds-1ubuntu0.1~esm2 | ||
| node-moment – 2.11.0+ds-1ubuntu0.1~esm2 | |||
Reduce your security exposure
Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.