CVE-2020-5219 Remote Code Execution in Angular Expressions
Attackers can execute arbitrary code by passing user-controlled input to the compile function in the Angular Expressions library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-5219?
CVE-2020-5219 is a high-severity code injection vulnerability in peerigon angular-expressions, published on 24 Jan 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Angular Expressions before version 1.0.1 has a remote code execution vulnerability if you call expressions.compile(userControlledInput) where userControlledInput is text that comes from user input. If running angular-expressions in the browser, an attacker could run any browser script when the application code calls expressions.compile(userControlledInput). If running angular-expressions on the server, an attacker could run any Javascript expression, thus gaining Remote Code Execution.
Weakness: CWE-74
Which versions are affected by CVE-2020-5219?
2 open source packages ship an affected version, including angular-expressions. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
angular-expressions npm | All versions | 1.0.1 |
angular-expressions npm | All versions | 1.0.1 |
Products include Peerigon Angular-Expressions.
How do I fix CVE-2020-5219?
Upgrade angular-expressions to 1.0.1 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2020-5219 being exploited?
There is no known exploitation of CVE-2020-5219 in the wild and no public exploit code.
Other vulnerabilities in peerigon angular-expressions
Sources
Also known as GHSA-hxhm-96pp-2m43.