{"componentChunkName":"component---src-templates-post-js","path":"/is-angularjs-still-safe/","result":{"data":{"markdownRemark":{"html":"<p class=\"disclaimer\"><img src=\"https://accesto.com/images/icons/bulb.svg\"><span>Welcome to our <a href=\"https://accesto.com/blog/tags/a2a\">From AngularJS to Angular series</a> - for teams still running AngularJS: why waiting is a risk, which migration approach fits your app, and what are the most common ways to do that in practice.</span></p>\n<p><strong>TL;DR:</strong> Not in the sense your security team means. AngularJS support ended on 31 December 2021, and since then the npm package <code class=\"language-text\">angular</code> has collected ten security advisories, two of them rated high, every one of them stamped \"Patched versions: None\". Install 1.8.3 today with the companion packages a real application carries and <code class=\"language-text\">npm audit</code> reports a high-severity finding with nothing to upgrade to. A paid, patched fork exists; it buys time, not a future. Whether any of those advisories is exploitable in your own application is a separate question. Below: the audit output, one advisory worked through in full, and a checklist you can run against an existing application.</p>\n<p>Every changing data point here was rechecked in a clean temporary project. \"AngularJS is insecure\" gets repeated constantly and almost never with a source.</p>\n<blockquote>\n<p><strong>Data snapshot, 27 October 2026.</strong> npm dist-tags, audit results, advisory records, severities and download counts can change after publication. npm can also revise totals for an already completed download period. The snapshot date and tool versions make the results reproducible, but a later run may legitimately differ.</p>\n</blockquote>\n<h2>What \"end of life\" means in practice</h2>\n<p>The last release of AngularJS is 1.8.3, published on 7 April 2022, a few months after long-term support officially ended on 31 December 2021. Install it today and npm says so itself.</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">npm warn deprecated angular@1.8.3: For the actively supported Angular, see\nhttps://www.npmjs.com/package/@angular/core. AngularJS support has officially\nended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.</code></pre></div>\n<p>The code still runs. What stopped is narrower than the phrase suggests.</p>\n<ol>\n<li><strong>No security fixes in the official line.</strong> Whatever gets found after 1.8.3 stays unfixed there. The one established supported alternative is a commercial fork, which we come back to further down.</li>\n<li><strong>No compatibility fixes.</strong> When a browser changes behaviour, nobody is going to adjust the framework for you.</li>\n<li><strong>The libraries around it stopped too, most of them earlier.</strong> The <code class=\"language-text\">latest</code> dist-tag in the npm registry:</li>\n</ol>\n<table>\n<thead>\n<tr>\n<th>Package</th>\n<th>npm <code class=\"language-text\">latest</code></th>\n<th>Released</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>angular</td>\n<td>1.8.3</td>\n<td>April 2022</td>\n</tr>\n<tr>\n<td>angular-material (1.x)</td>\n<td>1.2.5</td>\n<td>April 2022</td>\n</tr>\n<tr>\n<td>angular-ui-bootstrap</td>\n<td>2.5.6</td>\n<td>October 2017</td>\n</tr>\n<tr>\n<td>restangular</td>\n<td>1.6.1</td>\n<td>January 2017</td>\n</tr>\n<tr>\n<td>textangular</td>\n<td>1.5.16</td>\n<td>December 2016</td>\n</tr>\n<tr>\n<td>ng-table</td>\n<td>3.0.1</td>\n<td>December 2016</td>\n</tr>\n<tr>\n<td>@uirouter/angularjs</td>\n<td>1.1.2</td>\n<td>December 2025</td>\n</tr>\n</tbody>\n</table>\n<p>ui-router is the one exception in this sample and still ships releases. The rest have been frozen for four to ten years. Several of them carry advisories of their own, and a support contract for <code class=\"language-text\">angular</code> covers none of that.</p>\n<p><code class=\"language-text\">ng-table</code> needs one qualification: npm's <code class=\"language-text\">latest</code> tag points to 3.0.1, but 3.1.0 and 4.0.0 were also published later in December 2016, with 4.0.0 tagged <code class=\"language-text\">next</code>. The table reports what a plain <code class=\"language-text\">npm install ng-table</code> selects, not the highest version ever published.</p>\n<p>The reproducible registry checks are <code class=\"language-text\">npm view &lt;package> dist-tags.latest</code> for the selected version and <code class=\"language-text\">npm view &lt;package> time --json</code> for its publication timestamp.</p>\n<h2>What <code class=\"language-text\">npm audit</code> says today</h2>\n<p>We installed a realistic dependency set in a clean temporary project and audited it with npm 11.18.0 on Node 22.23.1. This was the whole <code class=\"language-text\">package.json</code>.</p>\n<div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span> <span class=\"token property\">\"dependencies\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span>\n  <span class=\"token property\">\"angular\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"1.8.3\"</span><span class=\"token punctuation\">,</span> <span class=\"token property\">\"angular-route\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"1.8.3\"</span><span class=\"token punctuation\">,</span> <span class=\"token property\">\"angular-sanitize\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"1.8.3\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"angular-animate\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"1.8.3\"</span><span class=\"token punctuation\">,</span> <span class=\"token property\">\"angular-ui-router\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"1.0.30\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"angular-ui-bootstrap\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"2.5.6\"</span><span class=\"token punctuation\">,</span> <span class=\"token property\">\"angular-material\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"1.2.5\"</span> <span class=\"token punctuation\">}</span> <span class=\"token punctuation\">}</span></code></pre></div>\n<p>The relevant part of the output:</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">4 vulnerabilities (3 moderate, 1 high)\n\nangular  *   severity: high\n  Angular (deprecated package) Cross-site Scripting            GHSA-prc3-vjfx-vhm9\n  AngularJS improperly sanitizes SVG elements                  GHSA-j58c-ww9w-pwp5\n  angular vulnerable to regular expression denial of service   GHSA-m2h2-264f-f486\n  AngularJS allows attackers to bypass image source restrictions GHSA-m9gf-397r-hwpg\n  AngularJS allows attackers to bypass image source restrictions GHSA-mqm9-c95h-x2p6\n  angular vulnerable to super-linear runtime due to backtracking GHSA-4w4v-5hc9-xrr2\n  ReDoS via the angular.copy() utility                         GHSA-2vrf-hf26-jrp5\n  ReDoS via the $resource service                              GHSA-2qqx-w9hr-q5gx\n  ReDoS via the &lt;input type=\"url\"> element                     GHSA-qwqh-hm9m-p5hr\n  Angular's deprecated package has a Cross-Site Scripting issue GHSA-7x27-g8rg-x87w\n  fix available via npm audit fix --force\n  Will install angular-ui-router@0.2.17, which is a breaking change\nangular-sanitize  >=1.3.1   severity: moderate\n  AngularJS Incomplete Filtering of Special Elements           GHSA-4p4w-6hg8-63wx\n  fix available via npm audit fix --force\n  Will install angular-sanitize@1.3.0, which is a breaking change\n\nangular-material  >=0.8.1\n  Depends on vulnerable versions of angular\nangular-ui-router >=0.2.18\n  Depends on vulnerable versions of angular</code></pre></div>\n<p>npm offers two nominal fixes: downgrading ui-router to 0.2.17 and downgrading <code class=\"language-text\">angular-sanitize</code> to 1.3.0, below the affected range. Both are breaking changes, neither upgrades AngularJS to a maintained release, and nobody should apply them blindly. Every advisory against the official <code class=\"language-text\">angular</code> package ends on the same line, \"Patched versions: None\".</p>\n<p><code class=\"language-text\">npm audit</code> sees only what npm installed. AngularJS pulled in through Bower, a CDN <code class=\"language-text\">&lt;script></code> tag or a copied <code class=\"language-text\">angular.min.js</code> sitting in the repository never appears in that output. The checklist below starts with the version served to the browser.</p>\n<p>The full list of advisories filed against the <code class=\"language-text\">angular</code> package after end of life comes from the GitHub advisory database. Every CVE links to its advisory, and the conditions are worth reading at the source. The separate <code class=\"language-text\">angular-sanitize</code> finding in the audit is CVE-2025-2336; it is not one of the ten entries below because it belongs to a different npm package.</p>\n<table>\n<thead>\n<tr>\n<th>Published</th>\n<th>CVE</th>\n<th>Severity</th>\n<th>Issue</th>\n<th>Needs</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>2022-05</td>\n<td><a href=\"https://github.com/advisories/GHSA-m2h2-264f-f486\" target=\"_blank\" rel=\"nofollow\" rel=\"noopener\">CVE-2022-25844</a></td>\n<td>medium</td>\n<td>ReDoS in number formatting</td>\n<td>a custom locale rule with attacker-controlled <code class=\"language-text\">posPre</code></td>\n</tr>\n<tr>\n<td>2022-07</td>\n<td><a href=\"https://github.com/advisories/GHSA-prc3-vjfx-vhm9\" target=\"_blank\" rel=\"nofollow\" rel=\"noopener\">CVE-2022-25869</a></td>\n<td>medium</td>\n<td>XSS via <code class=\"language-text\">&lt;textarea></code> interpolation</td>\n<td>Internet Explorer page caching; IE only</td>\n</tr>\n<tr>\n<td>2023-03</td>\n<td><a href=\"https://github.com/advisories/GHSA-2vrf-hf26-jrp5\" target=\"_blank\" rel=\"nofollow\" rel=\"noopener\">CVE-2023-26116</a></td>\n<td>medium</td>\n<td>ReDoS via <code class=\"language-text\">angular.copy()</code></td>\n<td>attacker-controlled input reaching <code class=\"language-text\">angular.copy()</code></td>\n</tr>\n<tr>\n<td>2023-03</td>\n<td><a href=\"https://github.com/advisories/GHSA-2qqx-w9hr-q5gx\" target=\"_blank\" rel=\"nofollow\" rel=\"noopener\">CVE-2023-26117</a></td>\n<td>medium</td>\n<td>ReDoS via <code class=\"language-text\">$resource</code></td>\n<td>the separate <code class=\"language-text\">ngResource</code> module and an attacker-controlled <code class=\"language-text\">$resource</code> URL with a long run of slashes followed by a non-slash character</td>\n</tr>\n<tr>\n<td>2023-03</td>\n<td><a href=\"https://github.com/advisories/GHSA-qwqh-hm9m-p5hr\" target=\"_blank\" rel=\"nofollow\" rel=\"noopener\">CVE-2023-26118</a></td>\n<td>medium</td>\n<td>ReDoS via <code class=\"language-text\">&lt;input type=\"url\"></code></td>\n<td>attacker-controlled value in a URL input</td>\n</tr>\n<tr>\n<td>2024-02</td>\n<td><a href=\"https://github.com/advisories/GHSA-4w4v-5hc9-xrr2\" target=\"_blank\" rel=\"nofollow\" rel=\"noopener\">CVE-2024-21490</a></td>\n<td>high</td>\n<td>ReDoS via <code class=\"language-text\">ng-srcset</code></td>\n<td>attacker-controlled string bound to <code class=\"language-text\">ng-srcset</code></td>\n</tr>\n<tr>\n<td>2024-09</td>\n<td><a href=\"https://github.com/advisories/GHSA-m9gf-397r-hwpg\" target=\"_blank\" rel=\"nofollow\" rel=\"noopener\">CVE-2024-8372</a></td>\n<td>low</td>\n<td>image source restriction bypass via <code class=\"language-text\">srcset</code></td>\n<td>attacker-controlled value bound through <code class=\"language-text\">ngSrcset</code>, <code class=\"language-text\">ngAttrSrcset</code>, <code class=\"language-text\">ngPropSrcset</code> or <code class=\"language-text\">srcset</code> interpolation where the application relies on image-source restrictions</td>\n</tr>\n<tr>\n<td>2024-09</td>\n<td><a href=\"https://github.com/advisories/GHSA-mqm9-c95h-x2p6\" target=\"_blank\" rel=\"nofollow\" rel=\"noopener\">CVE-2024-8373</a></td>\n<td>low</td>\n<td>same, via <code class=\"language-text\">&lt;source srcset></code></td>\n<td>attacker-controlled <code class=\"language-text\">&lt;source></code> value set through <code class=\"language-text\">ngAttrSrcset</code> or <code class=\"language-text\">srcset</code> interpolation; <code class=\"language-text\">ngSrcset</code> and <code class=\"language-text\">ngPropSrcset</code> are not affected by this CVE</td>\n</tr>\n<tr>\n<td>2025-04</td>\n<td><a href=\"https://github.com/advisories/GHSA-j58c-ww9w-pwp5\" target=\"_blank\" rel=\"nofollow\" rel=\"noopener\">CVE-2025-0716</a></td>\n<td>low</td>\n<td>SVG <code class=\"language-text\">&lt;image href></code> sanitisation</td>\n<td>attacker-controlled SVG <code class=\"language-text\">&lt;image></code> URL set through <code class=\"language-text\">ngHref</code>, <code class=\"language-text\">ngAttrHref</code> or <code class=\"language-text\">href</code> interpolation where the application relies on image-source restrictions</td>\n</tr>\n<tr>\n<td>2026-06</td>\n<td><a href=\"https://github.com/advisories/GHSA-7x27-g8rg-x87w\" target=\"_blank\" rel=\"nofollow\" rel=\"noopener\">CVE-2026-11998</a></td>\n<td>high</td>\n<td>SCE resource URL policy bypass</td>\n<td>a regular expression in the trusted resource URL list that can match partially, and a resource URL (template, iframe, script) built from untrusted input</td>\n</tr>\n</tbody>\n</table>\n<p>Ten advisories in nearly five years, the most recent from June 2026. The severity column reproduces GitHub's rating; other databases and vendors sometimes score the same CVE differently. Your exposure depends on three other things: whether you use the feature at all, whether an attacker can supply the input it needs, and whether something in front of it stops that input first. CVE-2022-25869 shows how wide the gap gets. It is real, it is rated medium, and it needs Internet Explorer.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1300px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 52.307692307692314%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAACXBIWXMAAAsTAAALEwEAmpwYAAABRElEQVQoz41S227DIAzt///a3ru1VacsF5ImhHAnBDAzWSdV6yYNHQlsfI5tzCHnLKWiTDAmJ7osXGpjuVRcaKkMGmgKqUOI+WkdClm5tp0LGjreuJQWEuR/rENKyUegpL6eqqqidcNaMivjQoIQYQvpLwAAksGt0RnFhnZiljRdR2g/cqWdMqvzwW+xIKQf2MkAGLH6uMUUId/OL2/H99OprxraDtQ6LCvj1RaQH3/L7LcVM+B1TFowviiuPCdk6MaRSrZoqa1bUQG+JQruZOs390VGL/aJeVJepTDaXevx+NqcL+SjnvqRcWlQYi8b9zs5rM9dRcCCtfPY+TCJGmfRzSMVC1fGYjiUzAB5f5IQ9mLCA4oZURxmpmp8gnaemGI98fMUUi5kHJfYe8IDSmBlOLycQShjjHtwlsnvf6Y4Y4nJn++1QdzmQOX+AAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Timeline from 2022 to 2026 of ten advisories against the angular npm package: two high, five medium and three low\"\n        title=\"Ten advisories after AngularJS end of life\"\n        src=\"/blog/static/3f13c03fcc5d9fde653fbb97c9f364e7/3c492/advisories_timeline.png\"\n        srcset=\"/blog/static/3f13c03fcc5d9fde653fbb97c9f364e7/ff46a/advisories_timeline.png 325w,\n/blog/static/3f13c03fcc5d9fde653fbb97c9f364e7/a6d36/advisories_timeline.png 650w,\n/blog/static/3f13c03fcc5d9fde653fbb97c9f364e7/3c492/advisories_timeline.png 1300w,\n/blog/static/3f13c03fcc5d9fde653fbb97c9f364e7/891d5/advisories_timeline.png 1520w\"\n        sizes=\"(max-width: 1300px) 100vw, 1300px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>Showing that an advisory cannot be exploited in your application does not always settle the matter with customers. Some security questionnaires only ask whether you run end-of-life software or known CVEs, yes or no. Others leave room for a description of the mitigation and an exception that someone signs.</p>\n<h2>One advisory, worked through: CVE-2026-11998</h2>\n<p>Take the newest high one, one of the two advisories rated high in the table above. It is also the one where a quick grep for <code class=\"language-text\">$sce.</code> finds nothing and proves nothing.</p>\n<p>SCE is the mechanism AngularJS uses to decide which URLs may be loaded as templates, <code class=\"language-text\">&lt;iframe></code> documents or scripts. It matches URLs against the patterns in the trusted resource URL list, and with certain regular expressions, notably expressions with alternation, that match can be partial. A URL you never intended to trust then passes as trusted. Two conditions have to hold at the same time: the application configures the list with a regular expression that permits a partial match, and a resource URL somewhere is built from input an attacker can influence.</p>\n<p>So the question is not \"do we use <code class=\"language-text\">$sce</code>\".</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1300px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 53.53846153846153%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAIAAADwazoUAAAACXBIWXMAAAsTAAALEwEAmpwYAAABwklEQVQoz3VQaW+jMBTk//+rbpom1e6qhCRNue8zNgZz2Bhj9oVW/VBpR6PRMHrWm4cmFzUJybhgfAaOTADBQDjLBY1lL9qS5k7qeXkAdDPfy4IYR8NMNS5kx0RWtsY5ulzj60eqG2GSEwg7zu5jnnex176/XF+f3vY74/Ck78F8VEY5ptqiFGwAhQp8ElGMmmZc1/URLgqMXCQVhM41FXUrHroZzOWowVA/ThWiaU6iGJtWFoT3omohFFIWfUw4inBgpbaV2E7mOLkD3qvchtcajNBBIDK4fuVHKIyx698r3HWj6DmjUwPNLXTZn6H2yy/98Hw+gjFiHfFcU2qFzuuGeZZZTuCHbW2V2nLQaWFAodinmRSDzlLNj83QsG6GKMF+cHfcwg/v8DkwMXAetnbWhV5tGuHpzdNPwckIDd3XzeqKWKGJRY0CuJS4jzNie2VWUiYWCPkslVrGufex8x7dbvENdOOHVZjNhLR14jPBgtTr0M4tSUyvKwpJiSB4ndjnOWr9uusbkAA1hbLBuiR//tq7g7U72M9Hd38MXn/35llVyTb48+U3NDVQVRcrKYc0Rq4HR4NRdQmh6puvNf/BP3YnZjDIA9zGAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Decision flow for triaging CVE-2026-11998: check for a RegExp in the trusted resource URL list, then attacker-influenced resource URLs, then whether a crafted URL passes the matcher\"\n        title=\"Triage of CVE-2026-11998\"\n        src=\"/blog/static/1705240ea5047e8cd5904691fcaef1d2/3c492/cve_triage.png\"\n        srcset=\"/blog/static/1705240ea5047e8cd5904691fcaef1d2/ff46a/cve_triage.png 325w,\n/blog/static/1705240ea5047e8cd5904691fcaef1d2/a6d36/cve_triage.png 650w,\n/blog/static/1705240ea5047e8cd5904691fcaef1d2/3c492/cve_triage.png 1300w,\n/blog/static/1705240ea5047e8cd5904691fcaef1d2/891d5/cve_triage.png 1520w\"\n        sizes=\"(max-width: 1300px) 100vw, 1300px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<ol>\n<li>\n<p><strong>Is the list configured, and with what?</strong> Search for the configuration under its current and its old name, across the whole application. Your code, vendored libraries, generated code, any config outside <code class=\"language-text\">src/</code>.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">grep</span> <span class=\"token parameter variable\">-RInE</span> --exclude-dir<span class=\"token operator\">=</span>.git --exclude-dir<span class=\"token operator\">=</span>node_modules <span class=\"token punctuation\">\\</span>\n  <span class=\"token string\">'\\$sceDelegateProvider|trustedResourceUrlList|resourceUrlWhitelist|resourceUrlBlacklist|bannedResourceUrlList'</span> <span class=\"token builtin class-name\">.</span></code></pre></div>\n<p>If nothing overrides the list, the default <code class=\"language-text\">['self']</code> applies, which is a string match rather than a regular expression, and the bypass does not apply. Overrides built only from string patterns such as <code class=\"language-text\">'https://cdn.example.com/**'</code> give the same answer. Any <code class=\"language-text\">RegExp</code> entry and you keep going.</p>\n</li>\n<li>\n<p><strong>Where do resource URLs come from?</strong> Templates loaded by <code class=\"language-text\">ng-include</code>, <code class=\"language-text\">templateUrl</code> values, <code class=\"language-text\">$templateRequest</code>, <code class=\"language-text\">&lt;iframe ng-src></code> and <code class=\"language-text\">&lt;script></code> sources set from data.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">grep</span> <span class=\"token parameter variable\">-RInE</span> --exclude-dir<span class=\"token operator\">=</span>.git --exclude-dir<span class=\"token operator\">=</span>node_modules <span class=\"token punctuation\">\\</span>\n  <span class=\"token string\">'ng-include|templateUrl|\\$templateRequest|\\$sce\\.(getTrustedResourceUrl|trustAsResourceUrl)|ng-src|&lt;script[^>]+src[[:space:]]*='</span> <span class=\"token builtin class-name\">.</span></code></pre></div>\n<p>That gives you call sites to check by hand, many of them harmless, such as static images and scripts. Follow every value back to its origin and write down, for each source, who can change it, with what privileges, and whether they can give it the shape the exploit needs. A value only an administrator can set is a different threat model from one an anonymous user submits, and both differ from a constant in the code. A URL a user saved last year and your own API returns today still came from a user.</p>\n</li>\n<li><strong>Conclusion, per finding.</strong> A regular expression that permits a partial match plus an attacker-influenced resource URL is a candidate exposure. Confirm that a crafted URL actually passes the matcher before you record it as exploitable. Then mitigate it in the application: prefer AngularJS string matchers, or validate against an allow list that pins scheme, host, port and, where it matters, path, and add tests that reject crafted URLs. That removes this application's vulnerable configuration without changing the framework, although the official package remains vulnerable. If the configuration contains no vulnerable regular expression, the first precondition is absent, and you write down how you checked. The grep results and the list of resource URL origins are the first part of the questionnaire evidence.</li>\n</ol>\n<p>Budget about an hour per advisory. The other nine run the same way.</p>\n<h2>What the download counts show</h2>\n<p>Package downloads from <code class=\"language-text\">api.npmjs.org</code>.</p>\n<table>\n<thead>\n<tr>\n<th>Package</th>\n<th>21 to 27 September 2026</th>\n<th>29 August to 27 September 2026</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>angular</td>\n<td>611 508</td>\n<td>2 185 342</td>\n</tr>\n<tr>\n<td>@angular/core</td>\n<td>not collected</td>\n<td>23 001 873</td>\n</tr>\n</tbody>\n</table>\n<p>There is not one application in that table. There are installs, CI pipelines rebuilding old apps and transitive pulls, and nothing at all from Bower, a CDN or a file committed to the repository. Nearly five years after end of life, <code class=\"language-text\">angular</code> goes out around two million times a month.</p>\n<h2>The paid lifeline and what it buys</h2>\n<p>Paid extended support for AngularJS exists. It can provide patched, drop-in replacements and compliance evidence while a migration is under way. Check the exact scope before buying: framework coverage may not include companion libraries. It reduces security and compliance risk, but it does not solve the hiring problem, modernise the build or remove the need to migrate.</p>\n<h2>Four risks that are not about code</h2>\n<p>Scanners find the CVEs. None of the four below show up in a scan, and they are usually what forces the decision.</p>\n<p>Start with hiring. Few developers who started in the last six years have written AngularJS, and the ones who know it mostly do not want to go back to it. Candidates are more open when the work is tied to a migration that has a budget, and that offer stops working once \"we will migrate someday\" has been sitting on the roadmap for three years.</p>\n<p>Then procurement. Enterprise customers send questionnaires, and \"do you use software that has reached end of life?\" is a standard question on them. An honest answer can delay a deal, trigger an exception process that someone senior has to sign off, and in some cases drop you off the shortlist.</p>\n<p>New work usually costs more. New features get written against a framework the team is trying to leave, so each one is either built twice or built in the new stack with a bridge back to the old one. You pay that tax every sprint and it never appears as a line item.</p>\n<p>The fourth one is the build. The application usually sits on an equally old build chain: an unsupported Node version, abandoned plugins, Bower, a webpack 3 config, and less documentation than the application itself. It stops being a background worry on the day the last person who understands it leaves, or the day a Node upgrade drops something it depends on.</p>\n<h2>What one afternoon gets you</h2>\n<p>In an afternoon you can inventory the application and triage the two high-severity advisories. A defensible review of all ten takes longer, closer to an hour each. In the commands below, replace <code class=\"language-text\">src/</code> and <code class=\"language-text\">dist/</code> with the source and build output directories the project actually uses.</p>\n<ol>\n<li>\n<p><strong>Which AngularJS is actually served.</strong> Not the version in <code class=\"language-text\">package.json</code>, the one that reaches the browser. Open the app and type <code class=\"language-text\">angular.version.full</code> in the console; that is the answer you can rely on. Searching the build output is the fallback, and a minifier that stripped the banner turns an empty result into a false negative.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">grep</span> <span class=\"token parameter variable\">-RahoE</span> <span class=\"token string\">'AngularJS v[0-9]+(\\.[0-9]+){1,2}'</span> dist/</code></pre></div>\n<p>Versions below 1.8.3 are also missing the fixes that went into the later official releases. If the framework comes from a CDN tag or a vendored file, <code class=\"language-text\">npm audit</code> will never see it, and every check below is on you.</p>\n</li>\n<li>\n<p><strong>What the audit says.</strong> With an npm lockfile in the project, run the audit over the whole tree first:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">npm</span> audit</code></pre></div>\n<p>Without a lockfile it stops at <code class=\"language-text\">ENOLOCK</code>, the normal case in a project that only ever used Bower. Skip <code class=\"language-text\">--omit=dev</code>: in frontend projects AngularJS often sits in <code class=\"language-text\">devDependencies</code> and still ends up in the bundle. Save the output with the npm version you used and rerun it on a schedule. New advisories get assigned to versions that have sat in your lockfile for years, so the same lockfile can give a different result next month.</p>\n</li>\n<li>\n<p><strong>Which risky features are used at all.</strong> The SCE configuration grep from the worked example covers the first precondition of CVE-2026-11998. This pass lists candidate call sites for the image-source bypasses, HTML sanitisation, <code class=\"language-text\">angular.copy()</code>, <code class=\"language-text\">$resource</code>, URL inputs, textarea interpolation and custom <code class=\"language-text\">posPre</code> locale rules.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">grep</span> <span class=\"token parameter variable\">-RInE</span> <span class=\"token string\">'ng-(srcset|attr-srcset|prop-srcset|href|attr-href)|srcset[[:space:]]*=|&lt;image|ng-bind-html|\\$sanitize|ng-include|angular\\.copy[[:space:]]*\\(|\\$resource[[:space:]]*\\(|posPre|&lt;textarea|&lt;input[^>]+type[^>]+url'</span> src/</code></pre></div>\n<p>A hit is a place to look, not a finding. This deliberately broad search produces false positives and can still miss directives assembled dynamically, camel-cased directive names in JavaScript and templates split across lines. For every hit, ask who can influence that value and with what privileges, including through your own database and API. Values no user can touch are low exposure. Everything else goes on the list of data flows to verify.</p>\n</li>\n<li>\n<p><strong>How big it is.</strong> Registration and route counts are the first figures we ask for. They tell you the size of the application, not the length of the migration.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\">rg <span class=\"token parameter variable\">-U</span> --count-matches --no-filename <span class=\"token punctuation\">\\</span>\n  <span class=\"token string\">'\\.(animation|component|constant|controller|decorator|directive|factory|filter|provider|service|value)\\s*\\('</span> src/ <span class=\"token punctuation\">\\</span>\n  <span class=\"token operator\">|</span> <span class=\"token function\">awk</span> <span class=\"token string\">'{ total += $1 } END { print total + 0 }'</span></code></pre></div>\n<p>Routes need the pattern of the router you actually use. For ui-router:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\">rg <span class=\"token parameter variable\">-U</span> --count-matches --no-filename <span class=\"token string\">'\\.state\\s*\\('</span> src/ <span class=\"token punctuation\">\\</span>\n  <span class=\"token operator\">|</span> <span class=\"token function\">awk</span> <span class=\"token string\">'{ total += $1 } END { print total + 0 }'</span></code></pre></div>\n<p>For ngRoute:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\">rg <span class=\"token parameter variable\">-U</span> --count-matches --no-filename <span class=\"token string\">'\\.when\\s*\\('</span> src/ <span class=\"token punctuation\">\\</span>\n  <span class=\"token operator\">|</span> <span class=\"token function\">awk</span> <span class=\"token string\">'{ total += $1 } END { print total + 0 }'</span></code></pre></div>\n<p>These counters use ripgrep's multiline mode so chained calls split across lines are included. They are still rough: registrations built in helpers or loops are missed, commented-out calls are counted, and the shorter route patterns can count unrelated <code class=\"language-text\">.state()</code> or <code class=\"language-text\">.when()</code> methods. Run them over the router configuration directories rather than the entire repository when those method names occur elsewhere.</p>\n</li>\n<li><strong>Who is asking.</strong> Open the last three security questionnaires you filled in and find the end-of-life question. If it is there, the deadline comes from the sales cycle.</li>\n</ol>\n<p>By the end of the afternoon you have a version and dependency inventory, candidate data flows to verify for the advisories rated high, and an answer to whether anyone outside the building is already asking. A verdict on whether the application is safe takes the full review.</p>\n<h2>What the options actually are</h2>\n<p>This decision usually gets reduced to \"buy support or start migrating\". There are more options than that:</p>\n<ul>\n<li>migrate incrementally, screen by screen or route by route;</li>\n<li>buy the patched commercial fork as a bridge while that runs;</li>\n<li>accept the risk in writing, with compensating controls, if the application genuinely has low exposure and a short remaining life;</li>\n<li>maintain your own backport or fork, rarely worth the money but technically possible;</li>\n<li>retire the application, or replace it with a product you buy instead of rebuilding it screen for screen.</li>\n</ul>\n<p>Isolating the application, cutting its privileges, deleting modules nobody uses, network segmentation and a current SBOM belong on the same list. None of them patch anything. They do reduce what a working exploit would reach.</p>\n<h2>Reducing the risk while the migration runs</h2>\n<p>For the months between the decision and the first migrated screen, this is the list we work through on projects we take over.</p>\n<ul>\n<li>Pin every AngularJS dependency to an exact version and commit the lockfile, so what you deploy is reproducible. Rerun the audit on a schedule; the advisory list changes without you.</li>\n<li>Mitigate the advisories that do apply in your own code. Use string matchers instead of regular expressions in the trusted resource URL list, and put length limits and validation on anything bound to <code class=\"language-text\">ng-srcset</code> or passed to <code class=\"language-text\">angular.copy()</code>. Review <code class=\"language-text\">ngSrcset</code>, <code class=\"language-text\">ngAttrSrcset</code>, <code class=\"language-text\">ngPropSrcset</code>, <code class=\"language-text\">srcset</code> interpolation and SVG <code class=\"language-text\">&lt;image></code> URL bindings separately; CVE-2024-8372, CVE-2024-8373 and CVE-2025-0716 are in AngularJS's binding and image-source handling, not in <code class=\"language-text\">$sanitize</code>, so replacing <code class=\"language-text\">$sanitize</code> with DOMPurify does not fix those paths. Keep sanitising untrusted HTML, and assess the separate <code class=\"language-text\">angular-sanitize</code> CVE-2025-2336 wherever <code class=\"language-text\">ngSanitize</code>, <code class=\"language-text\">$sanitize</code> or <code class=\"language-text\">ng-bind-html</code> handles attacker-controlled markup. Test each chosen mitigation with the payload from its advisory. A content security policy helps as defence in depth and does not fix the CVE.</li>\n<li>Review the companion libraries separately, against their own advisories. A fix for <code class=\"language-text\">angular</code> does nothing for angular-material 1.x.</li>\n<li>If a questionnaire is blocking a deal, get a quote for extended support (with Essentials if you depend on the libraries listed there) and compare it with the contract value. It is usually the cheaper number.</li>\n<li>Add end-to-end tests on the flows the business cannot lose, and run them after browser updates. Nobody upstream is testing AngularJS against new Chrome releases any more, so that test is yours to run.</li>\n<li>Freeze feature work in AngularJS as soon as the new workspace exists, and put the first screen on the new stack behind a switch. Picking the mechanism for that is what <a href=\"https://accesto.com/blog/angularjs-three-ways/\" target=\"_blank\" rel=\"noopener\">the previous post</a> is about.</li>\n</ul>\n<h2>FAQ</h2>\n<p><strong>Is AngularJS still supported?</strong>\nNo. Official long-term support from Google ended on 31 December 2021, the last release is 1.8.3 from April 2022, and the npm package is marked deprecated. Commercial extended support is available from HeroDevs.</p>\n<p><strong>Does AngularJS have known security vulnerabilities?</strong>\nYes. The GitHub advisory database lists ten advisories against the <code class=\"language-text\">angular</code> npm package published after end of life, two of them high (CVE-2024-21490, CVE-2026-11998), each with \"Patched versions: None\". Whether they are exploitable in a given application depends on the features it uses and on who controls the input to them.</p>\n<p><strong>Can I fix the <code class=\"language-text\">npm audit</code> warnings for AngularJS?</strong>\nNot by upgrading the <code class=\"language-text\">angular</code> package, because no official release exists without them. What is left is a paid drop-in replacement with patches, mitigating each applicable advisory in your own code, or migrating. Advisories against other packages in the tree can often be closed with an ordinary upgrade.</p>\n<p><strong>Is AngularJS extended support worth it?</strong>\nWhen a compliance requirement is blocking revenue and the migration will take longer than the next audit, yes. It does not replace migrating, and the base package covers the framework, not the companion libraries.</p>\n<p><strong>How long can we keep running AngularJS?</strong>\nThere is no shutdown date. How long it stays workable depends on future browser changes and on whether you can keep maintaining the application. In practice the limit is whichever of these comes first: a customer refuses end-of-life software, a browser change breaks something nobody can fix, or the last engineer who knows the build leaves.</p>","timeToRead":18,"frontmatter":{"title":"Is it still safe to run AngularJS in 2026?","tags":["angular","modernization","a2a"],"author":"amadeusz","categories":["for-developers"],"dateUpdated":null,"customTopics":[["Angular Tooltip Directive - Part 1","/how-to-create-angular-tooltip-directive","blog"],["Angular Tooltip Directive - Part 2","/angular-tooltip-directive-part-2","blog"],["Angular Dynamic Forms using JSON","/angular-dynamic-forms-using-json","blog"],["Drag and Drop Angular Guide","/drag-and-drop-angular","blog"]],"customCTA":["Join the team where quality matters","https://accesto.com/career/","Join now"],"customContactCTA":["Join the team where quality matters","Be proud of your code and enjoy your life, great minds are always welcomed","Join now","https://accesto.com/career/"],"customContactCTAIcon":null,"heroImage":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAB5ElEQVQoz2MQl40miMRkooQlI4BIRCpCVCpcTDpCSi5KTDaaAcgCIlEwgrPFUBFQRF41HojklGN55FKDzYIyrVx4JaIYRKVCRaVDRaRCxaTDgAwgAjGAgmAkLhPOJeCXkz+rv29rbe2qaZO37pkx+ey61dFhtVwCPgz8ov6aekmmFhkmFpk29nk+AdU6hilAQRGpYGHJIHGZEGZO98nTt7x6/nHNqhO7d5y/e3D3/5/v4lJ7WbhcGfiEfYCqg6M7zGwLLOyLfQPr7JxLhCRCxWRArpWUj2bl8Z82c8f///+3bjnb37Nl1erTQHZsQhsrULOgVKShRmi8fYC/eZCfaZCXeZiCeoq4bAwIycVKyUazMHvOmLUTqOHIkVt791y5cP4BkJ2Q0s3B58cgJBmhb5Th45oTG1kfF9OkoZkgJBEuLgsKTFGJMAWLEvGA/inTtn66dvLJ7VuvHj94fOvGxzdvktJ6Ofn9GYBuk1KIlVJOlFFJlFNLFANFTCQIyUaJiAapuDeqdh/pm7jx4ZKWi50pV/pzLnck3N80Pyqhi5Pfj0FUJkJEOlxYCojChCTDQHEmg4zCRWQilTQSDU3T9Y1T9Y3TgKSBSbq0IkgX0OYwAkgqVEgihF80mF8sBIaAEQGSAgDsfbdUWzWzIgAAAABJRU5ErkJggg==","aspectRatio":1.9736842105263157,"src":"/blog/static/046196b897fd61d1acc8f0fecf3cf316/f3583/angularjs_still_safe.png","srcSet":"/blog/static/046196b897fd61d1acc8f0fecf3cf316/630fb/angularjs_still_safe.png 300w,\n/blog/static/046196b897fd61d1acc8f0fecf3cf316/2a4de/angularjs_still_safe.png 600w,\n/blog/static/046196b897fd61d1acc8f0fecf3cf316/f3583/angularjs_still_safe.png 1200w,\n/blog/static/046196b897fd61d1acc8f0fecf3cf316/7adbf/angularjs_still_safe.png 1660w","sizes":"(max-width: 1200px) 100vw, 1200px"}},"publicURL":"/blog/static/046196b897fd61d1acc8f0fecf3cf316/angularjs_still_safe.png"}},"fields":{"date":"2026-11-24"}},"authorImage":{"childImageSharp":{"fluid":{"base64":"data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAUABQDASIAAhEBAxEB/8QAGQABAQADAQAAAAAAAAAAAAAAAAQBAgMF/8QAFwEAAwEAAAAAAAAAAAAAAAAAAAECA//aAAwDAQACEAMQAAABpxPI79RurHjOJ3AP/8QAGxABAQEAAgMAAAAAAAAAAAAAAQIDAAQREhP/2gAIAQEAAQUCE5OjoNBzSfTLOiE62KTB8tMJrQvwf//EABoRAAEFAQAAAAAAAAAAAAAAABEAAQMQEiL/2gAIAQMBAT8BaLnRQv8A/8QAFREBAQAAAAAAAAAAAAAAAAAAESD/2gAIAQIBAT8BY//EAB4QAAIBAwUAAAAAAAAAAAAAAAABEQIhQRASMWFx/9oACAEBAAY/AkzzSiMovxklZ7Ka7ztJc3Ekkf/EABoQAQADAQEBAAAAAAAAAAAAAAEAESExYaH/2gAIAQEAAT8hwjlcIgxLZcZq/s1FdveRGW1QvYRBTVxcKiA3mTpI7djVgCif/9oADAMBAAIAAwAAABDLH4L/xAAYEQADAQEAAAAAAAAAAAAAAAAAAREQYf/aAAgBAwEBPxCtkXCivP/EABkRAAEFAAAAAAAAAAAAAAAAAAAQESExQf/aAAgBAgEBPxCzEGp//8QAIBABAAMAAQMFAAAAAAAAAAAAAQARITFBUcFhcZGh0f/aAAgBAQABPxCqCi/J8s2GWDGMvIjVuDzOJ/WVxR8/U9GlNrLL7Q9xAs0esuMIHAxhNOsJQ4fyDEGCnCvef//Z","aspectRatio":1,"src":"/blog/static/3a9d8eb64c85cd020e98d23f31ca0336/ea649/amadeusz.jpg","srcSet":"/blog/static/3a9d8eb64c85cd020e98d23f31ca0336/b1092/amadeusz.jpg 11w,\n/blog/static/3a9d8eb64c85cd020e98d23f31ca0336/1d7ec/amadeusz.jpg 21w,\n/blog/static/3a9d8eb64c85cd020e98d23f31ca0336/ea649/amadeusz.jpg 42w,\n/blog/static/3a9d8eb64c85cd020e98d23f31ca0336/1c2ab/amadeusz.jpg 63w,\n/blog/static/3a9d8eb64c85cd020e98d23f31ca0336/567fa/amadeusz.jpg 84w,\n/blog/static/3a9d8eb64c85cd020e98d23f31ca0336/f4ba4/amadeusz.jpg 1536w","sizes":"(max-width: 42px) 100vw, 42px"}}}},"pageContext":{"slug":"/is-angularjs-still-safe/","authorImagePath":"amadeusz.jpg"}},"staticQueryHashes":["1607616503","473848531"]}