CVE-2020-7676 Angular vulnerable to Cross-site Scripting

Medium 5.4 Published Updated

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.

PackageAffectedFixed in
angular npmAll versions1.8.0
angular npmAll versions1.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.

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.

Is CVE-2020-7676 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free