NodeJS/angular/1.3.10
HTML enhanced for web apps
https://www.npmjs.com/package/angular
MIT
12 Security Vulnerabilities
Cross-Site Scripting via JSONP
JSONP allows untrusted resource URLs, which provides a vector for attack by malicious actors.
angular vulnerable to regular expression denial of service via the $resource service
- https://nvd.nist.gov/vuln/detail/CVE-2023-26117
- https://security.snyk.io/vuln/SNYK-JS-ANGULAR-3373045
- https://stackblitz.com/edit/angularjs-vulnerability-resource-trailing-slashes-redos
- https://github.com/advisories/GHSA-2qqx-w9hr-q5gx
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-5406323
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBANGULAR-5406325
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-5406324
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OQWJLE5WE33WNMA54XSJIDXBRK2KL3XJ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UDKFLKJ6VZKL52AFVW2OVZRMJWHMW55K/
All versions of the package angular are vulnerable to Regular Expression Denial of Service (ReDoS) via the $resource service due to the usage of an insecure regular expression. Exploiting this vulnerability is possible by a large carefully-crafted input, which can result in catastrophic backtracking.
angular vulnerable to regular expression denial of service via the angular.copy() utility
- https://nvd.nist.gov/vuln/detail/CVE-2023-26116
- https://security.snyk.io/vuln/SNYK-JS-ANGULAR-3373044
- https://stackblitz.com/edit/angularjs-vulnerability-angular-copy-redos
- https://github.com/advisories/GHSA-2vrf-hf26-jrp5
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-5406320
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBANGULAR-5406322
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-5406321
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OQWJLE5WE33WNMA54XSJIDXBRK2KL3XJ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UDKFLKJ6VZKL52AFVW2OVZRMJWHMW55K/
All versions of the package angular are vulnerable to Regular Expression Denial of Service (ReDoS) via the angular.copy() utility function due to the usage of an insecure regular expression. Exploiting this vulnerability is possible by a large carefully-crafted input, which can result in catastrophic backtracking.
angular vulnerable to super-linear runtime due to backtracking
- https://nvd.nist.gov/vuln/detail/CVE-2024-21490
- https://security.snyk.io/vuln/SNYK-JS-ANGULAR-6091113
- https://stackblitz.com/edit/angularjs-vulnerability-ng-srcset-redos
- https://github.com/advisories/GHSA-4w4v-5hc9-xrr2
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-6241746
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6241747
- https://support.herodevs.com/hc/en-us/articles/25715686953485-CVE-2024-21490-AngularJS-Regular-Expression-Denial-of-Service-ReDoS
This affects versions of the package angular from 1.3.0. A regular expression used to split the value of the ng-srcset directive is vulnerable to super-linear runtime due to backtracking. With a large carefully-crafted input, this can result in catastrophic backtracking and cause a denial of service.
Note:
This package is EOL and will not receive any updates to address this issue. Users should migrate to @angular/core.
XSS via JQLite DOM manipulation functions in AngularJS
- https://github.com/google/security-research/security/advisories/GHSA-5cp4-xmrw-59wf
- https://github.com/advisories/GHSA-5cp4-xmrw-59wf
- https://github.com/jquery/jquery/security/advisories/GHSA-gxr4-xjj5-5px2
- https://github.com/jquery/jquery/security/advisories/GHSA-jpcq-cgw6-v4j6
- https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/
- https://github.com/advisories/GHSA-mhp6-pxh8-r675
- https://snyk.io/vuln/SNYK-JS-ANGULAR-570058
Summary
XSS may be triggered in AngularJS applications that sanitize user-controlled HTML snippets before passing them to JQLite
methods like JQLite.prepend
, JQLite.after
, JQLite.append
, JQLite.replaceWith
, JQLite.append
, new JQLite
and angular.element
.
Description
JQLite (DOM manipulation library that's part of AngularJS) manipulates input HTML before inserting it to the DOM in jqLiteBuildFragment
.
One of the modifications performed expands an XHTML self-closing tag.
If jqLiteBuildFragment
is called (e.g. via new JQLite(aString)
) with user-controlled HTML string that was sanitized (e.g. with DOMPurify), the transformation done by JQLite may modify some forms of an inert, sanitized payload into a payload containing JavaScript - and trigger an XSS when the payload is inserted into DOM.
This is similar to a bug in jQuery htmlPrefilter
function that was fixed in 3.5.0.
Proof of concept
const inertPayload = `<div><style><style/><img src=x onerror="alert(1337)"/>`
Note that the style element is not closed and <img
would be a text node inside the style if inserted into the DOM as-is.
As such, some HTML sanitizers would leave the <img
as is without processing it and stripping the onerror
attribute.
angular.element(document).append(inertPayload);
This will alert, as <style/>
will be replaced with <style></style>
before adding it to the DOM, closing the style element early and reactivating img
.
Patches
The issue is patched in JQLite
bundled with angular 1.8.0. AngularJS users using JQuery should upgrade JQuery to 3.5.0, as a similar vulnerability affects jQuery <3.5.0.
Workarounds
Changing sanitizer configuration not to allow certain tag grouping (e.g. <option><style></option>
) or inline style elements may stop certain exploitation vectors, but it's uncertain if all possible exploitation vectors would be covered. Upgrade of AngularJS to 1.8.0 is recommended.
References
https://github.com/advisories/GHSA-mhp6-pxh8-r675 https://github.com/jquery/jquery/security/advisories/GHSA-gxr4-xjj5-5px2 https://github.com/jquery/jquery/security/advisories/GHSA-jpcq-cgw6-v4j6 https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/ https://snyk.io/vuln/SNYK-JS-ANGULAR-570058
Prototype Pollution in angular
- https://nvd.nist.gov/vuln/detail/CVE-2019-10768
- https://github.com/advisories/GHSA-89mq-4x47-5v83
- https://github.com/angular/angular.js/commit/add78e62004e80bb1e16ab2dfe224afa8e513bc3
- https://snyk.io/vuln/SNYK-JS-ANGULAR-534884
- https://lists.apache.org/thread.html/rca37935d661f4689cb4119f1b3b224413b22be161b678e6e6ce0c69b@%3Ccommits.nifi.apache.org%3E
- https://github.com/angular/angular.js/pull/16913
- https://www.npmjs.com/advisories/1343
Versions of angular
prior to 1.7.9 are vulnerable to prototype pollution. The deprecated API function merge()
does not restrict the modification of an Object's prototype in the , which may allow an attacker to add or modify an existing property that will exist on all objects.
Recommendation
Upgrade to version 1.7.9 or later. The function was already deprecated and upgrades are not expected to break functionality.
AngularJS allows attackers to bypass common image source restrictions
Improper sanitization of the value of the [srcset]
attribute in AngularJS allows attackers to bypass common image source restrictions, which can also lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing .
This issue affects AngularJS versions 1.3.0-rc.4 and greater.
Note: The AngularJS project is End-of-Life and will not receive any updates to address this issue. For more information see here https://docs.angularjs.org/misc/version-support-status .
Cross site scripting in Angular
- https://nvd.nist.gov/vuln/detail/CVE-2020-7676
- https://github.com/advisories/GHSA-mhp6-pxh8-r675
- https://github.com/angular/angular.js/pull/17028
- https://snyk.io/vuln/SNYK-JS-ANGULAR-570058
- https://github.com/angular/angular.js/pull/17028,
- https://lists.apache.org/thread.html/r198985c02829ba8285ed4f9b1de54a33b5f31b08bb38ac51fc86961b@%3Cozone-issues.hadoop.apache.org%3E
- https://lists.apache.org/thread.html/r3f05cfd587c774ea83c18e59eda9fa37fa9bbf3421484d4ee1017a20@%3Cozone-issues.hadoop.apache.org%3E
- https://lists.apache.org/thread.html/r446c297cd6cda2bd7e345c9b0741d7f611df89902e5d515848c6f4b1@%3Cozone-issues.hadoop.apache.org%3E
- https://lists.apache.org/thread.html/r455ebd83a1c69ae8fd897560534a079c70a483dbe1e75504f1ca499b@%3Cozone-issues.hadoop.apache.org%3E
- https://lists.apache.org/thread.html/r57383582dcad2305430321589dfaca6793f5174c55da6ce8d06fbf9b@%3Cozone-issues.hadoop.apache.org%3E
- https://lists.apache.org/thread.html/r79e3feaaf87b81e80da0e17a579015f6dcb94c95551ced398d50c8d7@%3Cozone-issues.hadoop.apache.org%3E
- https://lists.apache.org/thread.html/r80f210a5f4833d59c5d3de17dd7312f9daba0765ec7d4052469f13f1@%3Cozone-commits.hadoop.apache.org%3E
- https://lists.apache.org/thread.html/rb6423268b25db0f800359986867648e11dbd38e133b9383e85067f02@%3Cozone-issues.hadoop.apache.org%3E
- https://lists.apache.org/thread.html/rda99599896c3667f2cc9e9d34c7b6ef5d2bbed1f4801e1d75a2b0679@%3Ccommits.nifi.apache.org%3E
- https://lists.apache.org/thread.html/rfa2b19d01d10a8637dc319a7d5994c3dbdb88c0a8f9a21533403577a@%3Cozone-issues.hadoop.apache.org%3E
- https://github.com/angular/angular.js/commit/2df43c07779137d1bddf7f3b282a1287a8634acd
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.
AngularJS allows attackers to bypass common image source restrictions
Improper sanitization of the value of the [srcset]
attribute in <source>
HTML elements in AngularJS allows attackers to bypass common image source restrictions, which can also lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing .
This issue affects all versions of AngularJS.
Note: The AngularJS project is End-of-Life and will not receive any updates to address this issue. For more information see here https://docs.angularjs.org/misc/version-support-status .
Angular (deprecated package) Cross-site Scripting
- https://nvd.nist.gov/vuln/detail/CVE-2022-25869
- https://glitch.com/edit/%23%21/angular-repro-textarea-xss
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2949783
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBANGULAR-2949784
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949782
- https://snyk.io/vuln/SNYK-JS-ANGULAR-2949781
- https://github.com/advisories/GHSA-prc3-vjfx-vhm9
All versions of package angular are vulnerable to Cross-site Scripting (XSS) due to insecure page caching in the Internet Explorer browser, which allows interpolation of <textarea>
elements.
NPM package angular is deprecated. Those who want to receive security updates should use the actively maintained package @angular/core.
angular vulnerable to regular expression denial of service via the <input type="url"> element
- https://nvd.nist.gov/vuln/detail/CVE-2023-26118
- https://security.snyk.io/vuln/SNYK-JS-ANGULAR-3373046
- https://stackblitz.com/edit/angularjs-vulnerability-inpur-url-validation-redos
- https://github.com/advisories/GHSA-qwqh-hm9m-p5hr
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-5406326
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBANGULAR-5406328
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-5406327
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OQWJLE5WE33WNMA54XSJIDXBRK2KL3XJ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UDKFLKJ6VZKL52AFVW2OVZRMJWHMW55K/
All versions of the package angular are vulnerable to Regular Expression Denial of Service (ReDoS) via the element due to the usage of an insecure regular expression in the input[url] functionality. Exploiting this vulnerability is possible by a large carefully-crafted input, which can result in catastrophic backtracking.
AngularJS Cross-site Scripting due to failure to sanitize `xlink.href` attributes
- https://nvd.nist.gov/vuln/detail/CVE-2019-14863
- https://github.com/advisories/GHSA-r5fx-8r73-v86c
- https://github.com/angular/angular.js/pull/12524
- https://github.com/angular/angular.js/commit/35a21532b73d5bd84b4325211c563e6a3e2dde82
- https://github.com/angular/angular.js/commit/f33ce173c90736e349cf594df717ae3ee41e0f7a
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14863
- https://snyk.io/vuln/npm:angular:20150807
- https://www.npmjs.com/advisories/1453
Versions of angular
prior to 1.5.0-beta.1 are vulnerable to Cross-Site Scripting. The package fails to sanitize xlink:href
attributes, which may allow attackers to execute arbitrary JavaScript in a victim's browser if the value is user-controlled.
Recommendation
Upgrade to version 1.5.0-beta.1 or later.
144 Other Versions
Version | License | Security | Released | |
---|---|---|---|---|
1.8.3 | MIT | 8 | 2022-04-07 - 22:12 | over 2 years |
1.8.2 | MIT | 8 | 2020-10-21 - 11:58 | about 4 years |
1.8.1 | MIT | 8 | 2020-10-05 - 13:27 | about 4 years |
1.8.0 | MIT | 8 | 2020-06-04 - 16:24 | over 4 years |
1.7.9 | MIT | 10 | 2019-11-19 - 09:30 | almost 5 years |
1.7.8 | MIT | 11 | 2019-03-11 - 11:41 | over 5 years |
1.7.7 | MIT | 11 | 2019-02-04 - 13:18 | almost 6 years |
1.7.6 | MIT | 11 | 2019-01-17 - 09:45 | almost 6 years |
1.7.5 | MIT | 11 | 2018-10-04 - 14:16 | about 6 years |
1.7.4 | MIT | 11 | 2018-09-07 - 09:30 | about 6 years |
1.7.3 | MIT | 11 | 2018-08-08 - 19:19 | over 6 years |
1.7.2 | MIT | 11 | 2018-06-12 - 15:27 | over 6 years |
1.7.1 | MIT | 11 | 2018-06-08 - 14:32 | over 6 years |
1.7.0 | MIT | 11 | 2018-05-11 - 15:01 | over 6 years |
1.7.0-rc.0 | MIT | 10 | 2018-04-19 - 09:09 | over 6 years |
1.6.10 | MIT | 10 | 2018-04-17 - 17:48 | over 6 years |
1.6.9 | MIT | 10 | 2018-02-02 - 13:13 | almost 7 years |
1.6.8 | MIT | 10 | 2017-12-21 - 22:09 | almost 7 years |
1.6.7 | MIT | 10 | 2017-11-24 - 18:20 | almost 7 years |
1.6.6 | MIT | 10 | 2017-08-18 - 14:39 | about 7 years |
1.6.5 | MIT | 10 | 2017-07-03 - 19:52 | over 7 years |
1.6.4 | MIT | 10 | 2017-03-31 - 09:31 | over 7 years |
1.6.3 | MIT | 10 | 2017-03-08 - 12:38 | over 7 years |
1.6.2 | MIT | 10 | 2017-02-07 - 13:59 | almost 8 years |
1.6.1 | MIT | 10 | 2016-12-23 - 11:00 | almost 8 years |
1.6.0 | MIT | 10 | 2016-12-08 - 12:16 | almost 8 years |
1.6.0-rc.2 | MIT | 11 | 2016-11-24 - 22:07 | almost 8 years |
1.6.0-rc.1 | MIT | 11 | 2016-11-21 - 14:01 | almost 8 years |
1.6.0-rc.0 | MIT | 11 | 2016-10-27 - 20:13 | about 8 years |
1.5.11 | MIT | 11 | 2017-01-12 - 23:45 | almost 8 years |
1.5.10 | MIT | 11 | 2016-12-16 - 10:47 | almost 8 years |
1.5.9 | MIT | 11 | 2016-11-24 - 20:17 | almost 8 years |
1.5.8 | MIT | 11 | 2016-07-22 - 15:29 | over 8 years |
1.5.7 | MIT | 11 | 2016-06-15 - 19:26 | over 8 years |
1.5.6 | MIT | 11 | 2016-05-27 - 17:30 | over 8 years |
1.5.5 | MIT | 11 | 2016-04-18 - 09:47 | over 8 years |
1.5.3 | MIT | 11 | 2016-03-25 - 20:35 | over 8 years |
1.5.2 | MIT | 11 | 2016-03-18 - 22:59 | over 8 years |
1.5.1 | MIT | 11 | 2016-03-16 - 13:35 | over 8 years |
1.5.0 | MIT | 11 | 2016-02-05 - 12:01 | almost 9 years |
1.5.0-rc.2 | MIT | 11 | 2016-01-28 - 12:26 | almost 9 years |
1.5.0-rc.1 | MIT | 11 | 2016-01-15 - 22:28 | almost 9 years |
1.5.0-rc.0 | MIT | 11 | 2015-12-09 - 14:35 | almost 9 years |
1.5.0-beta.2 | MIT | 11 | 2015-11-18 - 00:22 | almost 9 years |
1.5.0-beta.0 | MIT | 12 | 2015-09-17 - 14:01 | about 9 years |
1.4.14 | MIT | 12 | 2016-10-11 - 17:45 | about 8 years |
1.4.13 | MIT | 12 | 2016-10-10 - 21:46 | about 8 years |
1.4.12 | MIT | 12 | 2016-06-15 - 17:58 | over 8 years |
1.4.11 | MIT | 12 | 2016-05-27 - 12:17 | over 8 years |
1.4.10 | MIT | 12 | 2016-03-16 - 19:58 | over 8 years |
1.4.9 | MIT | 12 | 2016-01-21 - 13:22 | almost 9 years |
1.4.8 | MIT | 12 | 2015-11-20 - 08:13 | almost 9 years |
1.4.7 | MIT | 12 | 2015-09-29 - 23:06 | about 9 years |
1.4.6 | MIT | 12 | 2015-09-17 - 12:28 | about 9 years |
1.4.5 | MIT | 12 | 2015-08-28 - 19:58 | about 9 years |
1.4.4 | MIT | 12 | 2015-08-13 - 18:56 | about 9 years |
1.4.3 | MIT | 12 | 2015-07-15 - 02:01 | over 9 years |
1.4.2 | MIT | 12 | 2015-07-06 - 21:30 | over 9 years |
1.4.1 | MIT | 12 | 2015-06-16 - 14:11 | over 9 years |
1.4.0 | MIT | 12 | 2015-05-27 - 01:48 | over 9 years |
1.4.0-rc.2 | MIT | 12 | 2015-05-12 - 19:24 | over 9 years |
1.4.0-rc.1 | MIT | 12 | 2015-04-24 - 18:59 | over 9 years |
1.4.0-rc.0 | MIT | 12 | 2015-04-10 - 18:09 | over 9 years |
1.4.0-beta.6 | MIT | 12 | 2015-03-17 - 12:17 | over 9 years |
1.4.0-beta.5 | MIT | 12 | 2015-02-24 - 19:39 | over 9 years |
1.4.0-beta.4 | MIT | 12 | 2015-02-09 - 11:29 | almost 10 years |
1.4.0-beta.3 | MIT | 12 | 2015-02-03 - 21:36 | almost 10 years |
1.4.0-beta.2 | MIT | 12 | 2015-01-26 - 23:14 | almost 10 years |
1.4.0-beta.1 | MIT | 12 | 2015-01-20 - 20:55 | almost 10 years |
1.4.0-beta.0 | MIT | 12 | 2015-01-14 - 21:25 | almost 10 years |
1.3.20 | MIT | 12 | 2015-09-29 - 22:34 | about 9 years |
1.3.19 | MIT | 12 | 2015-09-16 - 21:19 | about 9 years |
1.3.18 | MIT | 12 | 2015-08-18 - 22:40 | about 9 years |
1.3.17 | MIT | 12 | 2015-07-06 - 21:53 | over 9 years |
1.3.16 | MIT | 12 | 2015-06-05 - 21:20 | over 9 years |
1.3.15 | MIT | 12 | 2015-03-17 - 13:15 | over 9 years |
1.3.14 | MIT | 12 | 2015-02-24 - 19:10 | over 9 years |
1.3.13 | MIT | 12 | 2015-02-09 - 11:10 | almost 10 years |
1.3.12 | MIT | 12 | 2015-02-03 - 21:51 | almost 10 years |
1.3.11 | MIT | 12 | 2015-01-26 - 23:34 | almost 10 years |
1.3.10 | MIT | 12 | 2015-01-20 - 20:39 | almost 10 years |
1.3.9 | MIT | 12 | 2015-01-14 - 23:22 | almost 10 years |
1.3.8 | MIT | 12 | 2014-12-19 - 21:43 | almost 10 years |
1.3.7 | MIT | 12 | 2014-12-15 - 22:02 | almost 10 years |
1.3.6 | MIT | 12 | 2014-12-09 - 00:28 | almost 10 years |
1.3.5 | MIT | 12 | 2014-12-02 - 05:35 | almost 10 years |
1.3.4 | MIT | 12 | 2014-11-24 - 23:46 | almost 10 years |
1.3.4-build.3588 | MIT | 12 | 2014-11-20 - 22:52 | almost 10 years |
1.3.3 | MIT | 12 | 2014-11-18 - 08:09 | almost 10 years |
1.3.2 | MIT | 12 | 2014-11-07 - 19:31 | about 10 years |
1.3.1 | MIT | 12 | 2014-10-31 - 17:49 | about 10 years |
1.3.0 | MIT | 12 | 2014-10-13 - 22:39 | about 10 years |
1.3.0-rc.5 | MIT | 11 | 2014-10-08 - 23:07 | about 10 years |
1.2.32 | MIT | 10 | 2016-10-11 - 17:12 | about 8 years |
1.2.31 | MIT | 10 | 2016-10-11 - 08:53 | about 8 years |
1.2.30 | MIT | 10 | 2016-07-21 - 10:34 | over 8 years |
1.2.29 | MIT | 10 | 2015-09-29 - 22:02 | about 9 years |
1.2.28 | MIT | 10 | 2014-12-15 - 22:36 | almost 10 years |
1.2.27 | MIT | 10 | 2014-11-20 - 23:32 | almost 10 years |
1.2.23 | MIT | 10 | 2014-08-31 - 00:18 | about 10 years |