-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix XSS via
javascript:
url in a link
Prevously, was possible to trigger XSS setting as link an URL like `javascript:alert('XSS')`. Fix it via a custom HTML input validation pattern to block both `javascript:` and `data:` URLs.
- Loading branch information
Jacopo Beschi
committed
Dec 18, 2024
1 parent
f4d64c2
commit 12ee782
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters