Skip to content

Commit 49d2408

Browse files
test(isURL): Add coverage for missing else path (#3)
--------- Co-authored-by: Théo FIDRY <5175937+theofidry@users.noreply.github.com>
1 parent a37cc4d commit 49d2408

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/validators.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@ describe('Validators', () => {
553553
'rtmp://foobar.com',
554554
'http://foobar.com',
555555
'test://foobar.com',
556+
// Dangerous! This allows to mark malicious URLs as a valid URL (CVE-2025-56200)
557+
// eslint-disable-next-line no-script-url
558+
'javascript:alert(1);@example.com',
556559
],
557560
invalid: [
558561
'mailto:test@example.com',

0 commit comments

Comments
 (0)