{"id":"CVE-2020-5219","published":"2020-01-24T15:25:14Z","modified":"2024-08-04T08:22:08Z","title":"Remote Code Execution in Angular Expressions","vendor":"peerigon","product":"angular-expressions","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02393,"percentile":0.84382,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/peerigon/angular-expressions/security/advisories/GHSA-hxhm-96pp-2m43","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/peerigon/angular-expressions/commit/061addfb9a9e932a970e5fcb913d020038e65667","tags":["x_refsource_MISC"]},{"url":"http://blog.angularjs.org/2016/09/angular-16-expression-sandbox-removal.html","tags":["x_refsource_MISC"]}],"priority":{"score":23.0,"factors":[{"name":"EPSS percentile","points":16.88},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"peerigon","affectedVersions":[{"vendor":"peerigon","product":"angular-expressions","versions":["< 1.0.1"]}],"affected":[{"ecosystem":"npm","package":"angular-expressions","vulnerableRanges":["<1.0.1"],"patched":["1.0.1"],"from":["GHSA-hxhm-96pp-2m43"],"provenance":"source"}],"summary":{"text":"The angular-expressions library from peerigon contains an injection flaw in its expression compilation: calling expressions.compile() on text derived from user input lets that input be interpreted as code, in versions before 1.0.1. An attacker who can supply the compiled text can run arbitrary browser script when the library runs in the browser, or arbitrary JavaScript expressions on the server, which enables remote code execution; the attack requires a low-privilege account and some user interaction, and the affected application must pass user-controlled input to expressions.compile().","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:11Z"},"euvd":{"id":"EUVD-2020-0267","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-peerigon-angular-expressions-cve-2020-5219","children":[{"from":"CVE-2020-5219","to":"CVE-2021-21277","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:angular-expressions","fromFixed":"1.0.1","toFixed":"1.1.2","daysApart":374},{"kind":"same-code","provenance":"machine","files":["lib/parse.js"],"commits":["https://github.com/peerigon/angular-expressions/commit/061addfb9a9e932a970e5fcb913d020038e65667","https://github.com/peerigon/angular-expressions/commit/07edb62902b1f6127b3dcc013da61c6316dd0bf1"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.83,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2020-5219","published":"2020-01-24","fixed":"1.0.1","kev":false},{"cve":"CVE-2021-21277","published":"2021-02-01","fixed":"1.1.2","kev":false},{"cve":"CVE-2024-54152","published":"2024-12-10","fixed":"1.4.3","kev":false},{"cve":"CVE-2026-44643","published":"2026-05-11","fixed":"1.5.2","kev":false}],"package":"npm:angular-expressions"}}