USN-9135-1: CodeMirror vulnerability
Publication date
17 November 2026
Overview
CodeMirror could be made to consume excessive resources if it received specially crafted input.
Releases
Packages
- codemirror-js - JavaScript editor interface for code-like content
Details
It was discovered that the JavaScript mode in CodeMirror used an
inefficient regular expression. An attacker could possibly use this issue
to cause CodeMirror to consume excessive resources, leading to a denial of
service.
It was discovered that the JavaScript mode in CodeMirror used an
inefficient regular expression. An attacker could possibly use this issue
to cause CodeMirror to consume excessive resources, leading to a denial of
service.
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 | ||
|---|---|---|---|
| 20.04 LTS focal | libjs-codemirror – 5.51.0-1ubuntu0.1~esm1 | ||
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.