Skip to content

[sec] Fixes a few minor vulnerabilies when using target="_blank" on links (RSPEC-5148) - #2768

Merged
ssddanbrown merged 1 commit into
BookStackApp:masterfrom
CorruptComputer:RSPEC-5148-Fixes
May 24, 2021
Merged

ssddanbrown merged 1 commit into
BookStackApp:masterfrom
CorruptComputer:RSPEC-5148-Fixes

Conversation

@CorruptComputer

Copy link
Copy Markdown
Contributor

Using target="_blank" on links without adding rel="noopener" can be a minor vulnerability.
See RSPEC-5148 for more info on the specifics of the issue.

This is not really an issue on most up to date browsers (Chrome 88+, Firefox 79+ or Safari 12.1+) though I think its always best to program defensively since you don't know what browser the end users will end up using.

If you don't see any benefit in adding this feel free to close.

@ssddanbrown

Copy link
Copy Markdown
Member

Thanks for this @CorruptComputer. Most of these are internal, hence wouldn't really matter, but there are a few potential external ones in there that could be prone to such scenarios. Will merge in now for the next feature release.

@ssddanbrown
ssddanbrown merged commit 5c8c85a into BookStackApp:master May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants