Skip to content

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

Open
Sec0xEd wants to merge 1 commit intodigitalocean:masterfrom
Sec0xEd:security/url-scheme-validation
Open

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

Conversation

@Sec0xEd
Copy link
Copy Markdown

@Sec0xEd Sec0xEd commented Dec 20, 2025

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant