Clickjacking Affecting angular package, versions >=1.3.1 <1.5.0-beta.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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 ID npm:angular:20150807-1
  • published 23 Jan 2017
  • disclosed 6 Aug 2015
  • credit Igor Minar

Introduced: 6 Aug 2015

CVE NOT AVAILABLE CWE-693 Open this link in a new tab

How to fix?

Upgrade angular to version 1.5.0-beta.0 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 Clickjacking. By enabling the SVG setting without taking other precautions, you might expose your application to click-hijacking attacks. In these attacks, sanitized SVG elements could be positioned outside of the containing element and be rendered over other elements on the page (e.g. a login link). Such behavior can then result in phishing incidents.

To protect against these, explicitly setup overflow: hidden css rule for all potential SVG tags within the sanitized content:

.rootOfTheIncludedContent svg {
  overflow: hidden !important;
}

CVSS Scores

version 3.1
Expand this section

Snyk

6.8 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    None