CVE-2021-4231
Angular vulnerable to Cross-site Scripting
Description
A vulnerability was found in Angular up to 11.0.4/11.1.0-next.2. It has been classified as problematic. Affected is the handling of comments. The manipulation leads to cross site scripting. It is possible to launch the attack remotely but it might require an authentication first. Upgrading to version 10.2.5, 11.0.5 or 11.1.0-next.3 is advised to to address this issue.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm.at.angular » corevia npm @angular/core | < 10.2.5>= 11.0.0, < 11.0.5>= 11.1.0-next.0, < 11.1.0-next.3 | 10.2.5, 11.0.5, 11.1.0-next.3 |
| org.webjars.npm » angular__corevia npm @angular/core | < 10.2.5>= 11.0.0, < 11.0.5>= 11.1.0-next.0, < 11.1.0-next.3 | 10.2.5, 11.0.5, 11.1.0-next.3 |
Blast radius
42% of the dependent artifacts (8) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 34 |
| 2 hops | 9 |
| 3 hops | 9 |
Most used dependents
- org.mvnpm.at.angular » compiler7 usages
- org.fujion » fujion-angular-core2 usages
- org.mvnpm.at.angular » compiler-cli2 usages
- org.fujion » fujion-angular-example1 usages
- org.fujion » fujion-testharness0 usages
- org.webjars.npm » github-com-ng-bootstrap-ng-bootstrap0 usages
- org.webjars.npm » ng2-datetime0 usages
- org.webjars.npm » ng2-datetime-picker0 usages
- org.webjars.npm » github-com-angular-material20 usages
- org.mvnpm » a2ui0 usages
- org.webjars.npm » angular-cli0 usages
- org.webjars.npm » angular2-fontawesome0 usages
- org.webjars.npm » angular2-in-memory-web-api0 usages
- org.webjars.npm » github-com-mseemann-angular2-mdl0 usages
- org.webjars.npm » material20 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2021-4231 | nvd.nist.gov |
| Package | angular/angular | github.com |
| Web | angular/angular issue #40136 | github.com |
| Web | angular/angular commit 0aa220b | github.com |
| Web | angular/angular commit 47d9b6d | github.com |
| Web | angular/angular commit ba8da74 | github.com |
| Web | vuln/SNYK-JS-ANGULARCORE-1070902 | security.snyk.io |
| Web | vuldb.com | vuldb.com |
