CVE-2016-10527: Regular Expression Denial of Service in riot-compiler
Summary
CVE-2016-10527: Regular Expression Denial of Service in riot-compiler. Affects riot-compiler versions < 2.3.22. Fixed in 2.3.22. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The riot-compiler package is an npm package that provides a compiler for Riot.js, a simple and elegant component-based UI library. It allows developers to write reusable UI components using custom tags. The package is widely used in web development projects.
Vulnerability Detail
The riot-compiler package is vulnerable to a regular expression denial of service (ReDoS) attack. This vulnerability arises due to inefficient regular expressions that can be exploited by an attacker to cause a denial of service by consuming excessive CPU resources. An attacker can send specially crafted input that triggers the inefficient regular expressions, causing the application to become unresponsive or crash. This vulnerability has a moderate severity rating.
How To Fix
Latest published version: 3.6.0 as of 22 Oct 2026
npm install riot-compiler@3.6.0
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.3.22
This is the first release that contains the fix.
npm install riot-compiler@2.3.22
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The riot-compiler package is vulnerable to a regular expression denial of service (ReDoS) attack. To mitigate this vulnerability, it is crucial to update to version 2.3.22 or later. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for riot-compiler →
FAQ
This vulnerability can lead to a denial of service, causing the affected application to become unresponsive or crash.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and it will alert you in real-time if your application is vulnerable.
No, there are no known workarounds for this vulnerability. It is recommended to update to the latest version of the riot-compiler package.
There is no evidence of this vulnerability being exploited in the wild at the time of this advisory.
This vulnerability was discovered and reported by the GitHub Security Lab.