Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

XSS attack#7029

Unanswered
Matx99 asked this question inQ&A
Aug 16, 2022· 2 comments
Discussion options

Hello,

Am I safe using bootstrap-vue concerning XSS atacks?

https://github.com/bootstrap-vue/bootstrap-vue/search?q=v-html shows bootstrap uses v-html but is that a problem?
Is it a problem only if I use bootstrap components who use v-html or is it a problem even if I don't use one?

Finally, is using{{ myContent }} fixing the issue if I use a bootstrap-vue component who use v-html itself?

Thank you

You must be logged in to vote

Replies: 2 comments

Comment options

If you look in the component reference doc sections, it says

Caution: Props that support HTML strings (*-html) can be vulnerable to Cross Site Scripting (XSS) attacks when passed raw user supplied values. You must properly sanitize the user input first!

Yes, {{ }} Is safe from xss as it will not render as html

You must be logged in to vote
0 replies
Comment options

Why are you concerning yourself with the usage of v-html in the docs?

Few elements have the ability to use an html prop. Each instance has a heavy note about their usagehttps://bootstrap-vue.org/docs/components/carousel#props . Unless there is a serious security issue with bootstrap-vue, the duty to have a secure app falls on the implementer.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@Matx99@darrinmn9@VividLemon

[8]ページ先頭

©2009-2025 Movatter.jp