{"id":"GHSA-hxhm-96pp-2m43","revision":"43cb346bf5484aaebe1c7a1755bc9952","records":[{"revision":"43cb346bf5484aaebe1c7a1755bc9952","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-hxhm-96pp-2m43","aliases":["CVE-2020-5219"],"title":"Remote Code Execution in Angular Expressions","description":"### Impact\n\nThe vulnerability, reported by GoSecure Inc, allows Remote Code Execution, if you call `expressions.compile(userControlledInput)` where `userControlledInput` is text that comes from user input.\n\n* If running angular-expressions in the browser, an attacker could run any browser script when the application code calls expressions.compile(userControlledInput).\n* If running angular-expressions on the server, an attacker could run any Javascript expression, thus gaining Remote Code Execution.\n\n### Patches\n\nUsers should upgrade to version 1.0.1 of angular-expressions\n\n### Workarounds\n\nA temporary workaround might be either to : \n\n* disable user-controlled input that will be fed into angular-expressions in your application\n\nOR\n\n* allow only following characters in the userControlledInput : \n\n```js\nif (/^[|a-zA-Z.0-9 :\"'+-?]+$/.test(userControlledInput)) {\n      var result = expressions.compile(userControlledInput);\n}\nelse {\n     result = undefined;\n}\n```\n\n### References\n\n[Removal of angular-expression sandbox](http://blog.angularjs.org/2016/09/angular-16-expression-sandbox-removal.html)\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [angular-expressions](https://github.com/peerigon/angular-expressions/issues)\n* [Email us](mailto:contact@javascript-ninja.fr)\n\n### Credits \n\nThe issue was reported by Maxime Nadeau from GoSecure, Inc.","state":0,"publishedAt":"2020-01-24T15:27:25+00:00","modifiedAt":"2026-09-10T03:48:42.5535937+00:00","affected":[{"ecosystem":"npm","name":"angular-expressions","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.0.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/peerigon/angular-expressions/security/advisories/GHSA-hxhm-96pp-2m43","https://nvd.nist.gov/vuln/detail/CVE-2020-5219","https://github.com/peerigon/angular-expressions/commit/061addfb9a9e932a970e5fcb913d020038e65667","http://blog.angularjs.org/2016/09/angular-16-expression-sandbox-removal.html"],"sourceUrl":"https://github.com/advisories/GHSA-hxhm-96pp-2m43","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hxhm-96pp-2m43","identifiers":["GHSA-hxhm-96pp-2m43","CVE-2020-5219"]},"retained":false,"historicalAffected":[]}],"coverage":[]}