Angular Expressions - Remote Code Execution
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| peerigon | angular-expressions | before 1.1.2 | 1.1.2 | Patch available | CNA |
| — | angular-expressions (npm) | before 1.1.2 | 1.1.2 | Patch available | GHSA-j6px-jwvv-vpwq |
- angular-expressions Vendorpeerigon Affected before 1.1.2 Fixed in 1.1.2 Patch available CNA
- angular-expressions (npm) Vendor— Affected before 1.1.2 Fixed in 1.1.2 Patch available GHSA-j6px-jwvv-vpwq
Remediation
- Fix · CNA angular-expressions (peerigon) Fixed in 1.1.2
- Fix · GHSA-j6px-jwvv-vpwq angular-expressions (npm) Fixed in 1.1.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-21277
- 2026-10-03 Alias added: GHSA-j6px-jwvv-vpwq
References
Patch 1
Advisory 3
More peerigon Angular-expressions vulnerabilities
- TI-2026-32543 Angular Expressions - Remote Code Execution using filters CVSS 4.0CRITICAL 9.3
- TI-2020-04275 Remote Code Execution in Angular Expressions CVSS 3.1HIGH 8.8
Sources
- CVE-2021-21277 · CVE Program
- CVE-2021-21277 · NVD
- FIRST EPSS
- GHSA-j6px-jwvv-vpwq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences