CVE-2021-21277
CVSS V2 Medium 6.5
CVSS V3 High 8.8
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.
Overview
- CVE ID
- CVE-2021-21277
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-02-01T15:15:13
- Last Modified Date
- 2022-10-19T19:06:19
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:peerigon:angular-expressions:*:*:*:*:*:node.js:*:* | 1 | OR | 1.1.2 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:S/C:P/I:P/A:P
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- SINGLE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 6.5
- Severity
- MEDIUM
- Exploitability Score
- 8
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- LOW
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 8.8
- Base Severity
- HIGH
- Exploitability Score
- 2.8
- Impact Score
- 5.9
References
Reference URL | Reference Tags |
---|---|
http://blog.angularjs.org/2016/09/angular-16-expression-sandbox-removal.html | Vendor Advisory |
https://www.npmjs.com/package/angular-expressions | Product |
https://github.com/peerigon/angular-expressions/security/advisories/GHSA-j6px-jwvv-vpwq | Vendor Advisory |
https://github.com/peerigon/angular-expressions/commit/07edb62902b1f6127b3dcc013da61c6316dd0bf1 | Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-21277 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21277 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 07:24:02 | Added to TrackCVE | |||
2022-12-05 21:09:46 | 2021-02-01T15:15Z | 2021-02-01T15:15:13 | CVE Published Date | updated |
2022-12-05 21:09:46 | 2022-10-19T19:06:19 | CVE Modified Date | updated | |
2022-12-05 21:09:46 | Analyzed | Vulnerability Status | updated |