Skip to content

Markdown hyperlink URIs do not accept non-HTTP(S) schemas. #27857

Discussion options

You must be logged in to vote

Allowing random URLs would be potentially dangerous. A file: URL is simply useless outside of a computer with a similar enough filesystem layout (but that also means there isn't much point in rendering it on a website). But depending on the browser, OS, and their configuration random schemes might be connected to random software that then gets run with parameters from the URL. This has been used for attacks in the past, and probably still is where there is an opportunity.

Of course if the browser or whatever else is handling a well-known scheme has an exploitable bug those URLs might also be abused, but at least the attack surface is much better known. 😅

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@RokeJulianLockhart
Comment options

@jdevfullstack
Comment options

@RokeJulianLockhart
Comment options

@jdevfullstack
Comment options

Comment options

You must be logged in to vote
1 reply
@RokeJulianLockhart
Comment options

Answer selected by RokeJulianLockhart
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants