CVE-2020-7676 Angular vulnerable to Cross-site Scripting
Cross-site scripting vulnerability in AngularJS allows attackers to execute arbitrary scripts via unsanitized HTML input.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-7676?
CVE-2020-7676 is a medium-severity cross-site scripting vulnerability in angular.js, published on 8 Jun 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
angular.js prior to 1.8.0 allows cross site scripting. The regex-based input HTML replacement may turn sanitized code into unsanitized one. Wrapping "<option>" elements in "<select>" ones changes parsing behavior, leading to possibly unsanitizing code.
Weakness: CWE-79
Which versions are affected by CVE-2020-7676?
2 open source packages ship an affected version, including angular. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
angular npm | All versions | 1.8.0 |
angular npm | All versions | 1.8.0 |
Products include Angularjs Angularjs.
How do I fix CVE-2020-7676?
Upgrade angular to 1.8.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2020-7676 being exploited?
There is no known exploitation of CVE-2020-7676 in the wild and no public exploit code.
Other vulnerabilities in angular.js
- CVE-2019-10768 angular Prototype Pollution vulnerability
- CVE-2019-14863 AngularJS Cross-site Scripting due to failure to sanitize `xlink.href` attributes
- CVE-2023-26116 angular vulnerable to regular expression denial of service via the angular.copy() utility
- CVE-2023-26117 angular vulnerable to regular expression denial of service via the $resource service
- CVE-2023-26118 angular vulnerable to regular expression denial of service via the <input type="url"> element
Sources
Also known as DEBIAN-CVE-2020-7676, GHSA-mhp6-pxh8-r675, ROOT-APP-NPM-CVE-2020-7676, SNYK-JS-ANGULAR-570058, UBUNTU-CVE-2020-7676.