Arbitrary Script Injection Affecting angular package, versions >=1.0.0 <1.2.30


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Script Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDnpm:angular:20160527
  • published23 Jan 2017
  • disclosed26 May 2016
  • creditRaphaël Jamet

Introduced: 26 May 2016

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

Upgrade angular to version 1.2.30 or higher.

Overview

angular is a package that lets you write client-side web applications as if you had a smarter browser. It also lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly.

Affected versions of this package are vulnerable to Arbitrary Script Injection. Attributes were not protected via $sce, which prevents interpolated values that fail the RESOURCE_URL context tests from being used in interpolation. For example if the application is running at https://docs.angularjs.org then the following will fail:

<link href="{{ 'http://mydomain.org/unsafe.css' }}" rel="stylesheet">

By default, RESOURCE_URL safe URLs are only allowed from the same domain and protocol as the application document.

CVSS Scores

version 3.1