{"cve":"CVE-2021-21277","nvd":{"published":"2021-02-01T15:15:13.340","modified":"2026-06-17T03:35:10.707","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-94","CWE-74"],"references":["http://blog.angularjs.org/2016/09/angular-16-expression-sandbox-removal.html","https://github.com/peerigon/angular-expressions/commit/07edb62902b1f6127b3dcc013da61c6316dd0bf1","https://github.com/peerigon/angular-expressions/security/advisories/GHSA-j6px-jwvv-vpwq","https://www.npmjs.com/package/angular-expressions","http://blog.angularjs.org/2016/09/angular-16-expression-sandbox-removal.html"],"products":["peerigon:angular-expressions"],"source":"nvd","synced_at":"2026-10-19T21:14:10.479542811+00:00"},"epss":{"cve":"CVE-2021-21277","score":0.02848,"percentile":0.86707,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-j6px-jwvv-vpwq","url":"https://osv.dev/vulnerability/GHSA-j6px-jwvv-vpwq","summary":"Angular Expressions - Remote Code Execution","modified":"2026-09-10T03:49:14.136872209Z","packages":[{"ecosystem":"npm","name":"angular-expressions","purl":"pkg:npm/angular-expressions","ranges":["<1.1.2"],"fixed":["1.1.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}