Skip to content

Potential fix for code scanning alert no. 1: DOM text reinterpreted as HTML#25

Merged
krishnprakash merged 1 commit intogh-pagesfrom
alert-autofix-1.1
Feb 19, 2026
Merged

Potential fix for code scanning alert no. 1: DOM text reinterpreted as HTML#25
krishnprakash merged 1 commit intogh-pagesfrom
alert-autofix-1.1

Conversation

@krishnprakash
Copy link
Owner

Potential fix for https://github.com/krishnprakash/devcontainers.github.io/security/code-scanning/1

To fix the problem, we need to ensure that the value retrieved from the dropdown is properly sanitized before being used. One way to do this is to validate that the value is a safe URL. We can use a regular expression to check that the value is a valid URL before assigning it to window.location.

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

…s HTML

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Phileco <132178579+krishnprakash@users.noreply.github.com>
@krishnprakash krishnprakash marked this pull request as ready for review February 19, 2026 12:51
@krishnprakash krishnprakash merged commit 426bdee into gh-pages Feb 19, 2026
4 checks passed
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.

1 participant