fix(core): reject script element as a dynamic component host - #68711
fix(core): reject script element as a dynamic component host#68711alan-agius4 wants to merge 1 commit into
Conversation
|
So I think the solution to this other problem lies there? I think it's worth looking into. |
|
Yes, this change would also address what is mentioned in https://issuetracker.google.com/u/1/issues/510537066 |
1f24df7 to
6e865df
Compare
To enhance application security and prevent accidental or malicious script execution, this change ensures that dynamically mounting a component via createComponent directly onto a <script> element throws a runtime error in development mode. SVG <script> elements are also rejected. The error message is designed to be fully tree-shakable under production builds where ngDevMode is disabled.
6e865df to
3cd005e
Compare
|
Then the issue mentioned could be reclassified because, as I understand it, this can be a common pattern in applications |
|
Closing the PR as I am unable to update review requests will open a new one. |
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
To enhance application security and prevent accidental or malicious script execution, this change ensures that dynamically mounting a component via createComponent directly onto a <script> element throws a runtime error in development mode. SVG <script> elements are also rejected. The error message is designed to be fully tree-shakable under production builds where ngDevMode is disabled.
More context in: #68689 (comment)