Skip to content

Fix: Implement URL validation to block harmful schemes like javascript:#45

Open
0xRahim wants to merge 1 commit intoamitmerchant1990:masterfrom
0xRahim:bugfix/xss-sanitization
Open

Fix: Implement URL validation to block harmful schemes like javascript:#45
0xRahim wants to merge 1 commit intoamitmerchant1990:masterfrom
0xRahim:bugfix/xss-sanitization

Conversation

@0xRahim
Copy link
Copy Markdown

@0xRahim 0xRahim commented Mar 13, 2026

Fix for issue #44

Description

This PR adds validation for URLs to prevent the use of harmful schemes such as javascript:.
Previously, URLs like javascript:alert1 could bypass validation and potentially lead to remote code execution.

Changes

  • Blocked javascript: , data:text/html , vbscript URLs

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