-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown
should not open links in the browser by default
#5171
Comments
I do not think opening links as default behaviour (open_links=True) poses any deliberate threats. That falls fully into the hands of the individual dev, who decides which links are integrated. Although with above PR fixes one can no longer attempt to open local file |
My concern is the potential indeliberate threats with this default behaviour. Thankfully |
You raise a valid point, if it concerns a maintainer then maybe it should be looked at twice. Note however, that I reasoned about this security issue with the slight behavioural changes that #5223 introduces in mind (your comment on this solution?). It seeks to distinguish between internal and external links ( |
This was originally discussed in #5169, but I think warrants a new issue.
When running the Textual tests, I was a bit concerned when links started opening in my browser! This was due to a recent change where Markdown links will be opened with
App.open_url
automatically.Thankfully those links such as
test.md
weren't malicious, but I think it raises significant concerns about the implications of potentially opening any*.md
links automatically..I understand that you're damned if you do and damned if you don't, where some users expect links to open in the browser by default. But I think this change should be re-evaluated given the security risks, especially when internal links in markdown are probably more common.
The text was updated successfully, but these errors were encountered: