Skip to content

Navigation Menu

Sign in
Sign up

security: block dangerous URL schemes in slideshow and compare embeds - #146

Open
Sec0xEd wants to merge 1 commit into
digitalocean:master from
Sec0xEd:security/url-scheme-validation
Open

security: block dangerous URL schemes in slideshow and compare embeds #146
Sec0xEd wants to merge 1 commit into
digitalocean:master from
Sec0xEd:security/url-scheme-validation

Conversation

@Sec0xEd

@Sec0xEd Sec0xEd commented Dec 20, 2025

Copy link
Copy Markdown

Summary

Filter out javascript:, vbscript:, file:, and data: URLs in slideshow and compare image embeds.
This aligns with markdown-it's built-in link validation approach for defense-in-depth.

Changes

  • slideshow.js: Add URL scheme check before accepting image URLs
  • compare.js: Add URL scheme check for both left and right images

Filter out javascript:, vbscript:, file:, and data: URLs in image
embeds for defense-in-depth, aligning with markdown-it's link validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /