Skip to content

Conversation

@kueken
Copy link
Collaborator

@kueken kueken commented Jul 21, 2025

Potential fix for https://github.com/E2OpenPlugins/e2openplugin-OpenWebif/security/code-scanning/20

To fix this issue, we should apply the replacement repeatedly until no more matches are found. This ensures that if removing a tag exposes a new tag (as in the case of nested or malformed tags), it will also be removed. Specifically, we should wrap the replace operation in a loop that continues until the string stops changing. This fix should be applied in the relevant line within render where the title attribute is set. No external libraries are strictly necessary for this fix, since we are limited to the code shown and should avoid introducing new dependencies unless required.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…ter sanitization

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@kueken kueken marked this pull request as ready for review July 21, 2025 15:47
@kueken kueken merged commit 096e24b into master Jul 21, 2025
6 checks passed
@kueken kueken deleted the alert-autofix-20 branch July 21, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants