{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-21277","published":"2021-02-01T15:15:13.340000Z","last_modified":"2026-06-17T03:35:10.707000Z","status":"Modified","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-74","CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:peerigon:angular-expressions:*:*:*:*:*:node.js:*:*","part":"a","vendor":"peerigon","product":"angular-expressions","version_end_excluding":"1.1.2"}],"cpes_truncated":false,"vendors":["peerigon"],"products":["peerigon/angular-expressions"],"epss":{"score":0.02848,"percentile":0.87441,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-j6px-jwvv-vpwq","ecosystem":"npm","name":"angular-expressions","purl":"pkg:npm/angular-expressions","ranges":[{"introduced":"0","fixed":"1.1.2"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":53,"links":{"html_es":"/es/cve/CVE-2021-21277/","html_en":"/en/cve/CVE-2021-21277/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21277","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21277"},"untrusted":{"vendor_name":"Peerigon","product_name":"Angular-expressions","desc_en":"angular-expressions is \"angular's nicest part extracted as a standalone module for the browser and node\". In angular-expressions before version 1.1.2 there is a vulnerability which allows Remote Code Execution if you call \"expressions.compile(userControlledInput)\" where \"userControlledInput\" is text that comes from user input. The security of the package could be bypassed by using a more complex payload, using a \".constructor.constructor\" technique. In terms of impact: 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. This is fixed in version 1.1.2 of angular-expressions A temporary workaround might be either to disable user-controlled input that will be fed into angular-expressions in your application or allow only following characters in the userControlledInput.","affected":[{"untrusted_vendor":"peerigon","untrusted_product":"angular-expressions","versions":[]}],"references":[{"url":"http://blog.angularjs.org/2016/09/angular-16-expression-sandbox-removal.html","tags":["Broken Link","Vendor Advisory"]},{"url":"https://github.com/peerigon/angular-expressions/commit/07edb62902b1f6127b3dcc013da61c6316dd0bf1","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/peerigon/angular-expressions/security/advisories/GHSA-j6px-jwvv-vpwq","tags":["Vendor Advisory"]},{"url":"https://www.npmjs.com/package/angular-expressions","tags":["Product"]}]}}