CVE-2024-21490
Cross-Site Scripting via JSONP
This affects versions of the package angular from 1.3.0; versions of the package angularjs 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 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
This affects versions of the package angular from 1.3.0; versions of the package angularjs 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 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.
- Record
CVE-2024-21490- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P - Weakness
- CWE-1333
- Updated
- 2026-11-02
EUVDEUVD-2024-0512
7.5
This affects versions of the package angular from 1.3.0; versions of the package angularjs 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 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.
- Record
EUVD-2024-0512- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-4w4v-5hc9-xrr2
7.5
angular vulnerable to super-linear runtime due to backtracking
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.
- Record
GHSA-4w4v-5hc9-xrr2- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-5cp4-xmrw-59wf
5.0
XSS via JQLite DOM manipulation functions in AngularJS
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
- Record
GHSA-5cp4-xmrw-59wf- CVSS 3.1
- 5.0 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-79
- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-28hp-fgcr-2r4h No score
Cross-Site Scripting via JSONP
JSONP allows untrusted resource URLs, which provides a vector for attack by malicious actors.
- Record
GHSA-28hp-fgcr-2r4h- Weakness
- CWE-79
- Updated
- 2026-11-02
NVD
7.5
This affects versions of the package angular from 1.3.0; versions of the package angularjs 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 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.
- Record
CVE-2024-21490- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
Show 19 moreShow less
OSV
7.5
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 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.
- Record
CVE-2024-21490- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-21490
7.5
This affects versions of the package angular from 1.3.0; versions of the package angularjs 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 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.
- Record
DEBIAN-CVE-2024-21490- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-4w4v-5hc9-xrr2
7.5
angular vulnerable to super-linear runtime due to backtracking
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.
- Record
GHSA-4w4v-5hc9-xrr2- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
OSVGHSA-5cp4-xmrw-59wf
5.0
XSS via JQLite DOM manipulation functions in AngularJS
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
- Record
GHSA-5cp4-xmrw-59wf- CVSS 3.1
- 5.0 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-21490
7.5
This affects versions of the package angular from 1.3.0; versions of the package angularjs 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 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.
- Record
UBUNTU-CVE-2024-21490- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1773706637 No score
TuxCare security update for angular (11 CVEs)
TuxCare rebuilt angular to address 11 CVEs. Fixed in 1.8.2-tuxcare.1.
- Record
CLSA-2026-1773706637- Updated
- 2026-11-02
OSVCLSA-2026-1773706638 No score
TuxCare security update for angular (7 CVEs)
TuxCare rebuilt angular to address 7 CVEs. Fixed in 1.7.9-tuxcare.1.
- Record
CLSA-2026-1773706638- Updated
- 2026-11-02
OSVCLSA-2026-1773793040 No score
TuxCare security update for angular (9 CVEs)
TuxCare rebuilt angular to address 9 CVEs. Fixed in 1.6.10-tuxcare.1.
- Record
CLSA-2026-1773793040- Updated
- 2026-11-02
OSVCLSA-2026-1773879465 No score
TuxCare security update for angular (7 CVEs)
TuxCare rebuilt angular to address 7 CVEs. Fixed in 1.5.11-tuxcare.1.
- Record
CLSA-2026-1773879465- Updated
- 2026-11-02
OSVCLSA-2026-1773879502 No score
TuxCare security update for angular (13 CVEs)
TuxCare rebuilt angular to address 13 CVEs. Fixed in 1.4.4-tuxcare.1.
- Record
CLSA-2026-1773879502- Updated
- 2026-11-02
OSVCLSA-2026-1773965926 No score
TuxCare security update for angular (8 CVEs)
TuxCare rebuilt angular to address 8 CVEs. Fixed in 1.8.3-tuxcare.1.
- Record
CLSA-2026-1773965926- Updated
- 2026-11-02
OSVCLSA-2026-1781657707 No score
TuxCare security update for angular (1 CVE)
TuxCare rebuilt angular to address 1 CVE. Fixed in 1.7.9-tuxcare.8.
- Record
CLSA-2026-1781657707- Updated
- 2026-11-02
OSVCLSA-2026-1781657708 No score
TuxCare security update for angular (1 CVE)
TuxCare rebuilt angular to address 1 CVE. Fixed in 1.6.10-tuxcare.8.
- Record
CLSA-2026-1781657708- Updated
- 2026-11-02
OSVCLSA-2026-1781657709 No score
TuxCare security update for angular (2 CVEs)
TuxCare rebuilt angular to address 2 CVEs. Fixed in 1.5.11-tuxcare.8.
- Record
CLSA-2026-1781657709- Updated
- 2026-11-02
OSVCLSA-2026-1787822123 No score
TuxCare security update for angular (14 CVEs)
TuxCare rebuilt angular to address 14 CVEs. Fixed in 1.4.7-tuxcare.1.
- Record
CLSA-2026-1787822123- Updated
- 2026-11-02
OSVGHSA-28hp-fgcr-2r4h No score
Cross-Site Scripting via JSONP
JSONP allows untrusted resource URLs, which provides a vector for attack by malicious actors.
- Record
GHSA-28hp-fgcr-2r4h- Weakness
- CWE-79
- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2024-21490 No score
CVE-2024-21490 in angular - Patched by Root
Root has patched CVE-2024-21490 in the angular package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2024-21490- Updated
- 2026-11-02
OSVROOT-APP-NPM-GHSA-28hp-fgcr-2r4h No score
GHSA-28hp-fgcr-2r4h in angular - Patched by Root
Root has patched GHSA-28hp-fgcr-2r4h in the angular package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-GHSA-28hp-fgcr-2r4h- Updated
- 2026-11-02
OSVROOT-APP-NPM-GHSA-5cp4-xmrw-59wf No score
GHSA-5cp4-xmrw-59wf in angular - Patched by Root
Root has patched GHSA-5cp4-xmrw-59wf in the angular package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-GHSA-5cp4-xmrw-59wf- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
angularnpm |
before 1.6.0 | 1.6.0 |
angularnpm |
1.3.0 to 1.8.3 | None known |
org.webjars.npm:angularMaven |
1.3.0 to 1.8.3 | None known |
org.webjars.bower:angularMaven |
1.3.0 to 1.8.3 | None known |
angularnpm |
before 1.8.0 | 1.8.0 |
angularTuxCare:npm From an advisory covering 11 CVEs |
1.8.2-tuxcare.0 up to 1.8.2-tuxcare.1, plus listed versions 1.8.2 |
1.8.2-tuxcare.1 |
angularTuxCare:npm From an advisory covering 7 CVEs |
1.7.9-tuxcare.0 up to 1.7.9-tuxcare.1, plus listed versions 1.7.9 |
1.7.9-tuxcare.1 |
angularTuxCare:npm From an advisory covering 9 CVEs |
1.6.10-tuxcare.0 up to 1.6.10-tuxcare.1, plus listed versions 1.6.10 |
1.6.10-tuxcare.1 |
angularTuxCare:npm From an advisory covering 7 CVEs |
1.5.11-tuxcare.0 up to 1.5.11-tuxcare.1, plus listed versions 1.5.11 |
1.5.11-tuxcare.1 |
angularTuxCare:npm From an advisory covering 11 CVEs |
1.4.4-tuxcare.0 up to 1.4.4-tuxcare.1, plus listed versions 1.4.4 |
1.4.4-tuxcare.1 |
Show 18 moreShow less
| Package | Affected | Fixed |
|---|---|---|
angularTuxCare:npm From an advisory covering 8 CVEs |
1.8.3-tuxcare.0 up to 1.8.3-tuxcare.1, plus listed versions 1.8.3 |
1.8.3-tuxcare.1 |
angularTuxCare:npm |
1.7.9-tuxcare.0 up to 1.7.9-tuxcare.8, plus listed versions 1.7.91.7.9-tuxcare.11.7.9-tuxcare.21.7.9-tuxcare.31.7.9-tuxcare.41.7.9-tuxcare.51.7.9-tuxcare.61.7.9-tuxcare.7 |
1.7.9-tuxcare.8 |
angularTuxCare:npm |
1.6.10-tuxcare.0 up to 1.6.10-tuxcare.8, plus listed versions 1.6.101.6.10-tuxcare.11.6.10-tuxcare.21.6.10-tuxcare.31.6.10-tuxcare.41.6.10-tuxcare.51.6.10-tuxcare.61.6.10-tuxcare.7 |
1.6.10-tuxcare.8 |
angularTuxCare:npm |
1.5.11-tuxcare.0 up to 1.5.11-tuxcare.8, plus listed versions 1.5.111.5.11-tuxcare.11.5.11-tuxcare.21.5.11-tuxcare.31.5.11-tuxcare.41.5.11-tuxcare.51.5.11-tuxcare.61.5.11-tuxcare.7 |
1.5.11-tuxcare.8 |
angularTuxCare:npm From an advisory covering 12 CVEs |
1.4.7-tuxcare.0 up to 1.4.7-tuxcare.1, plus listed versions 1.4.7 |
1.4.7-tuxcare.1 |
angular.jsDebian:12 |
before 1.8.3-1+deb12u1, plus listed versions 1.8.3-11.8.3-1+deb12u1~deb11u1 |
1.8.3-1+deb12u1 |
angular.jsDebian:13 |
before 1.8.3-2 | 1.8.3-2 |
angular.jsDebian:11 From an advisory covering 9 CVEs |
before 1.8.3-1+deb12u1~deb11u1, plus listed versions 1.8.2-21.8.3-1 |
1.8.3-1+deb12u1~deb11u1 |
org.webjars.npm:angularMaven |
1.3.0 to 1.8.3, plus listed versions 1.3.151.3.161.3.171.3.201.3.8 Show 45 moreShow less1.4.01.4.11.4.141.4.31.4.41.4.51.4.61.4.71.4.81.4.91.5.01.5.0-beta.01.5.0-beta.21.5.0-rc.01.5.0-rc.11.5.0-rc.21.5.11.5.101.5.111.5.21.5.31.5.51.5.61.5.71.5.81.5.91.6.01.6.0-rc.21.6.11.6.101.6.21.6.31.6.41.6.51.6.61.6.71.6.81.6.91.7.01.7.0-rc.01.7.11.7.21.7.31.7.41.7.5 |
None known |
org.webjars.bower:angularMaven |
1.3.0 to 1.8.3, plus listed versions 1.3.101.3.111.3.131.3.141.3.15 Show 45 moreShow less1.3.161.3.171.3.181.3.191.3.21.3.201.3.61.3.81.4.01.4.0-beta.51.4.0-beta.61.4.0-rc.11.4.0-rc.21.4.11.4.111.4.121.4.141.4.21.4.31.4.41.4.51.4.61.4.71.4.81.4.91.5.01.5.0-beta.01.5.0-beta.21.5.0-rc.01.5.0-rc.11.5.0-rc.21.5.11.5.101.5.111.5.21.5.31.5.41.5.51.5.61.5.71.5.81.5.91.6.01.6.0-rc.21.6.1 |
None known |
angularRoot:npm |
before 1.8.3-aikido.2 | 1.8.3-aikido.21.4.14-aikido.11.8.3-aikido.31.4.14-aikido.21.3.0-aikido.11.3.0-aikido.21.8.3-aikido.41.3.0-aikido.31.8.3-aikido.51.4.14-aikido.3 |
@rootio/angularRoot:npm |
before 1.8.3-root.io.1 | 1.8.3-root.io.11.8.3-root.io.21.4.14-root.io.11.8.3-root.io.31.4.14-root.io.21.3.0-root.io.11.3.0-root.io.21.8.3-root.io.41.3.0-root.io.31.8.3-root.io.51.4.14-root.io.3 |
angularRoot:npm |
before 1.4.14-aikido.2 | 1.4.14-aikido.21.3.0-aikido.21.3.0-aikido.31.4.14-aikido.3 |
@rootio/angularRoot:npm |
before 1.4.14-root.io.2 | 1.4.14-root.io.21.3.0-root.io.21.3.0-root.io.31.4.14-root.io.3 |
angular.jsUbuntu:Pro:18.04:LTS |
before 1.5.10-1ubuntu0.1~esm1, plus listed versions 1.5.10-1 |
1.5.10-1ubuntu0.1~esm1 |
angular.jsUbuntu:Pro:20.04:LTS |
before 1.7.9-1ubuntu0.1~esm1, plus listed versions 1.5.10-11.7.9-1 |
1.7.9-1ubuntu0.1~esm1 |
angular.jsUbuntu:22.04:LTS |
before 1.8.2-2ubuntu0.1, plus listed versions 1.8.2-2 |
1.8.2-2ubuntu0.1 |
angular.jsUbuntu:24.04:LTS |
before 1.8.3-1ubuntu0.24.04.1, plus listed versions 1.8.3-1 |
1.8.3-1ubuntu0.24.04.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | RoninForge/roninforge-angularjs-migration | 2026-05-19 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-21490 is a high vulnerability (CVSS 7.5) in Angular, published June 27, 2019. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 1.89%, the 79th percentile. Fixed in angular 1.6.0.
References
security.snyk.io/vuln/SNYK-JS-ANGULAR-6091113
security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-6241746
security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6241747
security.snyk.io/vuln/SNYK-DOTNET-ANGULARJS-10771616
stackblitz.com/edit/angularjs-vulnerability-ng-srcset-redos
support.herodevs.com/hc/en-us/articles/25715686953485-CVE-2024-21490-AngularJS-Regular-Expression-Denial-of-Service-ReDoS
Show 18 moreShow less
lists.debian.org/debian-lts-announce/2025/07/msg00005.html
github.com/angular/angular.js/commit/6476af83cd0418c84e034a955b12a842794385c4
npmjs.com/advisories/1630
github.com/advisories/GHSA-28hp-fgcr-2r4h
nvd.nist.gov/vuln/detail/CVE-2024-21490
github.com/advisories/GHSA-4w4v-5hc9-xrr2
github.com/google/security-research/security/advisories/GHSA-5cp4-xmrw-59wf
github.com/jquery/jquery/security/advisories/GHSA-gxr4-xjj5-5px2
github.com/jquery/jquery/security/advisories/GHSA-jpcq-cgw6-v4j6
blog.jquery.com/2020/04/10/jquery-3-5-0-released
github.com/advisories/GHSA-mhp6-pxh8-r675
snyk.io/vuln/SNYK-JS-ANGULAR-570058
github.com/advisories/GHSA-5cp4-xmrw-59wf
security-tracker.debian.org/tracker/CVE-2024-21490
github.com/angular/angular.js
ubuntu.com/security/CVE-2024-21490
cve.org/CVERecord?id=CVE-2024-21490
ubuntu.com/security/notices/USN-7958-1
Left out here: 30 versions. The JSON record has them.