Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when the value does not exist in the option is still added to the select box #2374

Open
robinlieson92 opened this issue May 17, 2024 · 0 comments
Assignees

Comments

@robinlieson92
Copy link

robinlieson92 commented May 17, 2024

Describe the bug
Hi, I discovered a vulnerability when I tried to patch data from the API, but data that should not be in one of the options instead appeared in the existing select box.
This is vulnerable to attack via XSS and please follow up further.
I don't know if this can be solved in the same way by still making sure the item in the option is placed in the [items] configuration or not

Reproducbile example
https://stackblitz.com/edit/angular-nckghm-umj73p

Expected behavior
That options other than those entered will not be rendered in the select box and prevent XSS attacks from occurring.

Screenshots
image

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

No branches or pull requests

2 participants