RCE in Peerigon Angular-Expressions

CVE-2021-21277

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N.

EPSS exploit prediction

EPSS: 0.027 (85.5th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 86th percentile — 85.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-21277: held from 0.027 to 0.027.

EPSS over last 30 days · oldest: 0.027 · newest: 0.027 · change: 0.000

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2021-21277?
CVE-2021-21277 is a high-severity vulnerability in Peerigon Angular-Expressions, classified under Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection). CVSS score: 8.5/10. Published 2021-02-01.
How severe is CVE-2021-21277?
High severity. CVSS v3 base score is 8.5 out of 10.