Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

refactor($compile): avoid catastrophic backtracking when parsing bindings #16464

Closed
wants to merge 1 commit into from

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Feb 20, 2018

This isn't expected to have any actual impact, since AngularJS is only intended to be used in the browser (not the server) and for this RegExp to be exploited by malicious user code the developer would have to have to give the user rights to execute arbitrary JavaScript code anyway.
Fixing as a general good practice and to avoid encouraging use of a similar RegExp in other environments where it might actually matter.

…ings

This isn't expected to have any actual impact, since AngularJS is only
intended to be used in the browser (not the server) and for this RegExp
to be exploited by malicious user code the developer would have to have
to give the user rights to execute arbitrary JavaScript code anyway.
Fixing as a general good practice and to avoid encouraging use of a
similar RegExp in other environments where it might actually matter.
@petebacondarwin
Copy link
Contributor

image

gkalpak added a commit that referenced this pull request Feb 21, 2018
…ings

This isn't expected to have any actual impact, since AngularJS is only
intended to be used in the browser (not the server) and for this RegExp
to be exploited by malicious user code the developer would have to have
to give the user rights to execute arbitrary JavaScript code anyway.
Fixing as a general good practice and to avoid encouraging use of a
similar RegExp in other environments where it might actually matter.

Closes #16464
@gkalpak gkalpak closed this in c0adcc3 Feb 21, 2018
@gkalpak gkalpak deleted the refactor-compile-binding-re branch February 21, 2018 09:51
@petebacondarwin
Copy link
Contributor

@gkalpak - did you cherry-pick to 1.6.x too?

@gkalpak
Copy link
Member Author

gkalpak commented Feb 21, 2018

Yes.
master: c0adcc3
v1.6.x: b30a925

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants